Index: Source/core/dom/Position.cpp |
diff --git a/Source/core/dom/Position.cpp b/Source/core/dom/Position.cpp |
index 646f305ad25d3c970b53b39b399aa6bbaa69955d..8d52a1e59c15ea0bf34ca0181b834fa116332a62 100644 |
--- a/Source/core/dom/Position.cpp |
+++ b/Source/core/dom/Position.cpp |
@@ -674,7 +674,7 @@ Position Position::upstream(EditingBoundaryCrossingRule rule) const |
otherBox = otherBox->nextLeafChild(); |
if (!otherBox) |
break; |
- if (otherBox == lastTextBox || (otherBox->renderer() == textRenderer && static_cast<InlineTextBox*>(otherBox)->start() > textOffset)) |
+ if (otherBox == lastTextBox || (otherBox->renderer() == textRenderer && toInlineTextBox(otherBox)->start() > textOffset)) |
continuesOnNextLine = false; |
} |
@@ -683,7 +683,7 @@ Position Position::upstream(EditingBoundaryCrossingRule rule) const |
otherBox = otherBox->prevLeafChild(); |
if (!otherBox) |
break; |
- if (otherBox == lastTextBox || (otherBox->renderer() == textRenderer && static_cast<InlineTextBox*>(otherBox)->start() > textOffset)) |
+ if (otherBox == lastTextBox || (otherBox->renderer() == textRenderer && toInlineTextBox(otherBox)->start() > textOffset)) |
continuesOnNextLine = false; |
} |
@@ -798,7 +798,7 @@ Position Position::downstream(EditingBoundaryCrossingRule rule) const |
otherBox = otherBox->nextLeafChild(); |
if (!otherBox) |
break; |
- if (otherBox == lastTextBox || (otherBox->renderer() == textRenderer && static_cast<InlineTextBox*>(otherBox)->start() >= textOffset)) |
+ if (otherBox == lastTextBox || (otherBox->renderer() == textRenderer && toInlineTextBox(otherBox)->start() >= textOffset)) |
continuesOnNextLine = false; |
} |
@@ -807,7 +807,7 @@ Position Position::downstream(EditingBoundaryCrossingRule rule) const |
otherBox = otherBox->prevLeafChild(); |
if (!otherBox) |
break; |
- if (otherBox == lastTextBox || (otherBox->renderer() == textRenderer && static_cast<InlineTextBox*>(otherBox)->start() >= textOffset)) |
+ if (otherBox == lastTextBox || (otherBox->renderer() == textRenderer && toInlineTextBox(otherBox)->start() >= textOffset)) |
continuesOnNextLine = false; |
} |