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

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

Issue 2941533002: Break StyleImage dependency on LayoutObject (Closed)
Patch Set: Address reviewer comments Created 3 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 adcd75cc99f8ad197f48ce163bd439fd84002cbc..c562ed479e410383884ba32a41bba72695a783f6 100644
--- a/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h
+++ b/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h
@@ -18,8 +18,8 @@
namespace blink {
class Image;
-class LayoutObject;
class ScriptState;
+class ImageResourceObserver;
// Represents a javascript class registered on the PaintWorkletGlobalScope by
// the author. It will store the properties for invalidation and input argument
@@ -44,7 +44,7 @@ class CSSPaintDefinition final
//
// This may return a nullptr (representing an invalid image) if javascript
// throws an error.
- PassRefPtr<Image> Paint(const LayoutObject&,
+ PassRefPtr<Image> Paint(const ImageResourceObserver&,
const IntSize&,
const CSSStyleValueVector*);
const Vector<CSSPropertyID>& NativeInvalidationProperties() const {

Powered by Google App Engine
This is Rietveld 408576698