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

Unified Diff: third_party/WebKit/Source/core/style/StyleInvalidImage.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/StyleInvalidImage.h
diff --git a/third_party/WebKit/Source/core/style/StyleInvalidImage.h b/third_party/WebKit/Source/core/style/StyleInvalidImage.h
index cca09c954950900653d4170d17f6618d8a93e285..64efc77322ac8f9710023acb9109b8b348e30922 100644
--- a/third_party/WebKit/Source/core/style/StyleInvalidImage.h
+++ b/third_party/WebKit/Source/core/style/StyleInvalidImage.h
@@ -10,6 +10,8 @@
namespace blink {
+class ImageResourceObserver;
+
class StyleInvalidImage final : public StyleImage {
public:
static StyleInvalidImage* Create(const String& url) {
@@ -31,9 +33,11 @@ class StyleInvalidImage final : public StyleImage {
}
bool ImageHasRelativeSize() const override { return false; }
bool UsesImageContainerSize() const override { return false; }
- 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 {
return nullptr;
}
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleImage.h ('k') | third_party/WebKit/Source/core/style/StylePendingImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698