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

Side by Side Diff: sky/engine/core/css/resolver/StyleBuilderConverter.h

Issue 689853003: Remove CSS Grid Layout and grid media queries. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
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*); 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*);
54 static GridTrackSize convertGridTrackSize(StyleResolverState&, CSSValue*);
55 template <typename T> static T convertLineWidth(StyleResolverState&, CSSValu e*); 53 template <typename T> static T convertLineWidth(StyleResolverState&, CSSValu e*);
56 static Length convertLength(StyleResolverState&, CSSValue*); 54 static Length convertLength(StyleResolverState&, CSSValue*);
57 static Length convertLengthOrAuto(StyleResolverState&, CSSValue*); 55 static Length convertLengthOrAuto(StyleResolverState&, CSSValue*);
58 static Length convertLengthSizing(StyleResolverState&, CSSValue*); 56 static Length convertLengthSizing(StyleResolverState&, CSSValue*);
59 static Length convertLengthMaxSizing(StyleResolverState&, CSSValue*); 57 static Length convertLengthMaxSizing(StyleResolverState&, CSSValue*);
60 static LengthPoint convertLengthPoint(StyleResolverState&, CSSValue*); 58 static LengthPoint convertLengthPoint(StyleResolverState&, CSSValue*);
61 static LineBoxContain convertLineBoxContain(StyleResolverState&, CSSValue*); 59 static LineBoxContain convertLineBoxContain(StyleResolverState&, CSSValue*);
62 static float convertNumberOrPercentage(StyleResolverState&, CSSValue*); 60 static float convertNumberOrPercentage(StyleResolverState&, CSSValue*);
63 static PassRefPtr<QuotesData> convertQuotes(StyleResolverState&, CSSValue*); 61 static PassRefPtr<QuotesData> convertQuotes(StyleResolverState&, CSSValue*);
64 static LengthSize convertRadius(StyleResolverState&, CSSValue*); 62 static LengthSize convertRadius(StyleResolverState&, CSSValue*);
65 static PassRefPtr<ShadowList> convertShadow(StyleResolverState&, CSSValue*); 63 static PassRefPtr<ShadowList> convertShadow(StyleResolverState&, CSSValue*);
66 static float convertSpacing(StyleResolverState&, CSSValue*); 64 static float convertSpacing(StyleResolverState&, CSSValue*);
67 template <CSSValueID IdForNone> static AtomicString convertString(StyleResol verState&, CSSValue*); 65 template <CSSValueID IdForNone> static AtomicString convertString(StyleResol verState&, CSSValue*);
68 static float convertTextStrokeWidth(StyleResolverState&, CSSValue*); 66 static float convertTextStrokeWidth(StyleResolverState&, CSSValue*);
69
70 static bool convertGridTrackList(CSSValue*, Vector<GridTrackSize>&, NamedGri dLinesMap&, OrderedNamedGridLines&, StyleResolverState&);
71 static void createImplicitNamedGridLinesFromGridArea(const NamedGridAreaMap& , NamedGridLinesMap&, GridTrackSizingDirection);
72 }; 67 };
73 68
74 template <typename T> 69 template <typename T>
75 T StyleBuilderConverter::convertComputedLength(StyleResolverState& state, CSSVal ue* value) 70 T StyleBuilderConverter::convertComputedLength(StyleResolverState& state, CSSVal ue* value)
76 { 71 {
77 return toCSSPrimitiveValue(value)->computeLength<T>(state.cssToLengthConvers ionData()); 72 return toCSSPrimitiveValue(value)->computeLength<T>(state.cssToLengthConvers ionData());
78 } 73 }
79 74
80 template <typename T> 75 template <typename T>
81 T StyleBuilderConverter::convertFlags(StyleResolverState& state, CSSValue* value ) 76 T StyleBuilderConverter::convertFlags(StyleResolverState& state, CSSValue* value )
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 { 112 {
118 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); 113 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
119 if (primitiveValue->getValueID() == IdForNone) 114 if (primitiveValue->getValueID() == IdForNone)
120 return nullAtom; 115 return nullAtom;
121 return AtomicString(primitiveValue->getStringValue()); 116 return AtomicString(primitiveValue->getStringValue());
122 } 117 }
123 118
124 } // namespace blink 119 } // namespace blink
125 120
126 #endif 121 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/css/resolver/StyleAdjuster.cpp ('k') | sky/engine/core/css/resolver/StyleBuilderConverter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698