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

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

Issue 2782343002: Store local border box property cache outside ObjectPaintProperties (Closed)
Patch Set: Rebase 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 eeedfe7e0d7d5aceab040af5ea114e5c1f5e344b..b208df2e9058015007e597387b0e3d6d2f944ccf 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
@@ -105,8 +105,7 @@ LayoutRect PaintInvalidator::mapLocalRectToVisualRectInBacking(
rect.moveBy(Point(object.paintOffset()));
const auto* containerContentsProperties =
- context.paintInvalidationContainer->paintProperties()
- ->contentsProperties();
+ context.paintInvalidationContainer->contentsProperties();
if (context.m_treeBuilderContext.current.transform ==
containerContentsProperties->transform() &&
@@ -180,9 +179,7 @@ LayoutPoint PaintInvalidator::computeLocationInBacking(
point.moveBy(object.paintOffset());
const auto* containerTransform =
- context.paintInvalidationContainer->paintProperties()
- ->contentsProperties()
- ->transform();
+ context.paintInvalidationContainer->contentsProperties()->transform();
if (context.m_treeBuilderContext.current.transform != containerTransform) {
FloatRect rect = FloatRect(FloatPoint(point), FloatSize());
context.m_geometryMapper.sourceToDestinationRect(
« no previous file with comments | « third_party/WebKit/Source/core/paint/ObjectPaintProperties.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698