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

Unified Diff: third_party/WebKit/Source/core/style/StyleFetchedImage.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/StyleFetchedImage.h
diff --git a/third_party/WebKit/Source/core/style/StyleFetchedImage.h b/third_party/WebKit/Source/core/style/StyleFetchedImage.h
index 9a297eccdb43e15db5575430e4ba41b0ebd04f02..59c39b20fa00d7f2c1664d33e91bc3d60164f9f6 100644
--- a/third_party/WebKit/Source/core/style/StyleFetchedImage.h
+++ b/third_party/WebKit/Source/core/style/StyleFetchedImage.h
@@ -57,11 +57,13 @@ class StyleFetchedImage final : public StyleImage,
const LayoutSize& default_object_size) const override;
bool ImageHasRelativeSize() const override;
bool UsesImageContainerSize() const override;
- void AddClient(LayoutObject*) override;
- void RemoveClient(LayoutObject*) override;
+ void AddClient(ImageResourceObserver*) override;
+ void RemoveClient(ImageResourceObserver*) override;
void ImageNotifyFinished(ImageResourceContent*) override;
String DebugName() const override { return "StyleFetchedImage"; }
- PassRefPtr<Image> GetImage(const LayoutObject&,
+ PassRefPtr<Image> GetImage(const ImageResourceObserver&,
+ const Document&,
+ const ComputedStyle&,
const IntSize&) const override;
bool KnownToBeOpaque(const Document&, const ComputedStyle&) const override;
ImageResourceContent* CachedImage() const override;

Powered by Google App Engine
This is Rietveld 408576698