Index: Source/core/dom/Position.cpp |
diff --git a/Source/core/dom/Position.cpp b/Source/core/dom/Position.cpp |
index 0f5174d0040b263bfc12544805da1a9b560836db..299ee1039c2f100c19cf614bd1f55e1fe4d2d0c7 100644 |
--- a/Source/core/dom/Position.cpp |
+++ b/Source/core/dom/Position.cpp |
@@ -677,7 +677,7 @@ Position Position::upstream(EditingBoundaryCrossingRule rule) const |
otherBox = otherBox->nextLeafChild(); |
if (!otherBox) |
break; |
- if (otherBox == lastTextBox || (otherBox->renderer() == textRenderer && toInlineTextBox(otherBox)->start() > textOffset)) |
+ if (otherBox == lastTextBox || (&otherBox->renderer() == textRenderer && toInlineTextBox(otherBox)->start() > textOffset)) |
continuesOnNextLine = false; |
} |
@@ -686,7 +686,7 @@ Position Position::upstream(EditingBoundaryCrossingRule rule) const |
otherBox = otherBox->prevLeafChild(); |
if (!otherBox) |
break; |
- if (otherBox == lastTextBox || (otherBox->renderer() == textRenderer && toInlineTextBox(otherBox)->start() > textOffset)) |
+ if (otherBox == lastTextBox || (&otherBox->renderer() == textRenderer && toInlineTextBox(otherBox)->start() > textOffset)) |
continuesOnNextLine = false; |
} |
@@ -801,7 +801,7 @@ Position Position::downstream(EditingBoundaryCrossingRule rule) const |
otherBox = otherBox->nextLeafChild(); |
if (!otherBox) |
break; |
- if (otherBox == lastTextBox || (otherBox->renderer() == textRenderer && toInlineTextBox(otherBox)->start() >= textOffset)) |
+ if (otherBox == lastTextBox || (&otherBox->renderer() == textRenderer && toInlineTextBox(otherBox)->start() >= textOffset)) |
continuesOnNextLine = false; |
} |
@@ -810,7 +810,7 @@ Position Position::downstream(EditingBoundaryCrossingRule rule) const |
otherBox = otherBox->prevLeafChild(); |
if (!otherBox) |
break; |
- if (otherBox == lastTextBox || (otherBox->renderer() == textRenderer && toInlineTextBox(otherBox)->start() >= textOffset)) |
+ if (otherBox == lastTextBox || (&otherBox->renderer() == textRenderer && toInlineTextBox(otherBox)->start() >= textOffset)) |
continuesOnNextLine = false; |
} |