summaryrefslogtreecommitdiff
path: root/render/layout.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* [project @ 2005-07-20 22:08:56 by bursa]James Bursa2005-07-201-2/+4
| | | | | | Fix min / max bug with negative margins (treat as 0 for now). svn path=/import/netsurf/; revision=1810
* [project @ 2005-07-02 23:37:41 by bursa]James Bursa2005-07-021-42/+50
| | | | | | Improvements to layout_minmax_line(). Fix width of floats / inline blocks without an explicit width (space for margins, borders, padding was added twice). svn path=/import/netsurf/; revision=1781
* [project @ 2005-07-02 18:17:51 by bursa]James Bursa2005-07-021-674/+479
| | | | | | 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-10/+42
| | | | | | 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-05-23 22:14:09 by bursa]James Bursa2005-05-231-1/+14
| | | | | | Start to implement borders on inline elements. Note: borders of form controls are rendered incorrectly (text boxes in form controls need changing from INLINE to TEXT). svn path=/import/netsurf/; revision=1734
* [project @ 2005-05-22 21:50:14 by bursa]James Bursa2005-05-221-5/+9
| | | | | | 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-28 02:35:03 by rjw]Richard Wilson2005-04-281-0/+3
| | | | | | HTML border attributes have lower priority that CSS values (fix osnews). Disable tr height minimum value usage for now. svn path=/import/netsurf/; revision=1694
* [project @ 2005-04-28 01:50:55 by rjw]Richard Wilson2005-04-281-5/+9
| | | | | | Respect minimum height for tr. svn path=/import/netsurf/; revision=1693
* [project @ 2005-04-14 19:54:24 by rjw]Richard Wilson2005-04-141-45/+251
| | | | | | Implement HTML table border setting. Improve support for the collapsing border model. svn path=/import/netsurf/; revision=1632
* [project @ 2005-04-09 13:25:54 by bursa]James Bursa2005-04-091-0/+2
| | | | | | Add an assert() to layout_line() to help detect bugs. svn path=/import/netsurf/; revision=1614
* [project @ 2005-04-09 09:47:36 by bursa]James Bursa2005-04-091-57/+56
| | | | | | 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-04-02 18:24:47 by jmb]John Mark Bell2005-04-021-4/+13
| | | | | | Fix more FP exceptions svn path=/import/netsurf/; revision=1589
* [project @ 2005-04-02 11:13:27 by bursa]James Bursa2005-04-021-0/+8
| | | | | | Assert when a box has UNKNOWN_WIDTH after layout. svn path=/import/netsurf/; revision=1588
* [project @ 2005-03-22 16:29:16 by rjw]Richard Wilson2005-03-221-7/+22
| | | | | | Fix some rounding issues for table cell calculations. svn path=/import/netsurf/; revision=1571
* [project @ 2005-03-22 00:10:42 by rjw]Richard Wilson2005-03-221-2/+11
| | | | | | Experimental cellpadding support svn path=/import/netsurf/; revision=1569
* [project @ 2005-03-07 21:30:28 by bursa]James Bursa2005-03-071-1/+5
| | | | | | Fix some more FP exceptions related to layout. svn path=/import/netsurf/; revision=1528