| Index: third_party/WebKit/Source/core/style/ComputedStyle.h
|
| diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
|
| index fee328e23171e67405ef60f6aeeb23f708d4012b..2a2912b0816b97946192ac85e064c806b67ddcfe 100644
|
| --- a/third_party/WebKit/Source/core/style/ComputedStyle.h
|
| +++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
|
| @@ -2317,6 +2317,7 @@ public:
|
| // Border utility functions.
|
| bool borderObscuresBackground() const;
|
| void getBorderEdgeInfo(BorderEdge edges[], bool includeLogicalLeftEdge = true, bool includeLogicalRightEdge = true) const;
|
| +
|
| bool hasBoxDecorations() const
|
| {
|
| return hasBorderDecoration()
|
| @@ -2329,6 +2330,14 @@ public:
|
| || resize() != RESIZE_NONE;
|
| }
|
|
|
| + // "Box decoration background" includes all box decorations and backgrounds
|
| + // that are painted as the background of the object. It includes borders,
|
| + // box-shadows, background-color and background-image, etc.
|
| + bool hasBoxDecorationBackground() const
|
| + {
|
| + return hasBackground() || hasBorderDecoration() || hasAppearance() || boxShadow();
|
| + }
|
| +
|
| // Background utility functions.
|
| FillLayer& accessBackgroundLayers() { return m_background.access()->m_background; }
|
| const FillLayer& backgroundLayers() const { return m_background->background(); }
|
|
|