Index: Source/core/rendering/RenderBlock.cpp |
diff --git a/Source/core/rendering/RenderBlock.cpp b/Source/core/rendering/RenderBlock.cpp |
index 1b63df3ee3d758186366cc5d4738a3e749797f03..5958cf5a8cc77c4755988d36b3c58d557b13e7c1 100644 |
--- a/Source/core/rendering/RenderBlock.cpp |
+++ b/Source/core/rendering/RenderBlock.cpp |
@@ -4041,7 +4041,7 @@ void RenderBlock::createFirstLetterRenderer(RenderObject* firstLetterBlock, Rend |
RenderObject* firstLetterContainer = currentChild->parent(); |
RenderStyle* pseudoStyle = styleForFirstLetter(firstLetterBlock, firstLetterContainer); |
- RenderObject* firstLetter = 0; |
+ RenderBoxModelObject* firstLetter = 0; |
if (pseudoStyle->display() == INLINE) |
firstLetter = RenderInline::createAnonymous(&document()); |
else |
@@ -4072,7 +4072,7 @@ void RenderBlock::createFirstLetterRenderer(RenderObject* firstLetterBlock, Rend |
firstLetterContainer->addChild(remainingText, textObj); |
firstLetterContainer->removeChild(textObj); |
remainingText->setFirstLetter(firstLetter); |
- toRenderBoxModelObject(firstLetter)->setFirstLetterRemainingText(remainingText); |
+ firstLetter->setFirstLetterRemainingText(remainingText); |
// construct text fragment for the first letter |
RenderTextFragment* letter = |