| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 class StyleBuilderConverter { | 44 class StyleBuilderConverter { |
| 45 public: | 45 public: |
| 46 static PassRefPtr<StyleReflection> convertBoxReflect(StyleResolverState&, CS
SValue*); | 46 static PassRefPtr<StyleReflection> convertBoxReflect(StyleResolverState&, CS
SValue*); |
| 47 static AtomicString convertFragmentIdentifier(StyleResolverState&, CSSValue*
); | 47 static AtomicString convertFragmentIdentifier(StyleResolverState&, CSSValue*
); |
| 48 static Color convertColor(StyleResolverState&, CSSValue*, bool forVisitedLin
k = false); | 48 static Color convertColor(StyleResolverState&, CSSValue*, bool forVisitedLin
k = false); |
| 49 template <typename T> static T convertComputedLength(StyleResolverState&, CS
SValue*); | 49 template <typename T> static T convertComputedLength(StyleResolverState&, CS
SValue*); |
| 50 static LengthBox convertClip(StyleResolverState&, CSSValue*); | 50 static LengthBox convertClip(StyleResolverState&, CSSValue*); |
| 51 template <typename T> static T convertFlags(StyleResolverState&, CSSValue*); | 51 template <typename T> static T convertFlags(StyleResolverState&, CSSValue*); |
| 52 static PassRefPtr<FontFeatureSettings> convertFontFeatureSettings(StyleResol
verState&, CSSValue*); | 52 static PassRefPtr<FontFeatureSettings> convertFontFeatureSettings(StyleResol
verState&, CSSValue*); |
| 53 static FontDescription::Size convertFontSize(StyleResolverState&, CSSValue*)
; |
| 53 static FontWeight convertFontWeight(StyleResolverState&, CSSValue*); | 54 static FontWeight convertFontWeight(StyleResolverState&, CSSValue*); |
| 54 static FontDescription::VariantLigatures convertFontVariantLigatures(StyleRe
solverState&, CSSValue*); | 55 static FontDescription::VariantLigatures convertFontVariantLigatures(StyleRe
solverState&, CSSValue*); |
| 55 static EGlyphOrientation convertGlyphOrientation(StyleResolverState&, CSSVal
ue*); | 56 static EGlyphOrientation convertGlyphOrientation(StyleResolverState&, CSSVal
ue*); |
| 56 static GridPosition convertGridPosition(StyleResolverState&, CSSValue*); | 57 static GridPosition convertGridPosition(StyleResolverState&, CSSValue*); |
| 57 static GridTrackSize convertGridTrackSize(StyleResolverState&, CSSValue*); | 58 static GridTrackSize convertGridTrackSize(StyleResolverState&, CSSValue*); |
| 58 template <typename T> static T convertLineWidth(StyleResolverState&, CSSValu
e*); | 59 template <typename T> static T convertLineWidth(StyleResolverState&, CSSValu
e*); |
| 59 static Length convertLength(StyleResolverState&, CSSValue*); | 60 static Length convertLength(StyleResolverState&, CSSValue*); |
| 60 static Length convertLengthOrAuto(StyleResolverState&, CSSValue*); | 61 static Length convertLengthOrAuto(StyleResolverState&, CSSValue*); |
| 61 static Length convertLengthSizing(StyleResolverState&, CSSValue*); | 62 static Length convertLengthSizing(StyleResolverState&, CSSValue*); |
| 62 static Length convertLengthMaxSizing(StyleResolverState&, CSSValue*); | 63 static Length convertLengthMaxSizing(StyleResolverState&, CSSValue*); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 { | 126 { |
| 126 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); | 127 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); |
| 127 if (primitiveValue->getValueID() == IdForNone) | 128 if (primitiveValue->getValueID() == IdForNone) |
| 128 return nullAtom; | 129 return nullAtom; |
| 129 return AtomicString(primitiveValue->getStringValue()); | 130 return AtomicString(primitiveValue->getStringValue()); |
| 130 } | 131 } |
| 131 | 132 |
| 132 } // namespace blink | 133 } // namespace blink |
| 133 | 134 |
| 134 #endif | 135 #endif |
| OLD | NEW |