summaryrefslogtreecommitdiff
path: root/render/layout.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Pedantic wrap.Michael Drake2009-05-271-1/+2
| | | | svn path=/trunk/netsurf/; revision=7589
* Remove a couple of superfluous conditions.Michael Drake2009-05-271-4/+4
| | | | svn path=/trunk/netsurf/; revision=7588
* Remove dead assignmentMichael Drake2009-05-271-2/+0
| | | | svn path=/trunk/netsurf/; revision=7587
* Handle percentage table heights. Spare height is still not distributed over ↵Michael Drake2009-05-081-10/+52
| | | | | | cells. svn path=/trunk/netsurf/; revision=7439
* Fix viewport height handling not to obliterate calculationMichael Drake2009-05-071-29/+42
| | | | | | | of root element height from children's dimensions. Improve handling of percentage heights on HTML and BODY. svn path=/trunk/netsurf/; revision=7429
* Make layout_block_context() private.Michael Drake2009-05-061-0/+1
| | | | svn path=/trunk/netsurf/; revision=7406
* Move special casing of form element dimensions out into separate helper ↵Michael Drake2009-05-061-61/+62
| | | | | | function. svn path=/trunk/netsurf/; revision=7403
* Make form elements with specified sizes include paddings and borders in ↵Michael Drake2009-05-011-48/+133
| | | | | | their sizes in some cases. svn path=/trunk/netsurf/; revision=7386
* Move handling of TR height attribute from box construction to layout and add ↵Michael Drake2009-04-281-0/+9
| | | | | | support for height property on TR. svn path=/trunk/netsurf/; revision=7358
* If we calculate the height of the root box to be AUTO, set it to the ↵John Mark Bell2009-04-171-0/+2
| | | | | | viewport height before laying out the document (makes html, body { height: 100%; } behave correctly) svn path=/trunk/netsurf/; revision=7127
* Update some comments.Michael Drake2009-04-151-1/+14
| | | | svn path=/trunk/netsurf/; revision=7092
* Remove unused line_height stuff for now.Michael Drake2009-02-021-17/+3
| | | | svn path=/trunk/netsurf/; revision=6354
* Fix clear:both; when there's nothing to clear.Michael Drake2009-02-021-6/+10
| | | | svn path=/trunk/netsurf/; revision=6352
* Hubbub allows FONT tags to span blocks and the way thatMichael Drake2009-01-311-1/+1
| | | | | | | | the box tree is generated, this makes the BOX_INLINE's BOX_INLINE_END appears in a different BOX_BLOCK. That seems wrong, but fix layout not to crash for now. svn path=/trunk/netsurf/; revision=6325
* Make inline boxes store the height of their line box and include in box tree ↵Michael Drake2009-01-311-2/+18
| | | | | | dump. svn path=/trunk/netsurf/; revision=6319
* Only get top margin if box has style.Michael Drake2009-01-291-14/+4
| | | | svn path=/trunk/netsurf/; revision=6295
* Include top margin when finding sides for block formatting contexts.Michael Drake2009-01-291-7/+27
| | | | svn path=/trunk/netsurf/; revision=6293
* Once a float has been placed below current line,Michael Drake2009-01-271-5/+9
| | | | | | | | ensure that subsequent floats are also placed below. Make place_float_below() consider float height when searching for available space. svn path=/trunk/netsurf/; revision=6287
* Fix specified table widths to include border. Tidy block formatting context ↵Michael Drake2009-01-261-8/+26
| | | | | | and table position setup. svn path=/trunk/netsurf/; revision=6281
* Fix -ve margins.Michael Drake2009-01-261-2/+2
| | | | svn path=/trunk/netsurf/; revision=6277
* More robust float avoidance for blocks set as block formatting contexts.Michael Drake2009-01-261-44/+75
| | | | svn path=/trunk/netsurf/; revision=6275
* Ignore clear:left; when the only floats are on the right and vice versa.Michael Drake2009-01-221-2/+4
| | | | svn path=/trunk/netsurf/; revision=6176
* Handle clear before working out available width for tables and blocks that ↵Michael Drake2009-01-221-10/+12
| | | | | | cause a new block formatting context. svn path=/trunk/netsurf/; revision=6174
* Fix placement of tables in normal flow next to floats. This stops big blank ↵Michael Drake2009-01-211-1/+12
| | | | | | gaps appearing e.g. at the top of wikipedia articles, on some google search results and on amazon product pages. svn path=/trunk/netsurf/; revision=6162
* Fix positioning of floats that come after floats with negative margins.Michael Drake2009-01-201-4/+8
| | | | svn path=/trunk/netsurf/; revision=6156
* Block formatting context width is only reduced due to floats if width is auto.Michael Drake2009-01-191-20/+26
| | | | svn path=/trunk/netsurf/; revision=6145
* Make blocks which establish a new block formatting context use have the ↵Michael Drake2009-01-181-0/+17
| | | | | | correct width and position to avoid overlapping floats. Fixes the main problem on the amazon.co.uk front page. svn path=/trunk/netsurf/; revision=6142
* Rewrite inline rendering. Fixes issues with borders,Michael Drake2008-12-211-2/+5
| | | | | | | | | background colour and background image display when inlines have margins and paddings. Support for background position on inlines. Fix BOX_INLINE descendant calculation to include BOX_INLINE_END. svn path=/trunk/netsurf/; revision=5916
* Take into account variations in text line height due to styled inlines when ↵Michael Drake2008-10-161-0/+2
| | | | | | laying out inline containers. svn path=/trunk/netsurf/; revision=5587
* Implement percentage min/max-height.Michael Drake2008-10-131-7/+65
| | | | svn path=/trunk/netsurf/; revision=5566
* Finish 80 char widthing.Michael Drake2008-10-131-48/+48
| | | | svn path=/trunk/netsurf/; revision=5560
* Tidy up where spaces were used for indentation.Michael Drake2008-10-131-10/+14
| | | | svn path=/trunk/netsurf/; revision=5555