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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.h

Issue 2435413002: Use a converter for building style value for 'transform' (Closed)
Patch Set: Created 4 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 unified diff | Download patch
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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 template <CSSValueID IdForNone> 133 template <CSSValueID IdForNone>
134 static AtomicString convertString(StyleResolverState&, const CSSValue&); 134 static AtomicString convertString(StyleResolverState&, const CSSValue&);
135 static PassRefPtr<SVGDashArray> convertStrokeDasharray(StyleResolverState&, 135 static PassRefPtr<SVGDashArray> convertStrokeDasharray(StyleResolverState&,
136 const CSSValue&); 136 const CSSValue&);
137 static StyleColor convertStyleColor(StyleResolverState&, 137 static StyleColor convertStyleColor(StyleResolverState&,
138 const CSSValue&, 138 const CSSValue&,
139 bool forVisitedLink = false); 139 bool forVisitedLink = false);
140 static float convertTextStrokeWidth(StyleResolverState&, const CSSValue&); 140 static float convertTextStrokeWidth(StyleResolverState&, const CSSValue&);
141 static TextSizeAdjust convertTextSizeAdjust(StyleResolverState&, 141 static TextSizeAdjust convertTextSizeAdjust(StyleResolverState&,
142 const CSSValue&); 142 const CSSValue&);
143 static TransformOperations convertTransformOperations(StyleResolverState&,
144 const CSSValue&);
143 static TransformOrigin convertTransformOrigin(StyleResolverState&, 145 static TransformOrigin convertTransformOrigin(StyleResolverState&,
144 const CSSValue&); 146 const CSSValue&);
145 147
146 static void convertGridTrackList(const CSSValue&, 148 static void convertGridTrackList(const CSSValue&,
147 Vector<GridTrackSize>&, 149 Vector<GridTrackSize>&,
148 NamedGridLinesMap&, 150 NamedGridLinesMap&,
149 OrderedNamedGridLines&, 151 OrderedNamedGridLines&,
150 Vector<GridTrackSize>& autoRepeatTrackSizes, 152 Vector<GridTrackSize>& autoRepeatTrackSizes,
151 NamedGridLinesMap&, 153 NamedGridLinesMap&,
152 OrderedNamedGridLines&, 154 OrderedNamedGridLines&,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 const CSSValue& value) { 244 const CSSValue& value) {
243 if (value.isStringValue()) 245 if (value.isStringValue())
244 return AtomicString(toCSSStringValue(value).value()); 246 return AtomicString(toCSSStringValue(value).value());
245 DCHECK_EQ(toCSSIdentifierValue(value).getValueID(), IdForNone); 247 DCHECK_EQ(toCSSIdentifierValue(value).getValueID(), IdForNone);
246 return nullAtom; 248 return nullAtom;
247 } 249 }
248 250
249 } // namespace blink 251 } // namespace blink
250 252
251 #endif 253 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698