| 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)
|
|
|