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

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

Issue 1813383002: Move all fast-path paint invalidation mapping into PaintInvalidationState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reorganize conditions in PaintInvalidationState constructor Created 4 years, 9 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 25ba1c9c3983370171a942119647bf5cffe35a1d..64c5dff5d14798cde936c3ac72299719a484118b 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBR.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBR.cpp
@@ -43,13 +43,6 @@ LayoutBR::~LayoutBR()
{
}
-LayoutRect LayoutBR::selectionRectForPaintInvalidation(const LayoutBoxModelObject* paintInvalidationContainer) const
-{
- // 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);
-}
-
int LayoutBR::lineHeight(bool firstLine) const
{
const ComputedStyle& style = styleRef(firstLine && document().styleEngine().usesFirstLineRules());

Powered by Google App Engine
This is Rietveld 408576698