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

Unified Diff: third_party/WebKit/Source/core/css/CSSPaintImageGenerator.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/core/css/CSSPaintImageGenerator.h
diff --git a/third_party/WebKit/Source/core/css/CSSPaintImageGenerator.h b/third_party/WebKit/Source/core/css/CSSPaintImageGenerator.h
index beff0e2dc1a133d47c8282f1f3bb84c8b0d82e79..2b459c6e4bcecae4e0b257820f39d82fe57d9084 100644
--- a/third_party/WebKit/Source/core/css/CSSPaintImageGenerator.h
+++ b/third_party/WebKit/Source/core/css/CSSPaintImageGenerator.h
@@ -14,6 +14,7 @@ namespace blink {
class Document;
class Image;
+class LayoutObject;
// Produces a PaintGeneratedImage from a CSS Paint API callback.
// https://drafts.css-houdini.org/css-paint-api/
@@ -38,7 +39,7 @@ public:
// Invokes the CSS Paint API 'paint' callback. May return a nullptr
// representing an invalid image if an error occurred.
- virtual PassRefPtr<Image> paint(const IntSize&) = 0;
+ virtual PassRefPtr<Image> paint(const LayoutObject&, const IntSize&) = 0;
virtual const Vector<CSSPropertyID>& nativeInvalidationProperties() const = 0;
virtual const Vector<AtomicString>& customInvalidationProperties() const = 0;

Powered by Google App Engine
This is Rietveld 408576698