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

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: Sending for Bugs' input 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/style/ComputedStyle.cpp
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
index 3a671d051c066787e9e0174febf1e9470cb43c82..df2f3f31e094321a58977afb1fabd093f1be9f78 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -367,6 +367,12 @@ 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();
+}
+
+
bool ComputedStyle::operator==(const ComputedStyle& o) const
{
return inheritedEqual(o)

Powered by Google App Engine
This is Rietveld 408576698