Index: Source/WebCore/rendering/RenderBlock.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderBlock.cpp (revision 99025) |
+++ Source/WebCore/rendering/RenderBlock.cpp (working copy) |
@@ -5569,6 +5569,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. |
@@ -5599,7 +5600,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); |
} |