summaryrefslogtreecommitdiff
path: root/render/layout.c
Commit message (Collapse)AuthorAgeFilesLines
...
* First pass at core iframes. Currently lacking scrollbars.Michael Drake2011-06-141-12/+61
| | | | svn path=/trunk/netsurf/; revision=12474
* Use height type enum.Michael Drake2011-05-161-2/+3
| | | | svn path=/trunk/netsurf/; revision=12413
* Elements replaced with HTML don't affect parent descendants.Michael Drake2011-05-101-1/+4
| | | | svn path=/trunk/netsurf/; revision=12365
* s/scroll/scrollbar/ and improve scrollbar widget comments.Michael Drake2011-05-091-1/+1
| | | | svn path=/trunk/netsurf/; revision=12363
* Merge branches/jmb/content-factory to trunkJohn Mark Bell2011-05-061-23/+22
| | | | svn path=/trunk/netsurf/; revision=12283
* Reduce number of page reflows and viewportMichael Drake2011-04-271-14/+27
| | | | | | | | | | | redraws as images are fetched: + Flag known-sized boxes generated by images. + Treat them as replaced all through layout. + Only reflow the document for fetched images if we don't already have the box at the right size. svn path=/trunk/netsurf/; revision=12243
* Optimise first pass of layout. Reduces number of nsfont_width calls by up ↵Michael Drake2011-04-261-11/+36
| | | | | | to the page's word count. svn path=/trunk/netsurf/; revision=12239
* Change how blocks are positioned vertically (esp. margin handling).Michael Drake2011-04-221-60/+217
| | | | svn path=/trunk/netsurf/; revision=12235
* Fix build with NDEBUG definedJohn Mark Bell2011-04-031-2/+89
| | | | svn path=/trunk/netsurf/; revision=12154
* Allow box margins to collapse through zero-height boxes.Michael Drake2011-03-121-10/+51
| | | | svn path=/trunk/netsurf/; revision=11981
* Saturated maths in css fixed point Vincent Sanders2011-03-121-4/+4
| | | | svn path=/trunk/netsurf/; revision=11975
* Update left/right margins comment.Michael Drake2011-03-121-2/+2
| | | | svn path=/trunk/netsurf/; revision=11967
* Esimated width is fine for last box.Michael Drake2011-03-051-2/+4
| | | | svn path=/trunk/netsurf/; revision=11922
* Ensure box has appropriate space before cloning.Michael Drake2011-03-051-6/+14
| | | | svn path=/trunk/netsurf/; revision=11921
* Make sure the last clone box for a wrapped text is properly measuered.Michael Drake2011-03-051-0/+15
| | | | svn path=/trunk/netsurf/; revision=11920
* Move clone to box flags.Michael Drake2011-03-021-1/+1
| | | | svn path=/trunk/netsurf/; revision=11890
* Make box flags and move new line indicator to it.Michael Drake2011-03-021-2/+2
| | | | svn path=/trunk/netsurf/; revision=11886
* When wrapping text, don't duplicate strings. Special case for text inside ↵Michael Drake2011-03-011-5/+14
| | | | | | textareas, since they require it. svn path=/trunk/netsurf/; revision=11881
* More useful assert and remove box_dump call.Michael Drake2011-03-011-8/+2
| | | | svn path=/trunk/netsurf/; revision=11880
* Cache space widths.Michael Drake2011-03-011-25/+30
| | | | svn path=/trunk/netsurf/; revision=11877
* Split splitting out into layout_text_box_split().Michael Drake2011-03-011-71/+63
| | | | svn path=/trunk/netsurf/; revision=11869
* Optimise wrapped text layout.Michael Drake2011-02-281-4/+30
| | | | svn path=/trunk/netsurf/; revision=11852
* Apply margin before clear.Michael Drake2011-02-241-2/+2
| | | | svn path=/trunk/netsurf/; revision=11786
* Handle text-indent in layout_minmax_line(). (Fixes #3187505; scattering of ↵Michael Drake2011-02-241-9/+22
| | | | | | social networking icons on BBC News.) svn path=/trunk/netsurf/; revision=11785
* When box has no style, handle descendant calc as for overflow: visible.Michael Drake2011-02-231-2/+3
| | | | svn path=/trunk/netsurf/; revision=11770
* Child bbox is relative to current box.Michael Drake2011-02-221-0/+5
| | | | svn path=/trunk/netsurf/; revision=11756
* Child's descendant bbox only affects current box's bbox if the child has ↵Michael Drake2011-02-221-5/+14
| | | | | | overflow:visible. svn path=/trunk/netsurf/; revision=11755
* Add function to get a box's border edge bbox, and use it to find initial ↵Michael Drake2011-02-221-6/+26
| | | | | | descendant bbox. svn path=/trunk/netsurf/; revision=11754
* Simplify descendant bbox calculations.Michael Drake2011-02-221-40/+41
| | | | svn path=/trunk/netsurf/; revision=11753
* Fix fixed point percentage macro not to overflow. Thanks to jmb and vince.Michael Drake2011-02-161-3/+1
| | | | svn path=/trunk/netsurf/; revision=11702
* If percentage is negative, resort to floating point.Michael Drake2011-02-161-1/+3
| | | | svn path=/trunk/netsurf/; revision=11700
* Handle percentages from libcss without doing floating point maths.Michael Drake2011-02-151-40/+41
| | | | svn path=/trunk/netsurf/; revision=11687
* More comments for object dimension calculation.Michael Drake2011-02-141-1/+6
| | | | svn path=/trunk/netsurf/; revision=11678
* Don't use float maths for AUTO image sizing with one given dimension.Michael Drake2011-02-141-2/+2
| | | | svn path=/trunk/netsurf/; revision=11677
* Handle object sizing in one place.Michael Drake2011-02-141-77/+62
| | | | svn path=/trunk/netsurf/; revision=11676
* Avoid potential divide by 0.Michael Drake2011-02-141-8/+15
| | | | svn path=/trunk/netsurf/; revision=11675
* Port to latest libcssJohn Mark Bell2011-01-291-11/+4
| | | | svn path=/trunk/netsurf/; revision=11526
* Make layout of block formatting contexts take account of the bottom margin ↵Michael Drake2011-01-261-0/+3
| | | | | | of the last contained block. svn path=/trunk/netsurf/; revision=11498
* Don't clear floats if there aren't floats to clear.Michael Drake2011-01-091-2/+9
| | | | svn path=/trunk/netsurf/; revision=11270
* Ensure top margin is affects static position in particular case.Michael Drake2011-01-091-1/+7
| | | | svn path=/trunk/netsurf/; revision=11262
* Table top/bottom margin is 0px when computed value is 'auto'.Michael Drake2011-01-081-0/+6
| | | | svn path=/trunk/netsurf/; revision=11257
* Root element can't be absolute positioned. Fixes #3062055.Michael Drake2010-09-081-1/+2
| | | | svn path=/trunk/netsurf/; revision=10743
* Fix object descendants and make space for scrollbars if required.Michael Drake2010-08-301-1/+10
| | | | svn path=/trunk/netsurf/; revision=10730
* Don't special case height to content height when object's content is HTML.Michael Drake2010-08-301-1/+1
| | | | svn path=/trunk/netsurf/; revision=10729
* Fix build when layout logging is enabled.Michael Drake2010-07-161-2/+2
| | | | svn path=/trunk/netsurf/; revision=10649
* Record left and right float boxes with negative widths. Fixes overlapping ↵Michael Drake2010-07-161-8/+5
| | | | | | text on new BBC News site. svn path=/trunk/netsurf/; revision=10648
* Remove dead assignements and add assert to check table cells aren't set to ↵Michael Drake2010-07-061-18/+17
| | | | | | span no columns at layout time (Note: colspan=0 is treated as colspan=1 by box normalisation. It should probably be handled in table_calculate_columns_types() properly. Either way, there shouldn't be colspans of 0 by the time we get to layout.) svn path=/trunk/netsurf/; revision=10601
* Improve handling of percentage margins and paddings on floats. Fixes ↵Michael Drake2010-04-271-10/+39
| | | | | | pond.org.uk. This is still not ideal and there are cases where we don't match other browsers. svn path=/trunk/netsurf/; revision=10497
* Fix vertical placement of absolute positioned inlines using staic position. ↵Michael Drake2010-04-271-17/+25
| | | | | | Simplify placement of inlines on a line. svn path=/trunk/netsurf/; revision=10495
* Fix float wrap issue. (Amiga.org nav bar.)Michael Drake2010-04-261-1/+2
| | | | svn path=/trunk/netsurf/; revision=10490