summaryrefslogtreecommitdiff
path: root/render/layout.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove the netsurf/ from the include paths and rationalise use of <> vs "" ↵Daniel Silverstone2007-05-301-10/+10
| | | | | | | | | | | | | | 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
* Object sizes do not apply when calculating the extent of descendent John Mark Bell2007-04-071-11/+0
| | | | | | bounding boxes. (fixes 1601881) svn path=/trunk/netsurf/; revision=3240
* Fix assertion when table has negative mbp (1579981)John Mark Bell2007-03-251-0/+4
| | | | svn path=/trunk/netsurf/; revision=3222
* Fix handling of scrollbar addition to blocks which have height/width == John Mark Bell2007-03-241-19/+41
| | | | | | AUTO (fixes 1567430) svn path=/trunk/netsurf/; revision=3220
* Fix FP exception when right-aligned tables with margin: auto are nested John Mark Bell2007-03-241-0/+5
| | | | | | | (interaction with floats, resulting in margin[TOP] == AUTO) (fixes 1662931) svn path=/trunk/netsurf/; revision=3218
* Fix height of absolutely positioned inline blocks with an object. Fix layout ↵James Bursa2006-12-261-6/+22
| | | | | | of list markers with no text. svn path=/trunk/netsurf/; revision=3122
* Update project URL.Michael Drake2006-11-271-1/+1
| | | | svn path=/trunk/netsurf/; revision=3073
* Fix gap between list marker and list content.Michael Drake2006-11-101-0/+1
| | | | svn path=/trunk/netsurf/; revision=3040
* Fix distortion of list marker images.James Bursa2006-11-071-6/+16
| | | | svn path=/trunk/netsurf/; revision=3039
* More work on lists. Simplify the implementation to a BLOCK for display: ↵James Bursa2006-11-051-199/+50
| | | | | | 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-6/+199
| | | | svn path=/trunk/netsurf/; revision=3028
* Implement absolute positioned inlines.James Bursa2006-11-041-9/+32
| | | | svn path=/trunk/netsurf/; revision=3026
* Do absolute positioning after other layout so that containing block is fully ↵James Bursa2006-10-101-37/+30
| | | | | | positioned. svn path=/trunk/netsurf/; revision=2991
* Check for null style before using it.James Bursa2006-10-091-2/+3
| | | | svn path=/trunk/netsurf/; revision=2986
* Modify implementation of absolute positioning to support "static positions". ↵James Bursa2006-10-081-89/+59
| | | | | | Absolutely positioned boxes are now in their original place in the tree instead of linked from absolute_children. svn path=/trunk/netsurf/; revision=2984
* Add some documentation to layout_block_context(). Move code out into ↵James Bursa2006-09-161-33/+67
| | | | | | layout_block_object(). svn path=/trunk/netsurf/; revision=2957
* Fixed textarea wordwrap if first character on line is a spaceJeffrey Lee2006-09-101-0/+5
| | | | svn path=/trunk/netsurf/; revision=2941
* textarea html tag fix; horizontal scrollbars; auto-scroll improvementsJeffrey Lee2006-09-101-19/+30
| | | | svn path=/trunk/netsurf/; revision=2940
* Fix layout of standalone <br>.James Bursa2006-08-141-1/+1
| | | | svn path=/trunk/netsurf/; revision=2849
* Use a minimum line height of 0 for inline containers which have no text.James Bursa2006-08-131-2/+16
| | | | svn path=/trunk/netsurf/; revision=2838
* Layout absolutely positioned children of tables.James Bursa2006-07-231-0/+3
| | | | svn path=/trunk/netsurf/; revision=2791
* Ensure that layout of absolute children is carried out after the height is ↵James Bursa2006-07-021-15/+10
| | | | | | known. svn path=/trunk/netsurf/; revision=2696
* Ensure containing block has valid height for positioning absolute childrenJohn Mark Bell2006-06-291-0/+14
| | | | svn path=/trunk/netsurf/; revision=2680
* Properly take account of padding on containing block.John Mark Bell2006-06-291-9/+22
| | | | svn path=/trunk/netsurf/; revision=2673
* Position specifiers are relative to containing block's padding edge for John Mark Bell2006-06-291-0/+20
| | | | | | absolutely positioned boxes. Compensate for this. svn path=/trunk/netsurf/; revision=2672
* Fix previous commit; it failed to make available_width include mbp such John Mark Bell2006-06-291-11/+5
| | | | | | | that subtracting them after determining the width works in the case where available_width > box->min_width. svn path=/trunk/netsurf/; revision=2671
* Compensate for box->{min_width,max_width} including mbp when John Mark Bell2006-06-291-0/+12
| | | | | | auto-widthing absolutely positioned content. svn path=/trunk/netsurf/; revision=2670
* Fix float placement when it's an exact fit for the width availableJohn Mark Bell2006-06-281-1/+1
| | | | svn path=/trunk/netsurf/; revision=2661
* Relative positioning for absolutely positioned boxesJohn Mark Bell2006-06-261-0/+34
| | | | svn path=/trunk/netsurf/; revision=2653
* Box x,y coordinates are of padding edge relative to parent; John Mark Bell2006-06-261-2/+2
| | | | | | | top,left,bottom,right are of margin edge relative to parent, so add margin and border width when calculating x,y from left,top. svn path=/trunk/netsurf/; revision=2652
* Fix calculation of right margin in case where margin right is autoJohn Mark Bell2006-06-261-5/+14
| | | | | | Initialise available_width correctly for shrink-to-fit widthing. svn path=/trunk/netsurf/; revision=2649
* Implement absolute positioning.James Bursa2006-06-261-226/+562
| | | | svn path=/trunk/netsurf/; revision=2648
* Fix float positions after a block with a specified height.James Bursa2006-05-071-0/+7
| | | | svn path=/trunk/netsurf/; revision=2598
* Move word that doesn't fit next to float below float correctly (fixes crash ↵James Bursa2006-04-091-24/+38
| | | | | | on ofsted site). svn path=/trunk/netsurf/; revision=2516
* [project @ 2006-04-04 10:55:47 by dsilvers]Daniel Silverstone2006-04-041-1/+3
| | | | | | Small extra debug statement for when looking at box splitting svn path=/import/netsurf/; revision=2485
* [project @ 2006-03-26 21:41:18 by bursa]James Bursa2006-03-261-2/+9
| | | | | | Fix layout bug related to negative text indent (fixes 1437728). svn path=/import/netsurf/; revision=2185
* [project @ 2006-03-26 19:59:15 by bursa]James Bursa2006-03-261-2/+2
| | | | | | Fix layout bug related to floats near end of line (fixes 1453561). Pass 1 and pass 2 in layout_line() were handling space_after differently. svn path=/import/netsurf/; revision=2182
* [project @ 2006-01-15 22:25:40 by bursa]James Bursa2006-01-151-1/+8
| | | | | | Fix crash related to negative margins on inlines. svn path=/import/netsurf/; revision=2021
* [project @ 2005-11-06 11:00:33 by bursa]James Bursa2005-11-061-4/+8
| | | | | | Fix crash when a frame contains floats. svn path=/import/netsurf/; revision=1877
* [project @ 2005-10-30 21:23:24 by bursa]James Bursa2005-10-301-32/+65
| | | | | | Treat HTML objects (frames) as part of the box tree during layout. svn path=/import/netsurf/; revision=1875
* [project @ 2005-08-08 19:19:20 by bursa]James Bursa2005-08-081-0/+32
| | | | | | Fix redraw of underlines and other text-decoration. svn path=/import/netsurf/; revision=1845
* [project @ 2005-08-07 21:28:48 by bursa]James Bursa2005-08-071-3/+8
| | | | | | Improvements to frames. Fix bug with BR at end of inline container. svn path=/import/netsurf/; revision=1843
* [project @ 2005-08-06 23:34:30 by bursa]James Bursa2005-08-061-1/+5
| | | | | | Fix vertical positioning of floats when an empty block with top padding is present. svn path=/import/netsurf/; revision=1842
* [project @ 2005-08-06 22:29:30 by bursa]James Bursa2005-08-061-2/+7
| | | | | | Use given width as initial min/max width of fixed-width table columns. This improves the layout of certain tables with colspans. svn path=/import/netsurf/; revision=1841
* [project @ 2005-07-31 21:57:07 by bursa]James Bursa2005-07-311-1/+12
| | | | | | Implement clear on <br>. svn path=/import/netsurf/; revision=1834
* [project @ 2005-07-31 11:21:46 by bursa]James Bursa2005-07-311-9/+7
| | | | | | Fix certain cases of relative positioning, and make the recursion more efficient (don't recurse for BOX_TEXT). svn path=/import/netsurf/; revision=1831
* [project @ 2005-07-30 23:32:48 by jmb]John Mark Bell2005-07-301-1/+132
| | | | | | Position: relative; support. svn path=/import/netsurf/; revision=1830
* [project @ 2005-07-24 14:29:32 by bursa]James Bursa2005-07-241-5/+12
| | | | | | Fix position of certain floats. svn path=/import/netsurf/; revision=1822
* [project @ 2005-07-21 21:48:41 by bursa]James Bursa2005-07-211-0/+22
| | | | | | Fix layout min max bug with blocks with negative margins. Add assert()s to check that 0 <= min_width <= max_width at the end of each layout_minmax_X() function. svn path=/import/netsurf/; revision=1813
* [project @ 2005-07-20 22:25:56 by bursa]James Bursa2005-07-201-0/+10
| | | | | | Fix fixed width table min / max width calculations. svn path=/import/netsurf/; revision=1811