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

Unified Diff: third_party/WebKit/Source/core/layout/VisualRectMappingTest.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/layout/VisualRectMappingTest.cpp
diff --git a/third_party/WebKit/Source/core/layout/VisualRectMappingTest.cpp b/third_party/WebKit/Source/core/layout/VisualRectMappingTest.cpp
index c500ce0e17b030d6a7f524c7e478f9ef1da1dd45..84c8e4d148480e73a038cd79075f5dea656742c6 100644
--- a/third_party/WebKit/Source/core/layout/VisualRectMappingTest.cpp
+++ b/third_party/WebKit/Source/core/layout/VisualRectMappingTest.cpp
@@ -41,11 +41,10 @@ class VisualRectMappingTest : public RenderingTest {
return;
FloatRect geometryMapperRect(localRect);
- if (object.paintProperties()) {
+ if (object.paintProperties() || object.localBorderBoxProperties()) {
geometryMapperRect.moveBy(FloatPoint(object.paintOffset()));
document().view()->geometryMapper().sourceToDestinationVisualRect(
- *object.paintProperties()->localBorderBoxProperties(),
- *ancestor.paintProperties()->contentsProperties(),
+ *object.localBorderBoxProperties(), *ancestor.contentsProperties(),
geometryMapperRect);
geometryMapperRect.moveBy(-FloatPoint(ancestor.paintOffset()));
}

Powered by Google App Engine
This is Rietveld 408576698