Index: Source/core/editing/VisiblePosition.cpp |
diff --git a/Source/core/editing/VisiblePosition.cpp b/Source/core/editing/VisiblePosition.cpp |
index 375f273076e196111d0972040b91d2918e5e5e37..a0b7697fa96a6330f951c329c190ea28b4126b18 100644 |
--- a/Source/core/editing/VisiblePosition.cpp |
+++ b/Source/core/editing/VisiblePosition.cpp |
@@ -189,7 +189,7 @@ Position VisiblePosition::leftVisuallyDistinctCandidate() const |
if (box->direction() == primaryDirection) { |
if (!prevBox) { |
InlineBox* logicalStart = 0; |
- if (primaryDirection == LTR ? box->root()->getLogicalStartBoxWithNode(logicalStart) : box->root()->getLogicalEndBoxWithNode(logicalStart)) { |
+ if (primaryDirection == LTR ? box->root().getLogicalStartBoxWithNode(logicalStart) : box->root().getLogicalEndBoxWithNode(logicalStart)) { |
box = logicalStart; |
renderer = &box->renderer(); |
offset = primaryDirection == LTR ? box->caretMinOffset() : box->caretMaxOffset(); |
@@ -354,7 +354,7 @@ Position VisiblePosition::rightVisuallyDistinctCandidate() const |
if (box->direction() == primaryDirection) { |
if (!nextBox) { |
InlineBox* logicalEnd = 0; |
- if (primaryDirection == LTR ? box->root()->getLogicalEndBoxWithNode(logicalEnd) : box->root()->getLogicalStartBoxWithNode(logicalEnd)) { |
+ if (primaryDirection == LTR ? box->root().getLogicalEndBoxWithNode(logicalEnd) : box->root().getLogicalStartBoxWithNode(logicalEnd)) { |
box = logicalEnd; |
renderer = &box->renderer(); |
offset = primaryDirection == LTR ? box->caretMaxOffset() : box->caretMinOffset(); |