| Index: third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
|
| index 3cc8cc1208933e5c5ff79ece7e85c47243cfdc71..89add92dc4b0dde1b80df08a8269c000111e3e65 100644
|
| --- a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
|
| @@ -11,14 +11,15 @@
|
| #include "core/layout/LayoutPart.h"
|
| #include "core/layout/LayoutView.h"
|
| #include "core/paint/PaintLayer.h"
|
| +#include "platform/graphics/paint/GeometryMapper.h"
|
|
|
| namespace blink {
|
|
|
| struct PrePaintTreeWalkContext {
|
| - PrePaintTreeWalkContext(GeometryMapper& geometryMapper)
|
| + PrePaintTreeWalkContext()
|
| : treeBuilderContext(
|
| WTF::wrapUnique(new PaintPropertyTreeBuilderContext)),
|
| - paintInvalidatorContext(*treeBuilderContext, geometryMapper),
|
| + paintInvalidatorContext(*treeBuilderContext),
|
| ancestorOverflowPaintLayer(nullptr),
|
| ancestorTransformedOrRootPaintLayer(nullptr) {}
|
| PrePaintTreeWalkContext(const PrePaintTreeWalkContext& parentContext)
|
| @@ -48,15 +49,15 @@ void PrePaintTreeWalk::walk(FrameView& rootFrame) {
|
| DCHECK(rootFrame.frame().document()->lifecycle().state() ==
|
| DocumentLifecycle::InPrePaint);
|
|
|
| - PrePaintTreeWalkContext initialContext(m_geometryMapper);
|
| + PrePaintTreeWalkContext initialContext;
|
| initialContext.ancestorTransformedOrRootPaintLayer =
|
| rootFrame.layoutView()->layer();
|
|
|
| - // GeometryMapper depends on paint properties.
|
| + // GeometryMapper caches depend on paint properties.
|
| if (rootFrame.needsPaintPropertyUpdate() ||
|
| (rootFrame.layoutView() &&
|
| !shouldEndWalkBefore(*rootFrame.layoutView(), initialContext)))
|
| - m_geometryMapper.clearCache();
|
| + GeometryMapper::clearCache();
|
|
|
| walk(rootFrame, initialContext);
|
| m_paintInvalidator.processPendingDelayedPaintInvalidations();
|
| @@ -137,7 +138,7 @@ void PrePaintTreeWalk::computeClipRectForContext(
|
| PropertyTreeState localState(context.transform, context.clip, effect);
|
|
|
| clipRect =
|
| - m_geometryMapper.sourceToDestinationClipRect(localState, ancestorState);
|
| + GeometryMapper::sourceToDestinationClipRect(localState, ancestorState);
|
| clipRect.moveBy(-FloatPoint(ancestorPaintOffset));
|
| }
|
|
|
|
|