Index: Source/core/layout/line/InlineTextBox.cpp |
diff --git a/Source/core/layout/line/InlineTextBox.cpp b/Source/core/layout/line/InlineTextBox.cpp |
index 72aa246d7db6e70a1b19d03c0b2e407ea6a7243e..6982a9762753cb380e7fa9ec1e1b7ac70e1b7430 100644 |
--- a/Source/core/layout/line/InlineTextBox.cpp |
+++ b/Source/core/layout/line/InlineTextBox.cpp |
@@ -189,6 +189,9 @@ bool InlineTextBox::hasWrappedSelectionNewline() const |
{ |
SelectionState state = selectionState(); |
return RuntimeEnabledFeatures::selectionPaintingWithoutSelectionGapsEnabled() |
+ // TODO(wkorman): Remove horizontal and RTL restrictions once operational. |
+ && isHorizontal() |
+ && isLeftToRightDirection() |
&& (root().lastSelectedBox() == this) |
&& (state == SelectionStart || state == SelectionInside); |
} |