| Index: third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
|
| index cd44b829262c913ced298c5ab98875deb1a9a90f..b8ff7389fdf6b067bf97ed7089e0906fa4efa0a2 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
|
| @@ -110,7 +110,7 @@ static LayoutRect mapLocalRectToPaintInvalidationBacking(
|
| containerPaintProperties->contentsProperties();
|
|
|
| bool success = false;
|
| - result = LayoutRect(geometryMapper.mapToVisualRectInDestinationSpace(
|
| + result = LayoutRect(geometryMapper.sourceToDestinationVisualRect(
|
| rect, currentTreeState, containerContentsProperties, success));
|
| DCHECK(success);
|
|
|
| @@ -166,11 +166,6 @@ LayoutPoint PaintInvalidator::computeLocationInBacking(
|
| if (object != context.paintInvalidationContainer) {
|
| point.moveBy(FloatPoint(object.paintOffset()));
|
|
|
| - PropertyTreeState currentTreeState(
|
| - context.treeBuilderContext.current.transform,
|
| - context.treeBuilderContext.current.clip,
|
| - context.treeBuilderContext.currentEffect,
|
| - context.treeBuilderContext.current.scroll);
|
| const auto* containerPaintProperties =
|
| context.paintInvalidationContainer->paintProperties();
|
| auto containerContentsProperties =
|
| @@ -178,9 +173,10 @@ LayoutPoint PaintInvalidator::computeLocationInBacking(
|
|
|
| bool success = false;
|
| point = m_geometryMapper
|
| - .mapRectToDestinationSpace(FloatRect(point, FloatSize()),
|
| - currentTreeState,
|
| - containerContentsProperties, success)
|
| + .sourceToDestinationRect(
|
| + FloatRect(point, FloatSize()),
|
| + context.treeBuilderContext.current.transform,
|
| + containerContentsProperties.transform(), success)
|
| .location();
|
| DCHECK(success);
|
|
|
|
|