Simple first-letter/first-line fix
David Hyatt
hyatt at apple.com
Sat Mar 6 02:23:43 CET 2004
A bug in bugzilla with a test case that I noticed... here's the fix and
a link to the test case...
http://bugzilla.mozilla.org/attachment.cgi?id=143012&action=view
-------------- next part --------------
Index: khtml/rendering/render_block.cpp
===================================================================
RCS file: /local/home/cvs/Labyrinth/WebCore/khtml/rendering/render_block.cpp,v
retrieving revision 1.102
diff -u -p -r1.102 khtml/rendering/render_block.cpp
--- khtml/rendering/render_block.cpp 2004/02/26 23:10:44 1.102
+++ khtml/rendering/render_block.cpp 2004/03/06 00:25:05
@@ -2545,8 +2545,8 @@ RenderBlock* RenderBlock::firstLineBlock
if (hasPseudo)
break;
RenderObject* parentBlock = firstLineBlock->parent();
- if (firstLineBlock->isReplaced() || !parentBlock || parentBlock->firstChild() != firstLineBlock ||
- !parentBlock->isBlockFlow())
+ if (firstLineBlock->isReplaced() || firstLineBlock->isFloating() ||
+ !parentBlock || parentBlock->firstChild() != firstLineBlock || !parentBlock->isBlockFlow())
break;
firstLineBlock = parentBlock;
}
-------------- next part --------------
dave
More information about the Khtml-devel
mailing list