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

Unified Diff: third_party/WebKit/Source/core/paint/ObjectPaintProperties.h

Issue 1407543003: Preliminary paint property walk implementation for SPv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert forAllFrameViews change in FrameView.cpp. I don't know what I was thinking. Created 5 years, 2 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/ObjectPaintProperties.h
diff --git a/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h b/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h
index 5bce0886dd627a31c625c2b97bb204dfc29e7108..08d19a792645e548887e7b9671501cd340cd02e5 100644
--- a/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h
+++ b/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h
@@ -29,19 +29,31 @@ public:
return adoptPtr(new ObjectPaintProperties());
}
- bool hasTransform() const { return m_transform; }
+ // The hierarchy of transform subtree created by a LayoutObject.
+ // [ paintOffsetTranslation ] Normally paint offset is accumulated without creating a node
+ // | until we see, for example, transform or position:fixed.
+ // +---[ transform ] The space created by CSS transform.
+ // +---[ perspective ] The space created by CSS perspective.
+ // +---[ scrollTranslation ] The space created by overflow clip.
+ void setPaintOffsetTranslation(PassRefPtr<TransformPaintPropertyNode> paintOffsetTranslation) { m_paintOffsetTranslation = paintOffsetTranslation; }
+ const TransformPaintPropertyNode* paintOffsetTranslation() const { return m_paintOffsetTranslation.get(); }
+
void setTransform(PassRefPtr<TransformPaintPropertyNode> transform) { m_transform = transform; }
const TransformPaintPropertyNode* transform() const { return m_transform.get(); }
- bool hasPerspective() const { return m_perspective; }
void setPerspective(PassRefPtr<TransformPaintPropertyNode> perspective) { m_perspective = perspective; }
const TransformPaintPropertyNode* perspective() const { return m_perspective.get(); }
+ void setScrollTranslation(PassRefPtr<TransformPaintPropertyNode> scrollTranslation) { m_scrollTranslation = scrollTranslation; }
+ const TransformPaintPropertyNode* scrollTranslation() const { return m_scrollTranslation.get(); }
+
private:
ObjectPaintProperties() { }
+ RefPtr<TransformPaintPropertyNode> m_paintOffsetTranslation;
RefPtr<TransformPaintPropertyNode> m_transform;
RefPtr<TransformPaintPropertyNode> m_perspective;
+ RefPtr<TransformPaintPropertyNode> m_scrollTranslation;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698