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

Unified Diff: third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp

Issue 1694263003: Add Image::updateConcreteSize() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor-size-calculation-in
Patch Set: Add some documentation and polish title of test. Created 4 years, 10 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/svg/graphics/SVGImage.cpp
diff --git a/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp b/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp
index 74a7fea443b1d2f0b81b517ef3334a8f6a36b86f..7904fa09d1abf647eb2b1c731f79a1bbfdd31845 100644
--- a/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp
+++ b/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp
@@ -547,4 +547,9 @@ String SVGImage::filenameExtension() const
return "svg";
}
+void SVGImage::updateConcreteObjectSize(const LayoutSize& defaultObjectSize)
+{
+ m_concreteObjectSize = roundedIntSize(calculateConcreteObjectSize(FloatSize(defaultObjectSize)));
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698