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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.h

Issue 1427943002: Wrap SVGImage for container during paint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use IntSize for SVGImageForContainer Created 5 years, 1 month 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/layout/LayoutImageResourceStyleImage.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.h b/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.h
index 3ed1625dc25383d7b681eb4e53a7b4492de0c206..614bff836f1495d2ead963d05a9c52556eb386a2 100644
--- a/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.h
+++ b/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.h
@@ -46,15 +46,13 @@ public:
void shutdown() override;
bool hasImage() const override { return true; }
- PassRefPtr<Image> image(const IntSize&) const override;
+ PassRefPtr<Image> image(const IntSize&, float) const override;
bool errorOccurred() const override { return m_styleImage->errorOccurred(); }
- void setContainerSizeForLayoutObject(const IntSize&) override;
bool imageHasRelativeWidth() const override { return m_styleImage->imageHasRelativeWidth(); }
bool imageHasRelativeHeight() const override { return m_styleImage->imageHasRelativeHeight(); }
LayoutSize imageSize(float multiplier) const override { return m_styleImage->imageSize(m_layoutObject, multiplier); }
- LayoutSize intrinsicSize(float multiplier) const override { return m_styleImage->imageSize(m_layoutObject, multiplier); }
WrappedImagePtr imagePtr() const override { return m_styleImage->data(); }

Powered by Google App Engine
This is Rietveld 408576698