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 28 matching lines...) Expand all Loading... |
39 #include "core/style/TransformOrigin.h" | 39 #include "core/style/TransformOrigin.h" |
40 #include "platform/LengthSize.h" | 40 #include "platform/LengthSize.h" |
41 #include "platform/fonts/FontDescription.h" | 41 #include "platform/fonts/FontDescription.h" |
42 #include "platform/text/TabSize.h" | 42 #include "platform/text/TabSize.h" |
43 #include "platform/transforms/Rotation.h" | 43 #include "platform/transforms/Rotation.h" |
44 #include "wtf/Allocator.h" | 44 #include "wtf/Allocator.h" |
45 | 45 |
46 namespace blink { | 46 namespace blink { |
47 | 47 |
48 class RotateTransformOperation; | 48 class RotateTransformOperation; |
| 49 class TextSizeAdjust; |
49 class TranslateTransformOperation; | 50 class TranslateTransformOperation; |
50 class ScaleTransformOperation; | 51 class ScaleTransformOperation; |
51 class StylePath; | 52 class StylePath; |
52 | 53 |
53 // Note that we assume the parser only allows valid CSSValue types. | 54 // Note that we assume the parser only allows valid CSSValue types. |
54 class StyleBuilderConverter { | 55 class StyleBuilderConverter { |
55 STATIC_ONLY(StyleBuilderConverter); | 56 STATIC_ONLY(StyleBuilderConverter); |
56 public: | 57 public: |
57 static PassRefPtr<StyleReflection> convertBoxReflect(StyleResolverState&, co
nst CSSValue&); | 58 static PassRefPtr<StyleReflection> convertBoxReflect(StyleResolverState&, co
nst CSSValue&); |
58 static AtomicString convertFragmentIdentifier(StyleResolverState&, const CSS
Value&); | 59 static AtomicString convertFragmentIdentifier(StyleResolverState&, const CSS
Value&); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 static PassRefPtr<QuotesData> convertQuotes(StyleResolverState&, const CSSVa
lue&); | 91 static PassRefPtr<QuotesData> convertQuotes(StyleResolverState&, const CSSVa
lue&); |
91 static LengthSize convertRadius(StyleResolverState&, const CSSValue&); | 92 static LengthSize convertRadius(StyleResolverState&, const CSSValue&); |
92 static EPaintOrder convertPaintOrder(StyleResolverState&, const CSSValue&); | 93 static EPaintOrder convertPaintOrder(StyleResolverState&, const CSSValue&); |
93 static PassRefPtr<ShadowList> convertShadow(StyleResolverState&, const CSSVa
lue&); | 94 static PassRefPtr<ShadowList> convertShadow(StyleResolverState&, const CSSVa
lue&); |
94 static ShapeValue* convertShapeValue(StyleResolverState&, const CSSValue&); | 95 static ShapeValue* convertShapeValue(StyleResolverState&, const CSSValue&); |
95 static float convertSpacing(StyleResolverState&, const CSSValue&); | 96 static float convertSpacing(StyleResolverState&, const CSSValue&); |
96 template <CSSValueID IdForNone> static AtomicString convertString(StyleResol
verState&, const CSSValue&); | 97 template <CSSValueID IdForNone> static AtomicString convertString(StyleResol
verState&, const CSSValue&); |
97 static PassRefPtr<SVGDashArray> convertStrokeDasharray(StyleResolverState&,
const CSSValue&); | 98 static PassRefPtr<SVGDashArray> convertStrokeDasharray(StyleResolverState&,
const CSSValue&); |
98 static StyleColor convertStyleColor(StyleResolverState&, const CSSValue&, bo
ol forVisitedLink = false); | 99 static StyleColor convertStyleColor(StyleResolverState&, const CSSValue&, bo
ol forVisitedLink = false); |
99 static float convertTextStrokeWidth(StyleResolverState&, const CSSValue&); | 100 static float convertTextStrokeWidth(StyleResolverState&, const CSSValue&); |
| 101 static TextSizeAdjust convertTextSizeAdjust(StyleResolverState&, const CSSVa
lue&); |
100 static TransformOrigin convertTransformOrigin(StyleResolverState&, const CSS
Value&); | 102 static TransformOrigin convertTransformOrigin(StyleResolverState&, const CSS
Value&); |
101 | 103 |
102 static void convertGridTrackList(const CSSValue&, Vector<GridTrackSize>&, Na
medGridLinesMap&, OrderedNamedGridLines&, | 104 static void convertGridTrackList(const CSSValue&, Vector<GridTrackSize>&, Na
medGridLinesMap&, OrderedNamedGridLines&, |
103 Vector<GridTrackSize>& autoRepeatTrackSizes, NamedGridLinesMap&, Ordered
NamedGridLines&, | 105 Vector<GridTrackSize>& autoRepeatTrackSizes, NamedGridLinesMap&, Ordered
NamedGridLines&, |
104 size_t& autoRepeatInsertionPoint, AutoRepeatType&, StyleResolverState&); | 106 size_t& autoRepeatInsertionPoint, AutoRepeatType&, StyleResolverState&); |
105 static void createImplicitNamedGridLinesFromGridArea(const NamedGridAreaMap&
, NamedGridLinesMap&, GridTrackSizingDirection); | 107 static void createImplicitNamedGridLinesFromGridArea(const NamedGridAreaMap&
, NamedGridLinesMap&, GridTrackSizingDirection); |
106 static void convertOrderedNamedGridLinesMapToNamedGridLinesMap(const Ordered
NamedGridLines&, NamedGridLinesMap&); | 108 static void convertOrderedNamedGridLinesMapToNamedGridLinesMap(const Ordered
NamedGridLines&, NamedGridLinesMap&); |
107 | 109 |
108 static ScrollSnapPoints convertSnapPoints(StyleResolverState&, const CSSValu
e&); | 110 static ScrollSnapPoints convertSnapPoints(StyleResolverState&, const CSSValu
e&); |
109 static Vector<LengthPoint> convertSnapCoordinates(StyleResolverState&, const
CSSValue&); | 111 static Vector<LengthPoint> convertSnapCoordinates(StyleResolverState&, const
CSSValue&); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 { | 168 { |
167 if (value.isStringValue()) | 169 if (value.isStringValue()) |
168 return AtomicString(toCSSStringValue(value).value()); | 170 return AtomicString(toCSSStringValue(value).value()); |
169 ASSERT(toCSSPrimitiveValue(value).getValueID() == IdForNone); | 171 ASSERT(toCSSPrimitiveValue(value).getValueID() == IdForNone); |
170 return nullAtom; | 172 return nullAtom; |
171 } | 173 } |
172 | 174 |
173 } // namespace blink | 175 } // namespace blink |
174 | 176 |
175 #endif | 177 #endif |
OLD | NEW |