summaryrefslogtreecommitdiff
path: root/render/layout.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fix float percentage heights to match other browsers: for floated elements ↵Michael Drake2008-10-131-1/+16
| | | | | | the containing block is the nearest ancestor box at block level, rather than the block formatting context block that the float is in. svn path=/trunk/netsurf/; revision=5553
* Set float_container before float layout. Fixes percentage height on floated ↵Michael Drake2008-10-121-1/+1
| | | | | | elements. svn path=/trunk/netsurf/; revision=5552
* Better commenting of percentage height stuff.Michael Drake2008-10-121-3/+7
| | | | svn path=/trunk/netsurf/; revision=5551
* Implement percentage heights for block level elements in normal flow, floats ↵Michael Drake2008-10-121-24/+67
| | | | | | and positioned boxes. Percentage min/max-height not yet handled. svn path=/trunk/netsurf/; revision=5550
* Use style guide switch formatting all over.Michael Drake2008-10-121-194/+192
| | | | svn path=/trunk/netsurf/; revision=5549
* Fix block level replaced element height regression.Michael Drake2008-09-281-1/+1
| | | | svn path=/trunk/netsurf/; revision=5450
* Also remember to apply min/max-width on floats without auto width.Michael Drake2008-09-271-0/+2
| | | | svn path=/trunk/netsurf/; revision=5446
* Implement min-width and max-width properties for non-replaced elements. ↵Michael Drake2008-09-271-78/+200
| | | | | | Partially implemented for replaced elements. svn path=/trunk/netsurf/; revision=5445
* C89François Revel2008-09-251-1/+1
| | | | svn path=/trunk/netsurf/; revision=5440
* Fix for children of a containing block not being placed with respect to the ↵Michael Drake2008-09-231-2/+2
| | | | | | containing block's top padding, if the containing block's first child is absolute positioned. svn path=/trunk/netsurf/; revision=5424
* Ignore clear property on floats when there are no floats to clear.Michael Drake2008-09-221-5/+11
| | | | svn path=/trunk/netsurf/; revision=5402
* Fix for positioning of inlines when a float is forced below them.Michael Drake2008-09-221-2/+0
| | | | svn path=/trunk/netsurf/; revision=5395
* Fix relative positioning to affect position of descendant floats which are ↵Michael Drake2008-09-211-8/+58
| | | | | | in a block formatting context which is an ancestor of the relatively positioned box. svn path=/trunk/netsurf/; revision=5390
* Fix floated radio buttons and checkboxes.Michael Drake2008-09-201-0/+24
| | | | svn path=/trunk/netsurf/; revision=5386
* Add param comments to layout_block_find_dimensions.Michael Drake2008-09-071-0/+4
| | | | svn path=/trunk/netsurf/; revision=5267
* Possibly fix BeOS / AmigaOS layout assert on line 190 for particular pages.Michael Drake2008-08-241-2/+2
| | | | svn path=/trunk/netsurf/; revision=5197
* Second merge of Adam Blokus' GSoC work from his branch ↵John Tytgat2008-08-141-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'branches/adamblokus/netsurf'. Merged revisions 4195-4211,4216,4219-4220,4222-4234,4236-4250,4252-4262,4264-4266,4268-4326,4329-4335,4338-4342,4344-4411,4413-4420,4422-4436,4438-4491,4494-4506,4508-4514,4516,4518-4552,4554,4556-4564,4567-4568,4570-4574,4576-4686,4689-4692,4694,4698-4709,4715-4723,4725-4755,4757-4769,4771-4919,4921-4996,4998-5110,5112-5117 via svnmerge from svn://svn.netsurf-browser.org/branches/adamblokus/netsurf ........ r4736 | adamblokus | 2008-07-26 13:46:54 +0200 (Sat, 26 Jul 2008) | 2 lines Sorting out some problems with svn. ........ r4737 | adamblokus | 2008-07-26 13:54:36 +0200 (Sat, 26 Jul 2008) | 4 lines Added export tab to the options dialog. Added the possibility of changing some print options. ........ r4897 | adamblokus | 2008-08-04 17:59:05 +0200 (Mon, 04 Aug 2008) | 5 lines Added checking of horizontal clipping. Added better table loosening. Changed some minor bugs. Applied changes in the Export options tab according to the review from tlsa. ........ r4905 | adamblokus | 2008-08-05 01:53:34 +0200 (Tue, 05 Aug 2008) | 2 lines Fixed bug which made it impossible to export pdf's. ........ r4919 | adamblokus | 2008-08-05 16:39:33 +0200 (Tue, 05 Aug 2008) | 2 lines Fixed some memory leaks which caused Netsurf to break. ........ r4927 | adamblokus | 2008-08-06 02:26:30 +0200 (Wed, 06 Aug 2008) | 4 lines Fixed bug with filenames which crashed Netsurf. Turned anti aliasing off for printing. Fixed some scaling issues. ........ r4928 | adamblokus | 2008-08-06 17:52:44 +0200 (Wed, 06 Aug 2008) | 5 lines Added new export/print options: - suppressing images - turning off backgrounds - toggled loosening ........ r4950 | adamblokus | 2008-08-07 21:15:21 +0200 (Thu, 07 Aug 2008) | 5 lines Added new options to PDF export: - document compression - document encryption Added PDF password dialog ........ r4954 | adamblokus | 2008-08-07 22:11:31 +0200 (Thu, 07 Aug 2008) | 2 lines Added saving print settings. ........ r4956 | adamblokus | 2008-08-07 22:44:48 +0200 (Thu, 07 Aug 2008) | 2 lines Fixes to PDF encryption ........ r4970 | adamblokus | 2008-08-09 15:26:24 +0200 (Sat, 09 Aug 2008) | 3 lines Fixed bug in plotting tiled bitmaps. Fixed bug with too long text decorations. ........ r4977 | adamblokus | 2008-08-09 19:18:56 +0200 (Sat, 09 Aug 2008) | 2 lines Fixed JPG embedding bug. ........ r4988 | adamblokus | 2008-08-10 16:59:51 +0200 (Sun, 10 Aug 2008) | 3 lines Added clip checking to pdf plotters. No more "blank" clips. Made PDF compression a default setting. ........ r4995 | adamblokus | 2008-08-10 20:03:00 +0200 (Sun, 10 Aug 2008) | 2 lines Fixed Haru crash on font-size==0. ........ r4996 | adamblokus | 2008-08-10 21:04:43 +0200 (Sun, 10 Aug 2008) | 2 lines Added changing text mode only if necessary. ........ r5045 | adamblokus | 2008-08-11 21:26:26 +0200 (Mon, 11 Aug 2008) | 3 lines Removing gtk stuff from core code. Little fix in options. ........ r5048 | adamblokus | 2008-08-11 21:57:45 +0200 (Mon, 11 Aug 2008) | 2 lines Better font size checking in PDF export. ........ r5050 | adamblokus | 2008-08-11 22:19:56 +0200 (Mon, 11 Aug 2008) | 2 lines Fixed riscos text scale bug. ........ r5073 | adamblokus | 2008-08-12 17:40:57 +0200 (Tue, 12 Aug 2008) | 2 lines Added missing tooltips ........ r5092 | adamblokus | 2008-08-13 17:09:25 +0200 (Wed, 13 Aug 2008) | 2 lines Moved /pdf folder to desktop/save_pdf ........ r5110 | adamblokus | 2008-08-13 22:44:50 +0200 (Wed, 13 Aug 2008) | 2 lines Added comments. ........ r5113 | adamblokus | 2008-08-13 23:07:35 +0200 (Wed, 13 Aug 2008) | 2 lines Cosmetic changes ........ r5116 | adamblokus | 2008-08-14 16:10:18 +0200 (Thu, 14 Aug 2008) | 2 lines Fixed bug with BOX_INLINE_END in tree duplication. ........ r5117 | joty | 2008-08-14 21:47:46 +0200 (Thu, 14 Aug 2008) | 1 line Improvement for r5116: use local vars when possible; rename global last to box_duplicate_last; check on box_duplicate_main_tree failure. ........ svn path=/trunk/netsurf/; revision=5118