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

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

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 1 month 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 static float convertNumberOrPercentage(StyleResolverState&, CSSValue*); 69 static float convertNumberOrPercentage(StyleResolverState&, CSSValue*);
70 static float convertPerspective(StyleResolverState&, CSSValue*); 70 static float convertPerspective(StyleResolverState&, CSSValue*);
71 static LengthPoint convertPerspectiveOrigin(StyleResolverState&, CSSValue*); 71 static LengthPoint convertPerspectiveOrigin(StyleResolverState&, CSSValue*);
72 static PassRefPtr<QuotesData> convertQuotes(StyleResolverState&, CSSValue*); 72 static PassRefPtr<QuotesData> convertQuotes(StyleResolverState&, CSSValue*);
73 static LengthSize convertRadius(StyleResolverState&, CSSValue*); 73 static LengthSize convertRadius(StyleResolverState&, CSSValue*);
74 static EPaintOrder convertPaintOrder(StyleResolverState&, CSSValue*); 74 static EPaintOrder convertPaintOrder(StyleResolverState&, CSSValue*);
75 static PassRefPtr<ShadowList> convertShadow(StyleResolverState&, CSSValue*); 75 static PassRefPtr<ShadowList> convertShadow(StyleResolverState&, CSSValue*);
76 static PassRefPtr<ShapeValue> convertShapeValue(StyleResolverState&, CSSValu e*); 76 static PassRefPtr<ShapeValue> convertShapeValue(StyleResolverState&, CSSValu e*);
77 static float convertSpacing(StyleResolverState&, CSSValue*); 77 static float convertSpacing(StyleResolverState&, CSSValue*);
78 template <CSSValueID IdForNone> static AtomicString convertString(StyleResol verState&, CSSValue*); 78 template <CSSValueID IdForNone> static AtomicString convertString(StyleResol verState&, CSSValue*);
79 static PassRefPtr<SVGLengthList> convertStrokeDasharray(StyleResolverState&, CSSValue*); 79 static PassRefPtrWillBeRawPtr<SVGLengthList> convertStrokeDasharray(StyleRes olverState&, CSSValue*);
80 static StyleColor convertStyleColor(StyleResolverState&, CSSValue*, bool for VisitedLink = false); 80 static StyleColor convertStyleColor(StyleResolverState&, CSSValue*, bool for VisitedLink = false);
81 static Color convertSVGColor(StyleResolverState&, CSSValue*); 81 static Color convertSVGColor(StyleResolverState&, CSSValue*);
82 static PassRefPtr<SVGLength> convertSVGLength(StyleResolverState&, CSSValue* ); 82 static PassRefPtrWillBeRawPtr<SVGLength> convertSVGLength(StyleResolverState &, CSSValue*);
83 static float convertTextStrokeWidth(StyleResolverState&, CSSValue*); 83 static float convertTextStrokeWidth(StyleResolverState&, CSSValue*);
84 static TransformOrigin convertTransformOrigin(StyleResolverState&, CSSValue* ); 84 static TransformOrigin convertTransformOrigin(StyleResolverState&, CSSValue* );
85 85
86 static bool convertGridTrackList(CSSValue*, Vector<GridTrackSize>&, NamedGri dLinesMap&, OrderedNamedGridLines&, StyleResolverState&); 86 static bool convertGridTrackList(CSSValue*, Vector<GridTrackSize>&, NamedGri dLinesMap&, OrderedNamedGridLines&, StyleResolverState&);
87 static void createImplicitNamedGridLinesFromGridArea(const NamedGridAreaMap& , NamedGridLinesMap&, GridTrackSizingDirection); 87 static void createImplicitNamedGridLinesFromGridArea(const NamedGridAreaMap& , NamedGridLinesMap&, GridTrackSizingDirection);
88 }; 88 };
89 89
90 template <typename T> 90 template <typename T>
91 T StyleBuilderConverter::convertComputedLength(StyleResolverState& state, CSSVal ue* value) 91 T StyleBuilderConverter::convertComputedLength(StyleResolverState& state, CSSVal ue* value)
92 { 92 {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 { 135 {
136 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); 136 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
137 if (primitiveValue->getValueID() == IdForNone) 137 if (primitiveValue->getValueID() == IdForNone)
138 return nullAtom; 138 return nullAtom;
139 return AtomicString(primitiveValue->getStringValue()); 139 return AtomicString(primitiveValue->getStringValue());
140 } 140 }
141 141
142 } // namespace blink 142 } // namespace blink
143 143
144 #endif 144 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698