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

Unified Diff: Source/core/css/resolver/StyleBuilderConverter.cpp

Issue 896773002: [svg2] Make 'x' and 'y' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: circling back towards patchset #1 again Created 5 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: Source/core/css/resolver/StyleBuilderConverter.cpp
diff --git a/Source/core/css/resolver/StyleBuilderConverter.cpp b/Source/core/css/resolver/StyleBuilderConverter.cpp
index b51095c6ced8b29a33611d2ed98ddfa47e9a90b9..57f85f0cf3dd3dfe0593da90149b584784e9de42 100644
--- a/Source/core/css/resolver/StyleBuilderConverter.cpp
+++ b/Source/core/css/resolver/StyleBuilderConverter.cpp
@@ -501,6 +501,13 @@ Length StyleBuilderConverter::convertLength(StyleResolverState& state, CSSValue*
return result;
}
+Length StyleBuilderConverter::convertLengthUnzoomed(StyleResolverState& state, CSSValue* value)
+{
+ CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
+ CSSToLengthConversionData conversionData = state.cssToLengthConversionData().copyWithAdjustedZoom(1.0f);
+ return primitiveValue->convertToLength<FixedConversion | PercentConversion>(conversionData);
+}
+
Length StyleBuilderConverter::convertLengthOrAuto(StyleResolverState& state, CSSValue* value)
{
CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);

Powered by Google App Engine
This is Rietveld 408576698