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

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

Issue 23651010: Fix getComputedStyle background-position to output calc values (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update test and cleanup the patch Created 7 years, 2 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 | « LayoutTests/fast/css/getComputedStyle/getComputedStyle-background-position-calc-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSComputedStyleDeclaration.cpp
diff --git a/Source/core/css/CSSComputedStyleDeclaration.cpp b/Source/core/css/CSSComputedStyleDeclaration.cpp
index b49a941ce4405d9ff3f96b9abd5a2da0542dc0f7..421517bab2753823897db00388272ff9a8d9192f 100644
--- a/Source/core/css/CSSComputedStyleDeclaration.cpp
+++ b/Source/core/css/CSSComputedStyleDeclaration.cpp
@@ -564,7 +564,7 @@ static PassRefPtr<CSSPrimitiveValue> zoomAdjustedPixelValueForLength(const Lengt
{
if (length.isFixed())
return zoomAdjustedPixelValue(length.value(), style);
- return cssValuePool().createValue(length);
+ return cssValuePool().createValue(length, style);
}
static PassRefPtr<CSSValue> valueForReflection(const StyleReflection* reflection, const RenderStyle* style)
« no previous file with comments | « LayoutTests/fast/css/getComputedStyle/getComputedStyle-background-position-calc-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698