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

Unified Diff: third_party/WebKit/Source/core/css/CSSPaintImageGenerator.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/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 7d02a7225e73e4b0819d70033097e54a30ae5410..d85c45335142f59c1b20a504e892ebf7a8b42767 100644
--- a/third_party/WebKit/Source/core/css/CSSPaintImageGenerator.h
+++ b/third_party/WebKit/Source/core/css/CSSPaintImageGenerator.h
@@ -16,7 +16,7 @@ namespace blink {
class CSSSyntaxDescriptor;
class Document;
class Image;
-class LayoutObject;
+class ImageResourceObserver;
// Produces a PaintGeneratedImage from a CSS Paint API callback.
// https://drafts.css-houdini.org/css-paint-api/
@@ -35,19 +35,19 @@ class CORE_EXPORT CSSPaintImageGenerator
};
static CSSPaintImageGenerator* Create(const String& name,
- Document&,
+ const Document&,
Observer*);
virtual ~CSSPaintImageGenerator();
typedef CSSPaintImageGenerator* (*CSSPaintImageGeneratorCreateFunction)(
const String&,
- Document&,
+ const Document&,
Observer*);
static void Init(CSSPaintImageGeneratorCreateFunction);
// Invokes the CSS Paint API 'paint' callback. May return a nullptr
// representing an invalid image if an error occurred.
- virtual PassRefPtr<Image> Paint(const LayoutObject&,
+ virtual PassRefPtr<Image> Paint(const ImageResourceObserver&,
const IntSize&,
const CSSStyleValueVector*) = 0;

Powered by Google App Engine
This is Rietveld 408576698