Index: Source/core/rendering/RenderReplaced.cpp |
diff --git a/Source/core/rendering/RenderReplaced.cpp b/Source/core/rendering/RenderReplaced.cpp |
index 5d1dae4fac814b0a643fcd0ce1415562eb2837a7..eecded236d960ce6f9210cc2f1168539c2bfb712 100644 |
--- a/Source/core/rendering/RenderReplaced.cpp |
+++ b/Source/core/rendering/RenderReplaced.cpp |
@@ -572,8 +572,8 @@ LayoutRect RenderReplaced::localSelectionRect(bool checkWhetherSelected) const |
return LayoutRect(LayoutPoint(), size()); |
RootInlineBox* root = inlineBoxWrapper()->root(); |
- LayoutUnit newLogicalTop = root->block()->style()->isFlippedBlocksWritingMode() ? inlineBoxWrapper()->logicalBottom() - root->selectionBottom() : root->selectionTop() - inlineBoxWrapper()->logicalTop(); |
- if (root->block()->style()->isHorizontalWritingMode()) |
+ LayoutUnit newLogicalTop = root->block().style()->isFlippedBlocksWritingMode() ? inlineBoxWrapper()->logicalBottom() - root->selectionBottom() : root->selectionTop() - inlineBoxWrapper()->logicalTop(); |
+ if (root->block().style()->isHorizontalWritingMode()) |
return LayoutRect(0, newLogicalTop, width(), root->selectionHeight()); |
return LayoutRect(newLogicalTop, 0, root->selectionHeight(), height()); |
} |