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

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

Issue 2121973002: Fallback to 300x150 instead of 0x0 size for SVG inside content() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test Created 4 years, 5 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/layout/LayoutImageResourceStyleImage.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.h b/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.h
index 8f4da9b40c5d57b6cac3b611df58c597935be7bd..9f9a04aadada4b0a3703bcdcef5ce326b007896a 100644
--- a/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.h
+++ b/third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.h
@@ -50,13 +50,7 @@ public:
bool errorOccurred() const override { return m_styleImage->errorOccurred(); }
bool imageHasRelativeSize() const override { return m_styleImage->imageHasRelativeSize(); }
-
- LayoutSize imageSize(float multiplier) const override
- {
- // TODO(davve): Find out the default object size, if any, in this context.
- return m_styleImage->imageSize(*m_layoutObject, multiplier, LayoutSize());
- }
-
+ LayoutSize imageSize(float multiplier) const override;
WrappedImagePtr imagePtr() const override { return m_styleImage->data(); }
DECLARE_VIRTUAL_TRACE();

Powered by Google App Engine
This is Rietveld 408576698