r5424 tlsa - /trunk/netsurf/render/layout.c

netsurf at semichrome.net netsurf at semichrome.net
Tue Sep 23 20:38:16 BST 2008


Author: tlsa
Date: Tue Sep 23 14:38:16 2008
New Revision: 5424

URL: http://source.netsurf-browser.org?rev=5424&view=rev
Log:
Fix for children of a containing block not being placed with respect to the containing block's top padding, if the containing block's first child is absolute positioned.

Modified:
    trunk/netsurf/render/layout.c

Modified: trunk/netsurf/render/layout.c
URL: http://source.netsurf-browser.org/trunk/netsurf/render/layout.c?rev=5424&r1=5423&r2=5424&view=diff
==============================================================================
--- trunk/netsurf/render/layout.c (original)
+++ trunk/netsurf/render/layout.c Tue Sep 23 14:38:16 2008
@@ -264,7 +264,7 @@
 	box = margin_box = block->children;
 	/* set current coordinates to top-left of the block */
 	cx = 0;
-	cy = block->padding[TOP];
+	y = cy = block->padding[TOP];
 	if (box)
 		box->y = block->padding[TOP];
 
@@ -1618,7 +1618,7 @@
 				/* + not cleared or,
 				 *   cleared and there are no floats to clear
 				 * + fits next to this line or,
-				 *   this line is empty with no floats  and
+				 *   this line is empty with no floats
 				 * + current y, cy, is below the clear level
 				 *
 				 * Float affects current line */




More information about the netsurf-commits mailing list