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..45269b8c41b934c7c70b207457e8c318d5f3cd50 100644 |
--- a/Source/core/layout/line/InlineTextBox.cpp |
+++ b/Source/core/layout/line/InlineTextBox.cpp |
@@ -189,6 +189,8 @@ bool InlineTextBox::hasWrappedSelectionNewline() const |
{ |
SelectionState state = selectionState(); |
return RuntimeEnabledFeatures::selectionPaintingWithoutSelectionGapsEnabled() |
+ // TODO(wkorman): Remove horizontal restriction once vertical text is operational. |
+ && isHorizontal() |
chrishtr
2015/09/18 21:34:28
Only for left-to-right writing mode. RTL is also b
wkorman
2015/09/18 22:15:11
Done.
|
&& (root().lastSelectedBox() == this) |
&& (state == SelectionStart || state == SelectionInside); |
} |