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

Unified Diff: third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h

Issue 2054023002: [CSS Paint API] Add StylePropertyMap as an argument to the paint function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase. Created 4 years, 6 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/modules/csspaint/CSSPaintDefinition.h
diff --git a/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h b/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h
index a7933f2a8c77693bf13820f4a3072bd59afc9e1e..b48cf2a89486bcb704e3532a8141b398ce2d5cb6 100644
--- a/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h
+++ b/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h
@@ -14,6 +14,7 @@
namespace blink {
class Image;
+class LayoutObject;
class ScriptState;
// Represents a javascript class registered on the PaintWorkletGlobalScope by
@@ -29,7 +30,7 @@ public:
//
// This may return a nullptr (representing an invalid image) if javascript
// throws an error.
- PassRefPtr<Image> paint(const IntSize&);
+ PassRefPtr<Image> paint(const LayoutObject&, const IntSize&);
const Vector<CSSPropertyID>& nativeInvalidationProperties() const { return m_nativeInvalidationProperties; }
const Vector<AtomicString>& customInvalidationProperties() const { return m_customInvalidationProperties; }

Powered by Google App Engine
This is Rietveld 408576698