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

Unified Diff: third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp

Issue 1756763004: Merge image sizing algorithms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Extend test to cover svg and non-svg case 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/css/CSSImageGeneratorValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp b/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp
index e97f3d1b612d806d14adf36bfb52610ff5007a71..d8bb87c493f5462c8989ea21c7d5e367e34ee300 100644
--- a/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp
@@ -155,11 +155,11 @@ bool CSSImageGeneratorValue::isFixedSize() const
return false;
}
-IntSize CSSImageGeneratorValue::fixedSize(const LayoutObject* layoutObject)
+IntSize CSSImageGeneratorValue::fixedSize(const LayoutObject* layoutObject, const FloatSize& defaultObjectSize)
{
switch (classType()) {
case CrossfadeClass:
- return toCSSCrossfadeValue(this)->fixedSize(layoutObject);
+ return toCSSCrossfadeValue(this)->fixedSize(layoutObject, defaultObjectSize);
case LinearGradientClass:
return toCSSLinearGradientValue(this)->fixedSize(layoutObject);
case RadialGradientClass:

Powered by Google App Engine
This is Rietveld 408576698