| OLD | NEW |
| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 static EPaintOrder convertPaintOrder(StyleResolverState&, CSSValue*); | 61 static EPaintOrder convertPaintOrder(StyleResolverState&, CSSValue*); |
| 62 static PassRefPtr<ShadowList> convertShadow(StyleResolverState&, CSSValue*); | 62 static PassRefPtr<ShadowList> convertShadow(StyleResolverState&, CSSValue*); |
| 63 static float convertSpacing(StyleResolverState&, CSSValue*); | 63 static float convertSpacing(StyleResolverState&, CSSValue*); |
| 64 template <CSSValueID IdForNone> static AtomicString convertString(StyleResol
verState&, CSSValue*); | 64 template <CSSValueID IdForNone> static AtomicString convertString(StyleResol
verState&, CSSValue*); |
| 65 static PassRefPtr<SVGLengthList> convertStrokeDasharray(StyleResolverState&,
CSSValue*); | 65 static PassRefPtr<SVGLengthList> convertStrokeDasharray(StyleResolverState&,
CSSValue*); |
| 66 static Color convertSVGColor(StyleResolverState&, CSSValue*); | 66 static Color convertSVGColor(StyleResolverState&, CSSValue*); |
| 67 static PassRefPtr<SVGLength> convertSVGLength(StyleResolverState&, CSSValue*
); | 67 static PassRefPtr<SVGLength> convertSVGLength(StyleResolverState&, CSSValue*
); |
| 68 static float convertTextStrokeWidth(StyleResolverState&, CSSValue*); | 68 static float convertTextStrokeWidth(StyleResolverState&, CSSValue*); |
| 69 | 69 |
| 70 static bool convertGridTrackList(CSSValue*, Vector<GridTrackSize>&, NamedGri
dLinesMap&, OrderedNamedGridLines&, StyleResolverState&); | 70 static bool convertGridTrackList(CSSValue*, Vector<GridTrackSize>&, NamedGri
dLinesMap&, OrderedNamedGridLines&, StyleResolverState&); |
| 71 static void createImplicitNamedGridLinesFromGridArea(const NamedGridAreaMap&
, NamedGridLinesMap&, GridTrackSizingDirection); |
| 71 }; | 72 }; |
| 72 | 73 |
| 73 template <typename T> | 74 template <typename T> |
| 74 T StyleBuilderConverter::convertComputedLength(StyleResolverState& state, CSSVal
ue* value) | 75 T StyleBuilderConverter::convertComputedLength(StyleResolverState& state, CSSVal
ue* value) |
| 75 { | 76 { |
| 76 return toCSSPrimitiveValue(value)->computeLength<T>(state.cssToLengthConvers
ionData()); | 77 return toCSSPrimitiveValue(value)->computeLength<T>(state.cssToLengthConvers
ionData()); |
| 77 } | 78 } |
| 78 | 79 |
| 79 template <typename T> | 80 template <typename T> |
| 80 T StyleBuilderConverter::convertLineWidth(StyleResolverState& state, CSSValue* v
alue) | 81 T StyleBuilderConverter::convertLineWidth(StyleResolverState& state, CSSValue* v
alue) |
| (...skipping 26 matching lines...) Expand all Loading... |
| 107 { | 108 { |
| 108 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); | 109 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); |
| 109 if (primitiveValue->getValueID() == IdForNone) | 110 if (primitiveValue->getValueID() == IdForNone) |
| 110 return nullAtom; | 111 return nullAtom; |
| 111 return AtomicString(primitiveValue->getStringValue()); | 112 return AtomicString(primitiveValue->getStringValue()); |
| 112 } | 113 } |
| 113 | 114 |
| 114 } // namespace WebCore | 115 } // namespace WebCore |
| 115 | 116 |
| 116 #endif | 117 #endif |
| OLD | NEW |