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

Unified Diff: third_party/WebKit/Source/core/css/CSSPaintValue.h

Issue 1834843002: [WIP] Plumbing for paint Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: \o/\o/ Created 4 years, 9 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/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());
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPaintImageGenerator.cpp ('k') | third_party/WebKit/Source/core/css/CSSPaintValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698