| Index: third_party/WebKit/Source/core/css/CSSPaintValue.h
|
| diff --git a/third_party/WebKit/Source/core/css/CSSPaintValue.h b/third_party/WebKit/Source/core/css/CSSPaintValue.h
|
| index 3046288ef126beb1885754ffec86a943910f85dc..3ba610ceb73d2dd1f63de2878374693d0a32fa9d 100644
|
| --- a/third_party/WebKit/Source/core/css/CSSPaintValue.h
|
| +++ b/third_party/WebKit/Source/core/css/CSSPaintValue.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "core/css/CSSCustomIdentValue.h"
|
| #include "core/css/CSSImageGeneratorValue.h"
|
| +#include "core/css/CSSPaintImageGenerator.h"
|
| #include "platform/heap/Handle.h"
|
|
|
| namespace blink {
|
| @@ -39,7 +40,30 @@ public:
|
| private:
|
| explicit CSSPaintValue(PassRefPtrWillBeRawPtr<CSSCustomIdentValue> name);
|
|
|
| + class Observer final : public CSSPaintImageGenerator::Observer {
|
| + DISALLOW_NEW();
|
| + public:
|
| + explicit Observer(CSSPaintValue* ownerValue)
|
| + : m_ownerValue(ownerValue)
|
| + {
|
| + }
|
| +
|
| + ~Observer() override { }
|
| + DEFINE_INLINE_TRACE()
|
| + {
|
| + visitor->trace(m_ownerValue);
|
| + }
|
| +
|
| + void ready() final;
|
| + private:
|
| + RawPtrWillBeMember<CSSPaintValue> m_ownerValue;
|
| + };
|
| +
|
| + void ready();
|
| +
|
| RefPtrWillBeMember<CSSCustomIdentValue> m_name;
|
| + RefPtrWillBeMember<CSSPaintImageGenerator> m_generator;
|
| + Observer m_paintImageGeneratorObserver;
|
| };
|
|
|
| DEFINE_CSS_VALUE_TYPE_CASTS(CSSPaintValue, isPaintValue());
|
|
|