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

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

Issue 667003003: Remove most of visited link support. (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 25 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « sky/engine/core/css/resolver/AnimatedStyleBuilder.cpp ('k') | sky/engine/core/css/resolver/StyleBuilderConverter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698