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

Side by Side Diff: Source/core/css/resolver/StyleBuilderConverter.cpp

Issue 112003003: [SVG] SVGLength{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: revert aggressive svgAttributeChanged, add NeedsRebaseline Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * * Redistributions of source code must retain the above copyright 4 * * Redistributions of source code must retain the above copyright
5 * notice, this list of conditions and the following disclaimer. 5 * notice, this list of conditions and the following disclaimer.
6 * * Redistributions in binary form must reproduce the above 6 * * Redistributions in binary form must reproduce the above
7 * copyright notice, this list of conditions and the following disclaimer 7 * copyright notice, this list of conditions and the following disclaimer
8 * in the documentation and/or other materials provided with the 8 * in the documentation and/or other materials provided with the
9 * distribution. 9 * distribution.
10 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 float StyleBuilderConverter::convertSpacing(StyleResolverState& state, CSSValue* value) 157 float StyleBuilderConverter::convertSpacing(StyleResolverState& state, CSSValue* value)
158 { 158 {
159 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); 159 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
160 if (primitiveValue->getValueID() == CSSValueNormal) 160 if (primitiveValue->getValueID() == CSSValueNormal)
161 return 0; 161 return 0;
162 if (state.useSVGZoomRules()) 162 if (state.useSVGZoomRules())
163 return primitiveValue->computeLength<float>(state.cssToLengthConversionD ata().copyWithAdjustedZoom(1)); 163 return primitiveValue->computeLength<float>(state.cssToLengthConversionD ata().copyWithAdjustedZoom(1));
164 return primitiveValue->computeLength<float>(state.cssToLengthConversionData( )); 164 return primitiveValue->computeLength<float>(state.cssToLengthConversionData( ));
165 } 165 }
166 166
167 SVGLength StyleBuilderConverter::convertSVGLength(StyleResolverState&, CSSValue* value) 167 PassRefPtr<SVGLength> StyleBuilderConverter::convertSVGLength(StyleResolverState &, CSSValue* value)
168 { 168 {
169 return SVGLength::fromCSSPrimitiveValue(toCSSPrimitiveValue(value)); 169 return SVGLength::fromCSSPrimitiveValue(toCSSPrimitiveValue(value));
170 } 170 }
171 171
172 } // namespace WebCore 172 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleBuilderConverter.h ('k') | Source/core/css/resolver/StyleBuilderCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698