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

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

Issue 1829493002: [SPv2] Implement CSS clip property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move fixedpos clip to updateOutOfFlowContext Created 4 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/ObjectPaintProperties.h
diff --git a/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h b/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h
index 227ef3abb305cb988d153627ef712febb91d9d18..cb8ad1b4b0e012d51b88fe50998370354cdb82be 100644
--- a/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h
+++ b/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h
@@ -31,13 +31,15 @@ public:
PassRefPtr<TransformPaintPropertyNode> paintOffsetTranslation,
PassRefPtr<TransformPaintPropertyNode> transform,
PassRefPtr<EffectPaintPropertyNode> effect,
+ PassRefPtr<ClipPaintPropertyNode> cssClip,
+ PassRefPtr<ClipPaintPropertyNode> cssClipFixedPosition,
PassRefPtr<ClipPaintPropertyNode> overflowClip,
PassRefPtr<TransformPaintPropertyNode> perspective,
PassRefPtr<TransformPaintPropertyNode> scrollTranslation,
PassRefPtr<TransformPaintPropertyNode> scrollbarPaintOffset,
PassOwnPtr<LocalBorderBoxProperties> localBorderBoxProperties)
{
- return adoptPtr(new ObjectPaintProperties(paintOffsetTranslation, transform, effect, overflowClip, perspective, scrollTranslation, scrollbarPaintOffset, localBorderBoxProperties));
+ return adoptPtr(new ObjectPaintProperties(paintOffsetTranslation, transform, effect, cssClip, cssClipFixedPosition, overflowClip, perspective, scrollTranslation, scrollbarPaintOffset, localBorderBoxProperties));
}
// The hierarchy of transform subtree created by a LayoutObject.
@@ -59,6 +61,8 @@ public:
EffectPaintPropertyNode* effect() const { return m_effect.get(); }
+ ClipPaintPropertyNode* cssClip() const { return m_cssClip.get(); }
+ ClipPaintPropertyNode* cssClipFixedPosition() const { return m_cssClipFixedPosition.get(); }
ClipPaintPropertyNode* overflowClip() const { return m_overflowClip.get(); }
// This is a complete set of property nodes that should be used as a starting point to paint
@@ -81,6 +85,8 @@ private:
PassRefPtr<TransformPaintPropertyNode> paintOffsetTranslation,
PassRefPtr<TransformPaintPropertyNode> transform,
PassRefPtr<EffectPaintPropertyNode> effect,
+ PassRefPtr<ClipPaintPropertyNode> cssClip,
+ PassRefPtr<ClipPaintPropertyNode> cssClipFixedPosition,
PassRefPtr<ClipPaintPropertyNode> overflowClip,
PassRefPtr<TransformPaintPropertyNode> perspective,
PassRefPtr<TransformPaintPropertyNode> scrollTranslation,
@@ -89,6 +95,8 @@ private:
: m_paintOffsetTranslation(paintOffsetTranslation)
, m_transform(transform)
, m_effect(effect)
+ , m_cssClip(cssClip)
+ , m_cssClipFixedPosition(cssClipFixedPosition)
, m_overflowClip(overflowClip)
, m_perspective(perspective)
, m_scrollTranslation(scrollTranslation)
@@ -98,6 +106,8 @@ private:
RefPtr<TransformPaintPropertyNode> m_paintOffsetTranslation;
RefPtr<TransformPaintPropertyNode> m_transform;
RefPtr<EffectPaintPropertyNode> m_effect;
+ RefPtr<ClipPaintPropertyNode> m_cssClip;
+ RefPtr<ClipPaintPropertyNode> m_cssClipFixedPosition;
RefPtr<ClipPaintPropertyNode> m_overflowClip;
RefPtr<TransformPaintPropertyNode> m_perspective;
RefPtr<TransformPaintPropertyNode> m_scrollTranslation;

Powered by Google App Engine
This is Rietveld 408576698