| 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 25 matching lines...) Expand all Loading... |
| 36 #include "platform/LengthSize.h" | 36 #include "platform/LengthSize.h" |
| 37 #include "platform/fonts/FontDescription.h" | 37 #include "platform/fonts/FontDescription.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 // Note that we assume the parser only allows valid CSSValue types. | 41 // Note that we assume the parser only allows valid CSSValue types. |
| 42 | 42 |
| 43 class StyleBuilderConverter { | 43 class StyleBuilderConverter { |
| 44 public: | 44 public: |
| 45 static AtomicString convertFragmentIdentifier(StyleResolverState&, CSSValue*
); | 45 static AtomicString convertFragmentIdentifier(StyleResolverState&, CSSValue*
); |
| 46 static Color convertColor(StyleResolverState&, CSSValue*, bool forVisitedLin
k = false); | 46 static Color convertColor(StyleResolverState&, CSSValue*); |
| 47 template <typename T> static T convertComputedLength(StyleResolverState&, CS
SValue*); | 47 template <typename T> static T convertComputedLength(StyleResolverState&, CS
SValue*); |
| 48 static LengthBox convertClip(StyleResolverState&, CSSValue*); | 48 static LengthBox convertClip(StyleResolverState&, CSSValue*); |
| 49 template <typename T> static T convertFlags(StyleResolverState&, CSSValue*); | 49 template <typename T> static T convertFlags(StyleResolverState&, CSSValue*); |
| 50 static PassRefPtr<FontFeatureSettings> convertFontFeatureSettings(StyleResol
verState&, CSSValue*); | 50 static PassRefPtr<FontFeatureSettings> convertFontFeatureSettings(StyleResol
verState&, CSSValue*); |
| 51 static FontWeight convertFontWeight(StyleResolverState&, CSSValue*); | 51 static FontWeight convertFontWeight(StyleResolverState&, CSSValue*); |
| 52 static FontDescription::VariantLigatures convertFontVariantLigatures(StyleRe
solverState&, CSSValue*); | 52 static FontDescription::VariantLigatures convertFontVariantLigatures(StyleRe
solverState&, CSSValue*); |
| 53 static GridPosition convertGridPosition(StyleResolverState&, CSSValue*); | 53 static GridPosition convertGridPosition(StyleResolverState&, CSSValue*); |
| 54 static GridTrackSize convertGridTrackSize(StyleResolverState&, CSSValue*); | 54 static GridTrackSize convertGridTrackSize(StyleResolverState&, CSSValue*); |
| 55 template <typename T> static T convertLineWidth(StyleResolverState&, CSSValu
e*); | 55 template <typename T> static T convertLineWidth(StyleResolverState&, CSSValu
e*); |
| 56 static Length convertLength(StyleResolverState&, CSSValue*); | 56 static Length convertLength(StyleResolverState&, CSSValue*); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 { | 117 { |
| 118 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); | 118 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); |
| 119 if (primitiveValue->getValueID() == IdForNone) | 119 if (primitiveValue->getValueID() == IdForNone) |
| 120 return nullAtom; | 120 return nullAtom; |
| 121 return AtomicString(primitiveValue->getStringValue()); | 121 return AtomicString(primitiveValue->getStringValue()); |
| 122 } | 122 } |
| 123 | 123 |
| 124 } // namespace blink | 124 } // namespace blink |
| 125 | 125 |
| 126 #endif | 126 #endif |
| OLD | NEW |