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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 2777493003: Include control clip in list of clip-related properties. (Closed)
Patch Set: 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/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 6a2b51a67217c5063353421019810a3ab4f38aed..1ee83a8b340c42fc6abcf75b4318fe468a2ecfe8 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -423,6 +423,15 @@ LayoutObject* LayoutObject::nextInPreOrder() const {
return nextInPreOrderAfterChildren();
}
+bool LayoutObject::hasClipRelatedProperty() const {
+ if (hasClip() || hasOverflowClip() || hasClipPath() ||
+ style()->containsPaint())
+ return true;
+ if (isBox() && toLayoutBox(this)->hasControlClip())
+ return true;
+ return false;
+}
+
LayoutObject* LayoutObject::nextInPreOrderAfterChildren() const {
LayoutObject* o = nextSibling();
if (!o) {

Powered by Google App Engine
This is Rietveld 408576698