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

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

Issue 1896893004: Hook up style invalidation for CSS Paint API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@css-paint-register
Patch Set: rebase. Created 4 years, 7 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 07eb74ca86e61d44b8078e2d150d61312b932427..9b47049d3e1e0ffa87e6e4d492f161bfc174ca5f 100644
--- a/third_party/WebKit/Source/core/css/CSSPaintValue.h
+++ b/third_party/WebKit/Source/core/css/CSSPaintValue.h
@@ -28,13 +28,22 @@ public:
bool isFixedSize() const { return false; }
IntSize fixedSize(const LayoutObject&) { return IntSize(); }
- bool isPending() const { return false; }
+ bool isPending() const { return true; }
bool knownToBeOpaque(const LayoutObject&) const { return false; }
void loadSubimages(Document*) { }
bool equals(const CSSPaintValue&) const;
+ const Vector<CSSPropertyID>* nativeInvalidationProperties() const
+ {
+ return m_generator ? &m_generator->nativeInvalidationProperties() : nullptr;
+ }
+ const Vector<AtomicString>* customInvalidationProperties() const
+ {
+ return m_generator ? &m_generator->customInvalidationProperties() : nullptr;
+ }
+
DECLARE_TRACE_AFTER_DISPATCH();
private:
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPaintImageGenerator.h ('k') | third_party/WebKit/Source/core/css/CSSPropertyEquality.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698