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

Unified Diff: third_party/WebKit/Source/core/style/StyleGeneratedImage.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/style/StyleGeneratedImage.h
diff --git a/third_party/WebKit/Source/core/style/StyleGeneratedImage.h b/third_party/WebKit/Source/core/style/StyleGeneratedImage.h
index 7d9b2799e5bd5dfee809ba9e7f82299218626495..b90454c5943f4c12b0b83cb6dad36f9401760c16 100644
--- a/third_party/WebKit/Source/core/style/StyleGeneratedImage.h
+++ b/third_party/WebKit/Source/core/style/StyleGeneratedImage.h
@@ -32,6 +32,7 @@ namespace blink {
class CSSValue;
class CSSImageGeneratorValue;
class Document;
+class ImageResourceObserver;
class CORE_EXPORT StyleGeneratedImage final : public StyleImage {
public:
@@ -49,9 +50,11 @@ class CORE_EXPORT StyleGeneratedImage final : public StyleImage {
const LayoutSize& default_object_size) const override;
bool ImageHasRelativeSize() const override { return !fixed_size_; }
bool UsesImageContainerSize() const override { return !fixed_size_; }
- void AddClient(LayoutObject*) override;
- void RemoveClient(LayoutObject*) override;
- PassRefPtr<Image> GetImage(const LayoutObject&,
+ void AddClient(ImageResourceObserver*) override;
+ void RemoveClient(ImageResourceObserver*) override;
+ PassRefPtr<Image> GetImage(const ImageResourceObserver&,
+ const Document&,
+ const ComputedStyle&,
const IntSize&) const override;
bool KnownToBeOpaque(const Document&, const ComputedStyle&) const override;

Powered by Google App Engine
This is Rietveld 408576698