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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBox.h

Issue 2241663002: Take CSS Clip and contain: paint into account when computing visual rects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: none Created 4 years, 4 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/LayoutBox.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.h b/third_party/WebKit/Source/core/layout/LayoutBox.h
index 4c619bb8fd567091e1704f2ccfa12705ce84eb76..9267cd0132b4eb0d6efe00c56463c618e8a33b0d 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h
@@ -803,6 +803,9 @@ public:
virtual bool hasControlClip() const { return false; }
virtual LayoutRect controlClipRect(const LayoutPoint&) const { return LayoutRect(); }
+ // Returns the combination of overflow clip, contain: paint clip and CSS clip for this object, in local space.
Xianzhu 2016/08/12 17:07:57 What about control clip?
chrishtr 2016/08/12 17:56:24 Control clip on only affects LayoutButton, LayoutM
Xianzhu 2016/08/12 18:45:46 SGTM.
+ LayoutRect clippingRect() const;
+
virtual void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint&) const;
virtual void paintMask(const PaintInfo&, const LayoutPoint&) const;
void imageChanged(WrappedImagePtr, const IntRect* = nullptr) override;

Powered by Google App Engine
This is Rietveld 408576698