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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBR.cpp

Issue 1642223002: Delete selection gap code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Integrate feedback. 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/LayoutBR.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBR.cpp b/third_party/WebKit/Source/core/layout/LayoutBR.cpp
index 3d3fcc6fb5cb3cdf3680bd99c22149a305105644..25ba1c9c3983370171a942119647bf5cffe35a1d 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBR.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBR.cpp
@@ -45,9 +45,6 @@ LayoutBR::~LayoutBR()
LayoutRect LayoutBR::selectionRectForPaintInvalidation(const LayoutBoxModelObject* paintInvalidationContainer) const
{
- if (!RuntimeEnabledFeatures::selectionPaintingWithoutSelectionGapsEnabled())
- return LayoutRect();
-
// Although line breaks contain no actual text, if we're selected we need
// to return a rect that includes space to illustrate a newline.
return LayoutText::selectionRectForPaintInvalidation(paintInvalidationContainer);

Powered by Google App Engine
This is Rietveld 408576698