Index: Source/core/rendering/RootInlineBox.cpp |
diff --git a/Source/core/rendering/RootInlineBox.cpp b/Source/core/rendering/RootInlineBox.cpp |
index 5c3e8a0dccd022e2c9900516cc0bd6d76651edfd..a2403644ab6e3d2f893d816ab9a0f7ac4bf3855f 100644 |
--- a/Source/core/rendering/RootInlineBox.cpp |
+++ b/Source/core/rendering/RootInlineBox.cpp |
@@ -428,12 +428,12 @@ LayoutUnit RootInlineBox::selectionTopAdjustedForPrecedingBlock() const |
{ |
LayoutUnit top = selectionTop(); |
- RenderObject::SelectionState blockSelectionState = root()->block().selectionState(); |
+ RenderObject::SelectionState blockSelectionState = root().block().selectionState(); |
if (blockSelectionState != RenderObject::SelectionInside && blockSelectionState != RenderObject::SelectionEnd) |
return top; |
LayoutSize offsetToBlockBefore; |
- if (RenderBlock* block = root()->block().blockBeforeWithinSelectionRoot(offsetToBlockBefore)) { |
+ if (RenderBlock* block = root().block().blockBeforeWithinSelectionRoot(offsetToBlockBefore)) { |
if (RootInlineBox* lastLine = block->lastRootBox()) { |
RenderObject::SelectionState lastLineSelectionState = lastLine->selectionState(); |
if (lastLineSelectionState != RenderObject::SelectionInside && lastLineSelectionState != RenderObject::SelectionStart) |