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

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

Issue 444413003: Make style building for font-weight less custom. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 months 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 30 matching lines...) Expand all
41 41
42 // Note that we assume the parser only allows valid CSSValue types. 42 // Note that we assume the parser only allows valid CSSValue types.
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 template <typename T> static T convertFlags(StyleResolverState&, CSSValue*); 50 template <typename T> static T convertFlags(StyleResolverState&, CSSValue*);
51 static FontWeight convertFontWeight(StyleResolverState&, CSSValue*);
51 static FontDescription::VariantLigatures convertFontVariantLigatures(StyleRe solverState&, CSSValue*); 52 static FontDescription::VariantLigatures convertFontVariantLigatures(StyleRe solverState&, CSSValue*);
52 static EGlyphOrientation convertGlyphOrientation(StyleResolverState&, CSSVal ue*); 53 static EGlyphOrientation convertGlyphOrientation(StyleResolverState&, CSSVal ue*);
53 static GridPosition convertGridPosition(StyleResolverState&, CSSValue*); 54 static GridPosition convertGridPosition(StyleResolverState&, CSSValue*);
54 static GridTrackSize convertGridTrackSize(StyleResolverState&, CSSValue*); 55 static GridTrackSize convertGridTrackSize(StyleResolverState&, CSSValue*);
55 template <typename T> static T convertLineWidth(StyleResolverState&, CSSValu e*); 56 template <typename T> static T convertLineWidth(StyleResolverState&, CSSValu e*);
56 static Length convertLength(StyleResolverState&, CSSValue*); 57 static Length convertLength(StyleResolverState&, CSSValue*);
57 static Length convertLengthOrAuto(StyleResolverState&, CSSValue*); 58 static Length convertLengthOrAuto(StyleResolverState&, CSSValue*);
58 static Length convertLengthSizing(StyleResolverState&, CSSValue*); 59 static Length convertLengthSizing(StyleResolverState&, CSSValue*);
59 static Length convertLengthMaxSizing(StyleResolverState&, CSSValue*); 60 static Length convertLengthMaxSizing(StyleResolverState&, CSSValue*);
60 static LengthPoint convertLengthPoint(StyleResolverState&, CSSValue*); 61 static LengthPoint convertLengthPoint(StyleResolverState&, CSSValue*);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 { 122 {
122 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); 123 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
123 if (primitiveValue->getValueID() == IdForNone) 124 if (primitiveValue->getValueID() == IdForNone)
124 return nullAtom; 125 return nullAtom;
125 return AtomicString(primitiveValue->getStringValue()); 126 return AtomicString(primitiveValue->getStringValue());
126 } 127 }
127 128
128 } // namespace blink 129 } // namespace blink
129 130
130 #endif 131 #endif
OLDNEW
« no previous file with comments | « Source/core/css/resolver/FontBuilder.cpp ('k') | Source/core/css/resolver/StyleBuilderConverter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698