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

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

Issue 975733002: Use Length for the stroke-dasharray property in SVGLayoutStyle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add test for style-change responsive-ness. Created 5 years, 9 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 static float convertPerspective(StyleResolverState&, CSSValue*); 74 static float convertPerspective(StyleResolverState&, CSSValue*);
75 static LengthPoint convertPerspectiveOrigin(StyleResolverState&, CSSValue*); 75 static LengthPoint convertPerspectiveOrigin(StyleResolverState&, CSSValue*);
76 static Length convertQuirkyLength(StyleResolverState&, CSSValue*); 76 static Length convertQuirkyLength(StyleResolverState&, CSSValue*);
77 static PassRefPtr<QuotesData> convertQuotes(StyleResolverState&, CSSValue*); 77 static PassRefPtr<QuotesData> convertQuotes(StyleResolverState&, CSSValue*);
78 static LengthSize convertRadius(StyleResolverState&, CSSValue*); 78 static LengthSize convertRadius(StyleResolverState&, CSSValue*);
79 static EPaintOrder convertPaintOrder(StyleResolverState&, CSSValue*); 79 static EPaintOrder convertPaintOrder(StyleResolverState&, CSSValue*);
80 static PassRefPtr<ShadowList> convertShadow(StyleResolverState&, CSSValue*); 80 static PassRefPtr<ShadowList> convertShadow(StyleResolverState&, CSSValue*);
81 static PassRefPtr<ShapeValue> convertShapeValue(StyleResolverState&, CSSValu e*); 81 static PassRefPtr<ShapeValue> convertShapeValue(StyleResolverState&, CSSValu e*);
82 static float convertSpacing(StyleResolverState&, CSSValue*); 82 static float convertSpacing(StyleResolverState&, CSSValue*);
83 template <CSSValueID IdForNone> static AtomicString convertString(StyleResol verState&, CSSValue*); 83 template <CSSValueID IdForNone> static AtomicString convertString(StyleResol verState&, CSSValue*);
84 static PassRefPtrWillBeRawPtr<SVGLengthList> convertStrokeDasharray(StyleRes olverState&, CSSValue*); 84 static PassRefPtr<SVGDashArray> convertStrokeDasharray(StyleResolverState&, CSSValue*);
85 static StyleColor convertStyleColor(StyleResolverState&, CSSValue*, bool for VisitedLink = false); 85 static StyleColor convertStyleColor(StyleResolverState&, CSSValue*, bool for VisitedLink = false);
86 static Color convertSVGColor(StyleResolverState&, CSSValue*); 86 static Color convertSVGColor(StyleResolverState&, CSSValue*);
87 static PassRefPtrWillBeRawPtr<SVGLength> convertSVGLength(StyleResolverState &, CSSValue*); 87 static PassRefPtrWillBeRawPtr<SVGLength> convertSVGLength(StyleResolverState &, CSSValue*);
88 static float convertTextStrokeWidth(StyleResolverState&, CSSValue*); 88 static float convertTextStrokeWidth(StyleResolverState&, CSSValue*);
89 static TransformOrigin convertTransformOrigin(StyleResolverState&, CSSValue* ); 89 static TransformOrigin convertTransformOrigin(StyleResolverState&, CSSValue* );
90 90
91 static bool convertGridTrackList(CSSValue*, Vector<GridTrackSize>&, NamedGri dLinesMap&, OrderedNamedGridLines&, StyleResolverState&); 91 static bool convertGridTrackList(CSSValue*, Vector<GridTrackSize>&, NamedGri dLinesMap&, OrderedNamedGridLines&, StyleResolverState&);
92 static void createImplicitNamedGridLinesFromGridArea(const NamedGridAreaMap& , NamedGridLinesMap&, GridTrackSizingDirection); 92 static void createImplicitNamedGridLinesFromGridArea(const NamedGridAreaMap& , NamedGridLinesMap&, GridTrackSizingDirection);
93 static void convertOrderedNamedGridLinesMapToNamedGridLinesMap(const Ordered NamedGridLines&, NamedGridLinesMap&); 93 static void convertOrderedNamedGridLinesMapToNamedGridLinesMap(const Ordered NamedGridLines&, NamedGridLinesMap&);
94 }; 94 };
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 { 141 {
142 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); 142 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
143 if (primitiveValue->getValueID() == IdForNone) 143 if (primitiveValue->getValueID() == IdForNone)
144 return nullAtom; 144 return nullAtom;
145 return AtomicString(primitiveValue->getStringValue()); 145 return AtomicString(primitiveValue->getStringValue());
146 } 146 }
147 147
148 } // namespace blink 148 } // namespace blink
149 149
150 #endif 150 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698