Chromium Code Reviews

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

Issue 983103003: Use Length for the stroke-width property in SVGLayoutStyle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: lengthSetterForProperty Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « Source/core/css/resolver/StyleBuilderConverter.h ('k') | Source/core/layout/style/LayoutStyle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/StyleBuilderConverter.cpp
diff --git a/Source/core/css/resolver/StyleBuilderConverter.cpp b/Source/core/css/resolver/StyleBuilderConverter.cpp
index 2865fd4d8d7cdf5b258fa7fa84ea1ef713cc3804..3686ccb0061d81c9c3889a91478582653d329611 100644
--- a/Source/core/css/resolver/StyleBuilderConverter.cpp
+++ b/Source/core/css/resolver/StyleBuilderConverter.cpp
@@ -508,6 +508,11 @@ Length StyleBuilderConverter::convertLength(const StyleResolverState& state, CSS
return toCSSPrimitiveValue(value)->convertToLength(state.cssToLengthConversionData());
}
+UnzoomedLength StyleBuilderConverter::convertUnzoomedLength(const StyleResolverState& state, CSSValue* value)
+{
+ return UnzoomedLength(toCSSPrimitiveValue(value)->convertToLength(state.cssToLengthConversionData().copyWithAdjustedZoom(1.0f)));
+}
+
Length StyleBuilderConverter::convertLengthOrAuto(const StyleResolverState& state, CSSValue* value)
{
CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
@@ -853,11 +858,6 @@ Color StyleBuilderConverter::convertSVGColor(StyleResolverState& state, CSSValue
return state.style()->color();
}
-PassRefPtrWillBeRawPtr<SVGLength> StyleBuilderConverter::convertSVGLength(StyleResolverState&, CSSValue* value)
-{
- return SVGLength::fromCSSPrimitiveValue(toCSSPrimitiveValue(value));
-}
-
float StyleBuilderConverter::convertTextStrokeWidth(StyleResolverState& state, CSSValue* value)
{
CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
« no previous file with comments | « Source/core/css/resolver/StyleBuilderConverter.h ('k') | Source/core/layout/style/LayoutStyle.h » ('j') | no next file with comments »

Powered by Google App Engine