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

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

Issue 1304623002: Make blink classes and structures in core/css fast-allocated (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing (Fixed windows compile error) Created 5 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 21 matching lines...) Expand all
32 #include "core/css/resolver/StyleResolverState.h" 32 #include "core/css/resolver/StyleResolverState.h"
33 #include "core/layout/LayoutView.h" 33 #include "core/layout/LayoutView.h"
34 #include "core/style/QuotesData.h" 34 #include "core/style/QuotesData.h"
35 #include "core/style/ShadowList.h" 35 #include "core/style/ShadowList.h"
36 #include "core/style/StyleReflection.h" 36 #include "core/style/StyleReflection.h"
37 #include "core/style/StyleScrollSnapData.h" 37 #include "core/style/StyleScrollSnapData.h"
38 #include "core/style/TransformOrigin.h" 38 #include "core/style/TransformOrigin.h"
39 #include "platform/LengthSize.h" 39 #include "platform/LengthSize.h"
40 #include "platform/fonts/FontDescription.h" 40 #include "platform/fonts/FontDescription.h"
41 #include "platform/text/TabSize.h" 41 #include "platform/text/TabSize.h"
42 #include "wtf/Allocator.h"
42 43
43 namespace blink { 44 namespace blink {
44 45
45 class RotateTransformOperation; 46 class RotateTransformOperation;
46 class TranslateTransformOperation; 47 class TranslateTransformOperation;
47 class ScaleTransformOperation; 48 class ScaleTransformOperation;
48 49
49 // Note that we assume the parser only allows valid CSSValue types. 50 // Note that we assume the parser only allows valid CSSValue types.
50 class StyleBuilderConverter { 51 class StyleBuilderConverter {
52 STATIC_ONLY(StyleBuilderConverter);
51 public: 53 public:
52 static PassRefPtr<StyleReflection> convertBoxReflect(StyleResolverState&, CS SValue*); 54 static PassRefPtr<StyleReflection> convertBoxReflect(StyleResolverState&, CS SValue*);
53 static AtomicString convertFragmentIdentifier(StyleResolverState&, CSSValue* ); 55 static AtomicString convertFragmentIdentifier(StyleResolverState&, CSSValue* );
54 static Color convertColor(StyleResolverState&, CSSValue*, bool forVisitedLin k = false); 56 static Color convertColor(StyleResolverState&, CSSValue*, bool forVisitedLin k = false);
55 template <typename T> static T convertComputedLength(StyleResolverState&, CS SValue*); 57 template <typename T> static T convertComputedLength(StyleResolverState&, CS SValue*);
56 static LengthBox convertClip(StyleResolverState&, CSSValue*); 58 static LengthBox convertClip(StyleResolverState&, CSSValue*);
57 template <typename T> static T convertFlags(StyleResolverState&, CSSValue*); 59 template <typename T> static T convertFlags(StyleResolverState&, CSSValue*);
58 static FontDescription::FamilyDescription convertFontFamily(StyleResolverSta te&, CSSValue*); 60 static FontDescription::FamilyDescription convertFontFamily(StyleResolverSta te&, CSSValue*);
59 static PassRefPtr<FontFeatureSettings> convertFontFeatureSettings(StyleResol verState&, CSSValue*); 61 static PassRefPtr<FontFeatureSettings> convertFontFeatureSettings(StyleResol verState&, CSSValue*);
60 static FontDescription::Size convertFontSize(StyleResolverState&, CSSValue*) ; 62 static FontDescription::Size convertFontSize(StyleResolverState&, CSSValue*) ;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 { 156 {
155 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); 157 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
156 if (primitiveValue->getValueID() == IdForNone) 158 if (primitiveValue->getValueID() == IdForNone)
157 return nullAtom; 159 return nullAtom;
158 return AtomicString(primitiveValue->getStringValue()); 160 return AtomicString(primitiveValue->getStringValue());
159 } 161 }
160 162
161 } // namespace blink 163 } // namespace blink
162 164
163 #endif 165 #endif
OLDNEW
« no previous file with comments | « Source/core/css/resolver/MatchedPropertiesCache.h ('k') | Source/core/css/resolver/StyleResolverStats.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698