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

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: Created 7 years, 3 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: Source/core/css/CSSComputedStyleDeclaration.cpp
diff --git a/Source/core/css/CSSComputedStyleDeclaration.cpp b/Source/core/css/CSSComputedStyleDeclaration.cpp
index 940b6a059bdc7bb1787faadf0015652220d254f8..55a9462fc443cc3c9265a57bfeb82efe98b2437d 100644
--- a/Source/core/css/CSSComputedStyleDeclaration.cpp
+++ b/Source/core/css/CSSComputedStyleDeclaration.cpp
@@ -562,6 +562,8 @@ static PassRefPtr<CSSValue> zoomAdjustedPixelValueForLength(const Length& length
{
if (length.isFixed())
return zoomAdjustedPixelValue(length.value(), style);
+ if (length.isCalculated())
+ return cssValuePool().createValue(length, style);
return cssValuePool().createValue(length);
alancutter (OOO until 2018) 2013/10/08 11:20:08 The "if (length.isCalculated())" is not required h
}

Powered by Google App Engine
This is Rietveld 408576698