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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.h

Issue 1407123011: Use a converter to resolve style for -webkit-filter and backdrop-filter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 // Note that we assume the parser only allows valid CSSValue types. 50 // Note that we assume the parser only allows valid CSSValue types.
51 class StyleBuilderConverter { 51 class StyleBuilderConverter {
52 STATIC_ONLY(StyleBuilderConverter); 52 STATIC_ONLY(StyleBuilderConverter);
53 public: 53 public:
54 static PassRefPtr<StyleReflection> convertBoxReflect(StyleResolverState&, co nst CSSValue&); 54 static PassRefPtr<StyleReflection> convertBoxReflect(StyleResolverState&, co nst CSSValue&);
55 static AtomicString convertFragmentIdentifier(StyleResolverState&, const CSS Value&); 55 static AtomicString convertFragmentIdentifier(StyleResolverState&, const CSS Value&);
56 static Color convertColor(StyleResolverState&, const CSSValue&, bool forVisi tedLink = false); 56 static Color convertColor(StyleResolverState&, const CSSValue&, bool forVisi tedLink = false);
57 template <typename T> static T convertComputedLength(StyleResolverState&, co nst CSSValue&); 57 template <typename T> static T convertComputedLength(StyleResolverState&, co nst CSSValue&);
58 static LengthBox convertClip(StyleResolverState&, const CSSValue&); 58 static LengthBox convertClip(StyleResolverState&, const CSSValue&);
59 static FilterOperations convertFilterOperations(StyleResolverState&, const C SSValue&);
59 template <typename T> static T convertFlags(StyleResolverState&, const CSSVa lue&); 60 template <typename T> static T convertFlags(StyleResolverState&, const CSSVa lue&);
60 static FontDescription::FamilyDescription convertFontFamily(StyleResolverSta te&, const CSSValue&); 61 static FontDescription::FamilyDescription convertFontFamily(StyleResolverSta te&, const CSSValue&);
61 static PassRefPtr<FontFeatureSettings> convertFontFeatureSettings(StyleResol verState&, const CSSValue&); 62 static PassRefPtr<FontFeatureSettings> convertFontFeatureSettings(StyleResol verState&, const CSSValue&);
62 static FontDescription::Size convertFontSize(StyleResolverState&, const CSSV alue&); 63 static FontDescription::Size convertFontSize(StyleResolverState&, const CSSV alue&);
63 static float convertFontSizeAdjust(StyleResolverState&, const CSSValue&); 64 static float convertFontSizeAdjust(StyleResolverState&, const CSSValue&);
64 static FontWeight convertFontWeight(StyleResolverState&, const CSSValue&); 65 static FontWeight convertFontWeight(StyleResolverState&, const CSSValue&);
65 static FontDescription::VariantLigatures convertFontVariantLigatures(StyleRe solverState&, const CSSValue&); 66 static FontDescription::VariantLigatures convertFontVariantLigatures(StyleRe solverState&, const CSSValue&);
66 static StyleSelfAlignmentData convertSelfOrDefaultAlignmentData(StyleResolve rState&, const CSSValue&); 67 static StyleSelfAlignmentData convertSelfOrDefaultAlignmentData(StyleResolve rState&, const CSSValue&);
67 static StyleContentAlignmentData convertContentAlignmentData(StyleResolverSt ate&, const CSSValue&); 68 static StyleContentAlignmentData convertContentAlignmentData(StyleResolverSt ate&, const CSSValue&);
68 static GridAutoFlow convertGridAutoFlow(StyleResolverState&, const CSSValue& ); 69 static GridAutoFlow convertGridAutoFlow(StyleResolverState&, const CSSValue& );
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 { 155 {
155 if (value.isStringValue()) 156 if (value.isStringValue())
156 return AtomicString(toCSSStringValue(value).value()); 157 return AtomicString(toCSSStringValue(value).value());
157 ASSERT(toCSSPrimitiveValue(value).getValueID() == IdForNone); 158 ASSERT(toCSSPrimitiveValue(value).getValueID() == IdForNone);
158 return nullAtom; 159 return nullAtom;
159 } 160 }
160 161
161 } // namespace blink 162 } // namespace blink
162 163
163 #endif 164 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698