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

Unified Diff: Source/core/css/CSSCrossfadeValue.cpp

Issue 1226123008: CSSValue Immediates: Replace CSSPrimitiveValue usage with const references (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cssvalue_patch_4_attempt_2
Patch Set: Rebase Created 5 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
« no previous file with comments | « Source/core/css/CSSComputedStyleDeclaration.cpp ('k') | Source/core/css/CSSGradientValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSCrossfadeValue.cpp
diff --git a/Source/core/css/CSSCrossfadeValue.cpp b/Source/core/css/CSSCrossfadeValue.cpp
index 0fcf5c942c3d39f4e98f95e30070cbf389c30ddc..6055c778d7ae68657cf2eb5410c869afa4883eb2 100644
--- a/Source/core/css/CSSCrossfadeValue.cpp
+++ b/Source/core/css/CSSCrossfadeValue.cpp
@@ -104,7 +104,7 @@ String CSSCrossfadeValue::customCSSText() const
IntSize CSSCrossfadeValue::fixedSize(const LayoutObject* layoutObject)
{
- float percentage = toCSSPrimitiveValue(*m_percentageValue).getFloatValue();
+ float percentage = toCSSPrimitiveValue(m_percentageValue).getFloatValue();
float inversePercentage = 1 - percentage;
Document* document = &layoutObject->document();
@@ -179,7 +179,7 @@ PassRefPtr<Image> CSSCrossfadeValue::image(LayoutObject* layoutObject, const Int
if (!fromImage || !toImage)
return Image::nullImage();
- m_generatedImage = CrossfadeGeneratedImage::create(fromImage, toImage, toCSSPrimitiveValue(*m_percentageValue).getFloatValue(), fixedSize(layoutObject), size);
+ m_generatedImage = CrossfadeGeneratedImage::create(fromImage, toImage, toCSSPrimitiveValue(m_percentageValue).getFloatValue(), fixedSize(layoutObject), size);
return m_generatedImage.release();
}
« no previous file with comments | « Source/core/css/CSSComputedStyleDeclaration.cpp ('k') | Source/core/css/CSSGradientValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698