Index: Source/WebCore/rendering/RenderBlock.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderBlock.cpp (revision 99342) |
+++ Source/WebCore/rendering/RenderBlock.cpp (working copy) |
@@ -5483,6 +5483,7 @@ |
RenderObject* firstLetter = currChild->parent(); |
RenderObject* firstLetterContainer = firstLetter->parent(); |
RenderStyle* pseudoStyle = styleForFirstLetter(firstLetterBlock, firstLetterContainer); |
+ ASSERT(firstLetter->isFloating() || firstLetter->isInline()); |
if (Node::diff(firstLetter->style(), pseudoStyle) == Node::Detach) { |
// The first-letter renderer needs to be replaced. Create a new renderer of the right type. |
@@ -5513,7 +5514,7 @@ |
next = next->nextSibling(); |
} |
if (remainingText) { |
- ASSERT(remainingText->node()->renderer() == remainingText); |
+ ASSERT(remainingText->isAnonymous() || remainingText->node()->renderer() == remainingText); |
// Replace the old renderer with the new one. |
remainingText->setFirstLetter(newFirstLetter); |
} |