| 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 984ff42be192101a07c21c53955cd3c42a23b460..a85dfe2fe463f8efdbd958d9d7fa659bfde36801 100644
|
| --- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| +++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| @@ -1205,6 +1205,22 @@ bool ComputedStyle::hasEntirelyFixedBackground() const
|
| return allLayersAreFixed(backgroundLayers());
|
| }
|
|
|
| +static bool allLayersAreSolidColorOrLocal(const FillLayer& layer)
|
| +{
|
| + for (const FillLayer* currLayer = &layer; currLayer; currLayer = currLayer->next()) {
|
| + if (currLayer->attachment() != LocalBackgroundAttachment
|
| + && currLayer->image())
|
| + return false;
|
| + }
|
| +
|
| + return true;
|
| +}
|
| +
|
| +bool ComputedStyle::hasEntirelyLocalBackground() const
|
| +{
|
| + return allLayersAreSolidColorOrLocal(backgroundLayers());
|
| +}
|
| +
|
| const CounterDirectiveMap* ComputedStyle::counterDirectives() const
|
| {
|
| return m_rareNonInheritedData->m_counterDirectives.get();
|
|
|