Index: Source/WebCore/rendering/RenderBlock.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderBlock.cpp (revision 118869) |
+++ Source/WebCore/rendering/RenderBlock.cpp (working copy) |
@@ -3460,15 +3460,15 @@ |
if (isSelectionRoot()) |
return 0; |
- const RenderBox* object = this; |
+ const RenderObject* object = this; |
RenderObject* sibling; |
do { |
sibling = object->previousSibling(); |
while (sibling && (!sibling->isRenderBlock() || toRenderBlock(sibling)->isSelectionRoot())) |
sibling = sibling->previousSibling(); |
- offset -= LayoutSize(object->logicalLeft(), object->logicalTop()); |
- object = object->parentBox(); |
+ offset -= LayoutSize(toRenderBlock(object)->logicalLeft(), toRenderBlock(object)->logicalTop()); |
+ object = object->parent(); |
} while (!sibling && object && object->isRenderBlock() && !toRenderBlock(object)->isSelectionRoot()); |
if (!sibling) |