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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.cpp

Issue 2001453002: Set ComputedStyle on Node and use that in buildOwnLayout() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@storage
Patch Set: Send over for review Created 4 years, 3 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/style/ComputedStyle.cpp
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
index 22f8a497c33ed509926f01c20c1df804fabd3b57..22167d834db538d485cd03de435fc64c0cbf8ef6 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -390,6 +390,19 @@ void ComputedStyle::copyNonInheritedFromCached(const ComputedStyle& other)
DCHECK_EQ(zoom(), initialZoom());
}
+bool ComputedStyle::hasImage()
+{
+ return backgroundLayers().image() || maskLayers().image()
+ || borderImage().image() || maskBoxImage().image()
+ || (contentData() && contentData()->isImage())
+ || (boxReflect() && boxReflect()->mask().image())
+ || (shapeOutside() && shapeOutside()->image())
+ || cursors() || borderImageSource()
+ || hasFixedBackgroundImage() || hasBackgroundImage()
+ || listStyleImage() || maskImage();
+}
+
+
bool ComputedStyle::operator==(const ComputedStyle& o) const
{
return inheritedEqual(o)

Powered by Google App Engine
This is Rietveld 408576698