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

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

Issue 2792063002: Reland of Skip paint property update and visual rect update if no geometry change (Closed)
Patch Set: Rebase Created 3 years, 8 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/PaintInvalidationState.cpp
diff --git a/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp b/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
index ef27986c97a515c4c244cd3f4ad4975feed3539e..b4c3bd8d439e8abc08a8a68acfd746f3af2f884a 100644
--- a/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
+++ b/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
@@ -630,16 +630,9 @@ void PaintInvalidationState::assertFastPathAndSlowPathRectsEqual(
#endif // CHECK_FAST_PATH_SLOW_PATH_EQUALITY
-static const PaintPropertyTreeBuilderContext& dummyTreeBuilderContext() {
- DEFINE_STATIC_LOCAL(PaintPropertyTreeBuilderContext, dummyContext, ());
- return dummyContext;
-}
-
PaintInvalidatorContextAdapter::PaintInvalidatorContextAdapter(
const PaintInvalidationState& paintInvalidationState)
- // The dummy parameters will be never used because the overriding
- // mapLocalRectToVisualRectInBacking() uses PaintInvalidationState.
- : PaintInvalidatorContext(dummyTreeBuilderContext()),
+ : PaintInvalidatorContext(nullptr),
m_paintInvalidationState(paintInvalidationState) {
forcedSubtreeInvalidationFlags =
paintInvalidationState.m_forcedSubtreeInvalidationFlags;

Powered by Google App Engine
This is Rietveld 408576698