Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(542)

Unified Diff: third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp

Issue 1642223002: Delete selection gap code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp b/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
index fb2c6b4dde11b23696458d858508fcebee0a205a..5e5123db2e487057599811ab969cfed7dc10f4c4 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
+++ b/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
@@ -195,8 +195,7 @@ bool InlineTextBox::hasWrappedSelectionNewline() const
return false;
SelectionState state = selectionState();
- return RuntimeEnabledFeatures::selectionPaintingWithoutSelectionGapsEnabled()
- && (state == SelectionStart || state == SelectionInside)
+ return (state == SelectionStart || state == SelectionInside)
// Checking last leaf child can be slow, so we make sure to do this only
// after the other simple conditionals.
&& (root().lastLeafChild() == this)

Powered by Google App Engine
This is Rietveld 408576698