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

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

Issue 2798513002: Revert of Make GeometryMapper fully static (Closed)
Patch Set: Created 3 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/PaintInvalidationState.cpp
diff --git a/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp b/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
index ef27986c97a515c4c244cd3f4ad4975feed3539e..5fd170864b56105a61e443e271fefd22b4afbc01 100644
--- a/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
+++ b/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
@@ -635,11 +635,17 @@
return dummyContext;
}
+static GeometryMapper& dummyGeometryMapper() {
+ DEFINE_STATIC_LOCAL(std::unique_ptr<GeometryMapper>, dummyMapper,
+ (GeometryMapper::create()));
+ return *dummyMapper;
+}
+
PaintInvalidatorContextAdapter::PaintInvalidatorContextAdapter(
const PaintInvalidationState& paintInvalidationState)
// The dummy parameters will be never used because the overriding
// mapLocalRectToVisualRectInBacking() uses PaintInvalidationState.
- : PaintInvalidatorContext(dummyTreeBuilderContext()),
+ : PaintInvalidatorContext(dummyTreeBuilderContext(), dummyGeometryMapper()),
m_paintInvalidationState(paintInvalidationState) {
forcedSubtreeInvalidationFlags =
paintInvalidationState.m_forcedSubtreeInvalidationFlags;
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/layout/VisualRectMappingTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698