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

Unified Diff: third_party/WebKit/Source/core/style/StyleFetchedImageSet.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/StyleFetchedImageSet.h
diff --git a/third_party/WebKit/Source/core/style/StyleFetchedImageSet.h b/third_party/WebKit/Source/core/style/StyleFetchedImageSet.h
index 65d9995604ff6a5c574138c234170411d862dae1..8af3323c3d3970b2ce52d6cf5e148a3aba3f2960 100644
--- a/third_party/WebKit/Source/core/style/StyleFetchedImageSet.h
+++ b/third_party/WebKit/Source/core/style/StyleFetchedImageSet.h
@@ -34,6 +34,7 @@
namespace blink {
class CSSImageSetValue;
+class ImageResourceObserver;
// This class keeps one cached image and has access to a set of alternatives.
@@ -66,10 +67,12 @@ class StyleFetchedImageSet 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;
- PassRefPtr<Image> GetImage(const LayoutObject&,
- const IntSize&) const override;
+ void AddClient(ImageResourceObserver*) override;
+ void RemoveClient(ImageResourceObserver*) override;
+ PassRefPtr<Image> GetImage(const ImageResourceObserver&,
+ const Document&,
+ const ComputedStyle&,
+ const IntSize& container_size) const override;
float ImageScaleFactor() const override { return image_scale_factor_; }
bool KnownToBeOpaque(const Document&, const ComputedStyle&) const override;
ImageResourceContent* CachedImage() const override;

Powered by Google App Engine
This is Rietveld 408576698