Index: Source/core/editing/iterators/TextIterator.cpp |
diff --git a/Source/core/editing/iterators/TextIterator.cpp b/Source/core/editing/iterators/TextIterator.cpp |
index f8fb80a915829c08276c8a260af99bc0cbbb14c1..cab99b0f4f67cf14a54dfdbc46f00d196aeee96e 100644 |
--- a/Source/core/editing/iterators/TextIterator.cpp |
+++ b/Source/core/editing/iterators/TextIterator.cpp |
@@ -836,7 +836,7 @@ static bool shouldEmitExtraNewlineForNode(Node* node) |
|| node->hasTagName(pTag)) { |
LayoutStyle* style = r->style(); |
if (style) { |
- int bottomMargin = toRenderBox(r)->collapsedMarginAfter(); |
+ int bottomMargin = toLayoutBox(r)->collapsedMarginAfter(); |
int fontSize = style->fontDescription().computedPixelSize(); |
if (bottomMargin * 2 >= fontSize) |
return true; |