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

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

Issue 2345223002: Slim includes in CSSValue.h (Closed)
Patch Set: Created 4 years, 3 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ComputedStyleCSSValueMapping_h 5 #ifndef ComputedStyleCSSValueMapping_h
6 #define ComputedStyleCSSValueMapping_h 6 #define ComputedStyleCSSValueMapping_h
7 7
8 #include "core/CSSPropertyNames.h" 8 #include "core/CSSPropertyNames.h"
9 #include "core/css/CSSValue.h" 9 #include "core/css/CSSValue.h"
10 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
11 #include "wtf/HashMap.h"
12 #include "wtf/text/AtomicString.h"
11 13
12 namespace blink { 14 namespace blink {
13 15
14 class LayoutObject; 16 class CSSVariableData;
15 class ComputedStyle; 17 class ComputedStyle;
16 class FilterOperations; 18 class FilterOperations;
19 class LayoutObject;
20 class Node;
21 class PropertyRegistry;
17 class ShadowData; 22 class ShadowData;
18 class ShadowList; 23 class ShadowList;
19 class StyleColor; 24 class StyleColor;
20 class Node;
21 class CSSVariableData;
22 class PropertyRegistry;
23 25
24 class ComputedStyleCSSValueMapping { 26 class ComputedStyleCSSValueMapping {
25 STATIC_ONLY(ComputedStyleCSSValueMapping); 27 STATIC_ONLY(ComputedStyleCSSValueMapping);
26 public: 28 public:
27 // FIXME: Resolve computed auto alignment in applyProperty/ComputedStyle and remove this non-const styledNode parameter. 29 // FIXME: Resolve computed auto alignment in applyProperty/ComputedStyle and remove this non-const styledNode parameter.
28 static const CSSValue* get(CSSPropertyID, const ComputedStyle&, const Layout Object* = nullptr, Node* styledNode = nullptr, bool allowVisitedStyle = false); 30 static const CSSValue* get(CSSPropertyID, const ComputedStyle&, const Layout Object* = nullptr, Node* styledNode = nullptr, bool allowVisitedStyle = false);
29 static const CSSValue* get(const AtomicString customPropertyName, const Comp utedStyle&, const PropertyRegistry*); 31 static const CSSValue* get(const AtomicString customPropertyName, const Comp utedStyle&, const PropertyRegistry*);
30 static std::unique_ptr<HashMap<AtomicString, RefPtr<CSSVariableData>>> getVa riables(const ComputedStyle&); 32 static std::unique_ptr<HashMap<AtomicString, RefPtr<CSSVariableData>>> getVa riables(const ComputedStyle&);
31 private: 33 private:
32 static CSSValue* currentColorOrValidColor(const ComputedStyle&, const StyleC olor&); 34 static CSSValue* currentColorOrValidColor(const ComputedStyle&, const StyleC olor&);
33 static CSSValue* valueForShadowData(const ShadowData&, const ComputedStyle&, bool useSpread); 35 static CSSValue* valueForShadowData(const ShadowData&, const ComputedStyle&, bool useSpread);
34 static CSSValue* valueForShadowList(const ShadowList*, const ComputedStyle&, bool useSpread); 36 static CSSValue* valueForShadowList(const ShadowList*, const ComputedStyle&, bool useSpread);
35 static CSSValue* valueForFilter(const ComputedStyle&, const FilterOperations &); 37 static CSSValue* valueForFilter(const ComputedStyle&, const FilterOperations &);
36 static CSSValue* valueForFont(const ComputedStyle&); 38 static CSSValue* valueForFont(const ComputedStyle&);
37 }; 39 };
38 40
39 } // namespace blink 41 } // namespace blink
40 42
41 #endif // ComputedStyleCSSValueMapping_h 43 #endif // ComputedStyleCSSValueMapping_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSValueList.h ('k') | third_party/WebKit/Source/core/css/cssom/CSSStyleValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698