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

Unified Diff: third_party/WebKit/Source/core/paint/PaintInvalidator.cpp

Issue 2793993003: 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/paint/PaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
index b208df2e9058015007e597387b0e3d6d2f944ccf..7d84659985f4f467418dcc5bed68fe6d6e7341a9 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
@@ -17,6 +17,7 @@
#include "core/paint/PaintLayer.h"
#include "core/paint/PaintLayerScrollableArea.h"
#include "core/paint/PaintPropertyTreeBuilder.h"
+#include "platform/graphics/paint/GeometryMapper.h"
#include "wtf/Optional.h"
namespace blink {
@@ -127,7 +128,7 @@ LayoutRect PaintInvalidator::mapLocalRectToVisualRectInBacking(
context.m_treeBuilderContext.current.clip, nullptr);
FloatRect floatRect(rect);
- context.m_geometryMapper.sourceToDestinationVisualRect(
+ GeometryMapper::sourceToDestinationVisualRect(
currentTreeState, *containerContentsProperties, floatRect);
result = LayoutRect(floatRect);
}
@@ -182,7 +183,7 @@ LayoutPoint PaintInvalidator::computeLocationInBacking(
context.paintInvalidationContainer->contentsProperties()->transform();
if (context.m_treeBuilderContext.current.transform != containerTransform) {
FloatRect rect = FloatRect(FloatPoint(point), FloatSize());
- context.m_geometryMapper.sourceToDestinationRect(
+ GeometryMapper::sourceToDestinationRect(
context.m_treeBuilderContext.current.transform, containerTransform,
rect);
point = LayoutPoint(rect.location());

Powered by Google App Engine
This is Rietveld 408576698