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

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

Issue 2208463003: First step of PaintInvalidator implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: - Created 4 years, 4 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/LayoutBlockFlowLine.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
index 6d210be8a57ddd3f052d37ff2d6940b3ab547535..03b79473ece791291c730efa8d808e6cb86a0767 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
@@ -2076,18 +2076,7 @@ PaintInvalidationReason LayoutBlockFlow::invalidatePaintIfNeeded(const PaintInva
if (containsFloats())
paintInvalidationState.paintingLayer().setNeedsPaintPhaseFloat();
- PaintInvalidationReason reason = LayoutBlock::invalidatePaintIfNeeded(paintInvalidationState);
- if (reason == PaintInvalidationNone || reason == PaintInvalidationDelayedFull)
- return reason;
-
- RootInlineBox* line = firstRootBox();
- if (!line || !line->isFirstLineStyle())
- return reason;
- // It's the RootInlineBox that paints the ::first-line background. Note that since it may be
- // expensive to figure out if the first line is affected by any ::first-line selectors at all,
- // we just invalidate it unconditionally, since that's typically cheaper.
- invalidateDisplayItemClient(*line, reason);
- return reason;
+ return LayoutBlock::invalidatePaintIfNeeded(paintInvalidationState);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698