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

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: Fix unused variable 'styleImage' in release Created 4 years, 9 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 df434dd77a7819b2ec364544794f21268932defe..e1bf09753bb5211f6cd4c653fe7f8149ecf99acc 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 (getClassType()) {
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