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

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

Issue 121173004: Make calls to AtomicString(const String&) explicit in svg/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Take feedback into consideration Created 6 years, 11 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 22 matching lines...) Expand all
33 #include "core/rendering/style/ShadowList.h" 33 #include "core/rendering/style/ShadowList.h"
34 #include "core/svg/SVGLength.h" 34 #include "core/svg/SVGLength.h"
35 #include "platform/LengthSize.h" 35 #include "platform/LengthSize.h"
36 36
37 namespace WebCore { 37 namespace WebCore {
38 38
39 // Note that we assume the parser only allows valid CSSValue types. 39 // Note that we assume the parser only allows valid CSSValue types.
40 40
41 class StyleBuilderConverter { 41 class StyleBuilderConverter {
42 public: 42 public:
43 static String convertFragmentIdentifier(StyleResolverState&, CSSValue*); 43 static AtomicString convertFragmentIdentifier(StyleResolverState&, CSSValue* );
44 template <typename T> static T convertComputedLength(StyleResolverState&, CS SValue*); 44 template <typename T> static T convertComputedLength(StyleResolverState&, CS SValue*);
45 template <typename T> static T convertLineWidth(StyleResolverState&, CSSValu e*); 45 template <typename T> static T convertLineWidth(StyleResolverState&, CSSValu e*);
46 static Length convertLength(StyleResolverState&, CSSValue*); 46 static Length convertLength(StyleResolverState&, CSSValue*);
47 static Length convertLengthOrAuto(StyleResolverState&, CSSValue*); 47 static Length convertLengthOrAuto(StyleResolverState&, CSSValue*);
48 static Length convertLengthSizing(StyleResolverState&, CSSValue*); 48 static Length convertLengthSizing(StyleResolverState&, CSSValue*);
49 static Length convertLengthMaxSizing(StyleResolverState&, CSSValue*); 49 static Length convertLengthMaxSizing(StyleResolverState&, CSSValue*);
50 static LengthPoint convertLengthPoint(StyleResolverState&, CSSValue*); 50 static LengthPoint convertLengthPoint(StyleResolverState&, CSSValue*);
51 static float convertNumberOrPercentage(StyleResolverState&, CSSValue*); 51 static float convertNumberOrPercentage(StyleResolverState&, CSSValue*);
52 static LengthSize convertRadius(StyleResolverState&, CSSValue*); 52 static LengthSize convertRadius(StyleResolverState&, CSSValue*);
53 static PassRefPtr<ShadowList> convertShadow(StyleResolverState&, CSSValue*); 53 static PassRefPtr<ShadowList> convertShadow(StyleResolverState&, CSSValue*);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 { 95 {
96 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); 96 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
97 if (primitiveValue->getValueID() == IdForNone) 97 if (primitiveValue->getValueID() == IdForNone)
98 return nullAtom; 98 return nullAtom;
99 return primitiveValue->getStringValue(); 99 return primitiveValue->getStringValue();
100 } 100 }
101 101
102 } // namespace WebCore 102 } // namespace WebCore
103 103
104 #endif 104 #endif
OLDNEW
« no previous file with comments | « Source/core/css/resolver/FilterOperationResolver.cpp ('k') | Source/core/css/resolver/StyleBuilderConverter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698