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 5a24c12c9076fde27c3ddc05a5974a9de7870edc..54bb8dc00a85b2f0d1823554bdbaef2251a1dafa 100644 |
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp |
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp |
@@ -127,11 +127,11 @@ |
PropertyTreeState currentTreeState( |
context.treeBuilderContext.current.transform, |
context.treeBuilderContext.current.clip, nullptr); |
- |
- FloatRect floatRect(rect); |
- geometryMapper.sourceToDestinationVisualRect( |
- currentTreeState, *containerContentsProperties, floatRect); |
- result = LayoutRect(floatRect); |
+ result = LayoutRect( |
+ geometryMapper |
+ .sourceToDestinationVisualRect(FloatRect(rect), currentTreeState, |
+ *containerContentsProperties) |
+ .rect()); |
} |
// Convert the result to the container's contents space. |
@@ -182,11 +182,12 @@ |
->contentsProperties() |
->transform(); |
if (context.treeBuilderContext.current.transform != containerTransform) { |
- FloatRect rect = FloatRect(FloatPoint(point), FloatSize()); |
- m_geometryMapper.sourceToDestinationRect( |
- context.treeBuilderContext.current.transform, containerTransform, |
- rect); |
- point = LayoutPoint(rect.location()); |
+ point = LayoutPoint(m_geometryMapper |
+ .sourceToDestinationRect( |
+ FloatRect(FloatPoint(point), FloatSize()), |
+ context.treeBuilderContext.current.transform, |
+ containerTransform) |
+ .location()); |
} |
// Convert the result to the container's contents space. |