summaryrefslogtreecommitdiff
path: root/render/box_normalise.c
Commit message (Collapse)AuthorAgeFilesLines
* Use coccinelle to change logging macro calls in c filesVincent Sanders2017-09-061-12/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | for F in $(git ls-files '*.c');do spatch --sp-file foo.cocci --in-place ${F};done @@ expression E; @@ -LOG(E); +NSLOG(netsurf, INFO, E); @@ expression E, E1; @@ -LOG(E, E1); +NSLOG(netsurf, INFO, E, E1); @@ expression E, E1, E2; @@ -LOG(E, E1, E2); +NSLOG(netsurf, INFO, E, E1, E2); @@ expression E, E1, E2, E3; @@ -LOG(E, E1, E2, E3); +NSLOG(netsurf, INFO, E, E1, E2, E3); @@ expression E, E1, E2, E3, E4; @@ -LOG(E, E1, E2, E3, E4); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4); @@ expression E, E1, E2, E3, E4, E5; @@ -LOG(E, E1, E2, E3, E4, E5); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5); @@ expression E, E1, E2, E3, E4, E5, E6; @@ -LOG(E, E1, E2, E3, E4, E5, E6); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6); @@ expression E, E1, E2, E3, E4, E5, E6, E7; @@ -LOG(E, E1, E2, E3, E4, E5, E6, E7); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6, E7);
* Allow include directories to be added by sub makefilesVincent Sanders2016-06-061-1/+1
|
* move the CSS content handlerVincent Sanders2016-05-261-3/+5
|
* Change LOG() macro to be varadicVincent Sanders2015-05-281-12/+12
| | | | | | | | | | | | This changes the LOG macro to be varadic removing the need for all callsites to have double bracketing and allows for future improvement on how we use the logging macros. The callsites were changed with coccinelle and the changes checked by hand. Compile tested for several frontends but not all. A formatting annotation has also been added which allows the compiler to check the parameters and types passed to the logging.
* Revert removal of implied table adding.Michael Drake2015-01-271-2/+52
| | | | | Even if the DOM is always sanitised, CSS display property can cause other boxes to be required.
* Remove unused variables.Michael Drake2015-01-241-3/+0
|
* Remove redundant implied table insertion.Michael Drake2015-01-241-49/+2
|
* Doxygen warning fixesVincent Sanders2014-11-101-3/+3
|
* Fix table layout issue: row spans crossing row groups.Michael Drake2014-04-121-4/+11
| | | | | | Track row group that spans belong to, and compare with current cell's row group to decide whether the previous span affects current cell's start column.
* Flag TODO for rowspan in different row group.Michael Drake2014-04-091-0/+2
|
* Implied table rows must increment the row group's row count too.Michael Drake2014-04-091-0/+1
|
* fix table normalisation to not allow rowspan entries to leak beyond their ↵Vincent Sanders2014-04-091-11/+37
| | | | grouping
* Update for new libcss API.Michael Drake2013-12-131-16/+8
|
* reduce talloc usage to box tree layout onlyVincent Sanders2012-10-031-9/+8
|
* Move browser_window struct to private header. Places that shouldn't include ↵Michael Drake2012-08-221-0/+1
| | | | | | | | | | | | | | | | | it do, such as front end code. Frontends that have been updated to build: framebuffer gtk monkey riscos TODO: amiga atari beos cocoa windows
* fix quirks mode setting with libdom hubbub parserVincent Sanders2012-07-141-7/+7
|
* Improve performance of style selectionJohn Mark Bell2011-10-081-0/+7
| | | | svn path=/trunk/netsurf/; revision=13000
* Remove gui_multitaskJohn Mark Bell2011-09-211-3/+0
| | | | svn path=/trunk/netsurf/; revision=12828
* Merge branches/jmb/content-factory to trunkJohn Mark Bell2011-05-061-19/+54
| | | | svn path=/trunk/netsurf/; revision=12283
* Fix build with NDEBUG definedJohn Mark Bell2011-04-031-2/+29
| | | | svn path=/trunk/netsurf/; revision=12154
* Update to new libcss API for simultanious selection for base element and its ↵Michael Drake2011-01-051-10/+10
| | | | | | pseudo elements. svn path=/trunk/netsurf/; revision=11215
* It turns out that realloc(ptr, 0) --> free(ptr) is not actually required by ↵John Mark Bell2010-04-301-21/+9
| | | | | | | | the C standard (whereas realloc(NULL, size) --> malloc(size) is). Therefore, explicitly model the behaviour expected by our libraries (that realloc of 0 size is equivalent to free). svn path=/trunk/netsurf/; revision=10524
* First step to fixing memory leaks -- Box model no longer leaks computed stylesDaniel Silverstone2010-04-271-8/+8
| | | | svn path=/trunk/netsurf/; revision=10500
* Merge LibCSS port to trunk.John Mark Bell2009-07-231-251/+386
| | | | svn path=/trunk/netsurf/; revision=8752
* Limit scope of manually-defined NDEBUG. Purge a bunch of redundant #undef ↵John Mark Bell2009-05-281-0/+1
| | | | | | NDEBUG. svn path=/trunk/netsurf/; revision=7593
* Squash warningsJohn Mark Bell2009-03-021-1/+1
| | | | svn path=/trunk/netsurf/; revision=6674
* Improve handling of absolutely positioned table cells. Corrects positioning ↵Michael Drake2008-04-201-0/+6
| | | | | | of "Weather" box contents on BBC homepage. svn path=/trunk/netsurf/; revision=4100
* Squash "implicit declaration of function 'gui_multitask'" warnings.John Mark Bell2008-03-191-2/+0
| | | | svn path=/trunk/netsurf/; revision=3980
* Insert implied boxes rather than entirely removing empty table/row group ↵John Mark Bell2008-03-101-22/+62
| | | | | | nodes from the box tree. svn path=/trunk/netsurf/; revision=3920
* Fix last pointer manipulation for table and row_group boxes.John Mark Bell2008-03-101-2/+4
| | | | svn path=/trunk/netsurf/; revision=3919
* Improve handling of HTML attributes / markup:Michael Drake2008-02-251-4/+4
| | | | | | | | | | | | | | | | | | | | | * Only apply presentational HTML attributes if no more important CSS has been set for the property. (NetSurf used to be a bit hit-and-miss when presentational markup and CSS were mixed.) * Change table cellpadding and border handling to happen as soon the boxes styles are available, rather than after the whole table has been constructed. Also fix default table border colour. * Improve handling of CENTER tag and ALIGN attribute. These could not be correctly supported in the default CSS file, so block level element alignment is now done during box construction. (Fixes #1891379, #1824492, #1723853) Form improvements: * Small MAXLENGTH values on text inputs now reduce element width. (Fixes #1894854) * Prevent select option text from wrapping. svn path=/trunk/netsurf/; revision=3866
* Don't remove table rows with no children (fix 1753365)Richard Wilson2007-10-101-11/+19
| | | | svn path=/trunk/netsurf/; revision=3630
* Update all source code file headers to reflect GPL version 2 only and ↵Vincent Sanders2007-08-081-3/+14
| | | | | | contain appropriate licence text svn path=/trunk/netsurf/; revision=3486
* Remove the netsurf/ from the include paths and rationalise use of <> vs "" ↵Daniel Silverstone2007-05-301-6/+6
| | | | | | | | | | | | | | in includes NetSurf includes are now done with ""s and other system includes with <>s as C intended. The scandeps tool has been updated to only look for ""ed includes, and to verify that the files exist in the tree before adding them to the dependency lines. The depend rule has therefore been augmented to make sure the autogenerated files are built before it is run. This is untested under self-hosted RISC OS builds. All else tested and works. svn path=/trunk/netsurf/; revision=3307
* Allocate new styles for implied boxes using talloc instead of ↵James Bursa2006-12-081-8/+10
| | | | | | css_duplicate_style(). svn path=/trunk/netsurf/; revision=3112
* Update project URL.Michael Drake2006-11-271-1/+1
| | | | svn path=/trunk/netsurf/; revision=3073
* More work on lists. Simplify the implementation to a BLOCK for display: ↵James Bursa2006-11-051-156/+20
| | | | | | list-item, with a marker box on box->list_marker. svn path=/trunk/netsurf/; revision=3031
* Initial work for display: list-item supportJohn Mark Bell2006-11-041-7/+146
| | | | svn path=/trunk/netsurf/; revision=3028
* Modify implementation of absolute positioning to support "static positions". ↵James Bursa2006-10-081-38/+0
| | | | | | Absolutely positioned boxes are now in their original place in the tree instead of linked from absolute_children. svn path=/trunk/netsurf/; revision=2984
* Implement absolute positioning.James Bursa2006-06-261-0/+38
| | | | svn path=/trunk/netsurf/; revision=2648
* [project @ 2006-01-06 21:23:47 by jmb]John Mark Bell2006-01-061-0/+2
| | | | | | Fix normalisation of tables to update table->last correctly svn path=/import/netsurf/; revision=1998
* [project @ 2005-08-22 22:49:52 by bursa]James Bursa2005-08-221-6/+7
| | | | | | More work towards frame targets: add target parameter to box_create(), and copy target down the box tree during construction. svn path=/import/netsurf/; revision=1853
* [project @ 2005-07-02 18:17:51 by bursa]James Bursa2005-07-021-2/+8
| | | | | | Rewrite calculation of box minimum and maximum widths to improve layout of many pages. Move calculation of column types and border collapsing to box tree normalising stage, since they are layout independent. Add window height parameter to layout and make <html> and <body> at least window height. svn path=/import/netsurf/; revision=1777
* [project @ 2005-06-05 20:54:37 by bursa]James Bursa2005-06-051-4/+5
| | | | | | More work on borders / padding / margins on inline elements. Add BOX_INLINE_END to hold the right border / padding / margin (left is in the BOX_INLINE). svn path=/import/netsurf/; revision=1742
* [project @ 2005-06-04 12:12:38 by bursa]James Bursa2005-06-041-0/+4
| | | | | | Fix text-decoration and borders on inline elements by replacing inline_parent in box structure with end_inline_children. svn path=/import/netsurf/; revision=1741
* [project @ 2005-05-22 21:50:14 by bursa]James Bursa2005-05-221-2/+7
| | | | | | Add BOX_TEXT type to distinguish boxes which came from an inline element to boxes which came from a text node. Add inline_parent pointer to box structure. Rewrite text-decoration support to take advantage of the new data (line colours are now correct). Note: there is a clipping issue in redraw. svn path=/import/netsurf/; revision=1732
* [project @ 2005-04-09 09:47:36 by bursa]James Bursa2005-04-091-27/+26
| | | | | | Move HTML contents almost fully over to talloc(), simplifying code. Improvements to title attributes, broken forms, cellpadding. Reorder functions in box_construct.c. svn path=/import/netsurf/; revision=1608
* [project @ 2005-03-26 01:12:27 by bursa]James Bursa2005-03-261-0/+696
Split box.c into box_construct.c, box_normalise.c, and box.c. svn path=/import/netsurf/; revision=1583