summaryrefslogtreecommitdiff
path: root/render/layout.c
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* remove _GNU_SOURCE define from everywhere.Vincent Sanders2010-04-241-1/+0
| | | | | | strndup is not standard so provide an implementation. svn path=/trunk/netsurf/; revision=10474
* Merge jmb/new-cache; r=dsilvers,rs=vinceDaniel Silverstone2010-03-281-54/+64
| | | | svn path=/trunk/netsurf/; revision=10180
* Revert float ordering optimisation (r9846) due to effect on stacking order.Michael Drake2010-01-201-37/+3
| | | | svn path=/trunk/netsurf/; revision=9853
* Order containing block's list of floats in descending order of the ↵Michael Drake2010-01-171-3/+37
| | | | | | y-position of their base. Make find_sides() stop searching, after floats are above the range we're interested in. (351s --> 73s on ix for haveproblems/really-slow-float-table2.html) svn path=/trunk/netsurf/; revision=9846
* When placing floats below, keep track of y-position, for future floats in ↵Michael Drake2010-01-161-13/+15
| | | | | | current line. svn path=/trunk/netsurf/; revision=9836
* Merge branches/MarkieB/gtkmain to trunk.John Mark Bell2009-12-171-1/+1
| | | | svn path=/trunk/netsurf/; revision=9729
* Squash warningJohn Mark Bell2009-11-221-1/+1
| | | | svn path=/trunk/netsurf/; revision=9686
* Avoid potential NULL pointer dereferencesJohn Mark Bell2009-11-221-23/+29
| | | | svn path=/trunk/netsurf/; revision=9680
* Clearer wrapping.Michael Drake2009-08-311-2/+2
| | | | svn path=/trunk/netsurf/; revision=9519
* Simplification of relative offset calculation. Thanks to Christopher Martin.Michael Drake2009-08-311-27/+22
| | | | svn path=/trunk/netsurf/; revision=9518
* Use new alignment schemeJohn Mark Bell2009-08-221-34/+16
| | | | svn path=/trunk/netsurf/; revision=9390
* Ensure we've got a case for default html alignment.John Mark Bell2009-08-211-0/+2
| | | | svn path=/trunk/netsurf/; revision=9382
* Support HTML alignment hints.John Mark Bell2009-08-211-47/+112
| | | | svn path=/trunk/netsurf/; revision=9381
* Merge Paul Blokus' selectscroll branch. Adds core select menu widget for ↵Michael Drake2009-08-141-1/+6
| | | | | | forms and core scrollbar widget. svn path=/trunk/netsurf/; revision=9289
* Ensure that inline end boxes get the correct height.Michael Drake2009-08-071-0/+1
| | | | svn path=/trunk/netsurf/; revision=9104
* Slightly more useful vertical alignment.Michael Drake2009-08-071-3/+21
| | | | svn path=/trunk/netsurf/; revision=9100
* Port to modified libcss API.John Mark Bell2009-08-021-28/+28
| | | | svn path=/trunk/netsurf/; revision=8997
* Prevent negative calculated width of replaced inlines in layout_minmax_line().John Mark Bell2009-08-011-1/+3
| | | | svn path=/trunk/netsurf/; revision=8933
* Fix potential crash when inline replaced elements have percentage width.John Mark Bell2009-07-271-0/+2
| | | | svn path=/trunk/netsurf/; revision=8814
* Simplify line-height calculation, deferring to nscss_len2px.John Mark Bell2009-07-251-18/+3
| | | | svn path=/trunk/netsurf/; revision=8783
* Don't attempt to basline-align non text related inlines.Michael Drake2009-07-241-134/+135
| | | | svn path=/trunk/netsurf/; revision=8762
* Better way of aligning text baselines. Move boxes down to align 0.75 point ↵James Bursa2009-07-231-2/+3
| | | | | | instead of changing height. svn path=/trunk/netsurf/; revision=8758
* Merge LibCSS port to trunk.John Mark Bell2009-07-231-617/+941
| | | | svn path=/trunk/netsurf/; revision=8752
* Set height of all text boxes in a line to the height of the highest one. ↵James Bursa2009-07-231-2/+11
| | | | | | This aligns the baseline of text which changes font size in a line. However, when the inline-block is reflowed, the heights do not shrink again where they could. svn path=/trunk/netsurf/; revision=8716
* Refactor text plotter and other font functions to remove dependency on CSS.John Mark Bell2009-07-211-16/+35
| | | | svn path=/trunk/netsurf/; revision=8641
* Positioned elements are taken out of normal flow, so don't let them affect ↵Michael Drake2009-07-131-0/+11
| | | | | | min/max width calculations. svn path=/trunk/netsurf/; revision=8502
* Fix assert when replaced element has display:table;.Michael Drake2009-06-241-2/+4
| | | | svn path=/trunk/netsurf/; revision=7950
* Don't need height of css positioned boxes when laying out boxes in normal flow.Michael Drake2009-05-301-5/+1
| | | | svn path=/trunk/netsurf/; revision=7656
* When computing relative offset values for floats, use block formatting ↵Michael Drake2009-05-281-2/+11
| | | | | | context for containing block, rather than parent. svn path=/trunk/netsurf/; revision=7614
* Reorganise some conditions and only try to deal with min-height and ↵Michael Drake2009-05-281-21/+33
| | | | | | max-height where it should be done. svn path=/trunk/netsurf/; revision=7594
* 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
* Make layout_apply_minmax_height assert if it's called with a box that ↵Michael Drake2009-05-271-1/+2
| | | | | | shouldn't exist. svn path=/trunk/netsurf/; revision=7590