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

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

Issue 1858753003: Remove RawPtr from core/css (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 11
12 namespace blink { 12 namespace blink {
13 13
14 class LayoutObject; 14 class LayoutObject;
15 class ComputedStyle; 15 class ComputedStyle;
16 class FilterOperations; 16 class FilterOperations;
17 class ShadowData; 17 class ShadowData;
18 class ShadowList; 18 class ShadowList;
19 class StyleColor; 19 class StyleColor;
20 class Node; 20 class Node;
21 class CSSVariableData; 21 class CSSVariableData;
22 22
23 class ComputedStyleCSSValueMapping { 23 class ComputedStyleCSSValueMapping {
24 STATIC_ONLY(ComputedStyleCSSValueMapping); 24 STATIC_ONLY(ComputedStyleCSSValueMapping);
25 public: 25 public:
26 // FIXME: Resolve computed auto alignment in applyProperty/ComputedStyle and remove this non-const styledNode parameter. 26 // FIXME: Resolve computed auto alignment in applyProperty/ComputedStyle and remove this non-const styledNode parameter.
27 static RawPtr<CSSValue> get(CSSPropertyID, const ComputedStyle&, const Layou tObject* = nullptr, Node* styledNode = nullptr, bool allowVisitedStyle = false); 27 static CSSValue* get(CSSPropertyID, const ComputedStyle&, const LayoutObject * = nullptr, Node* styledNode = nullptr, bool allowVisitedStyle = false);
28 static RawPtr<CSSValue> get(const AtomicString customPropertyName, const Com putedStyle&); 28 static CSSValue* get(const AtomicString customPropertyName, const ComputedSt yle&);
29 static const HashMap<AtomicString, RefPtr<CSSVariableData>>* getVariables(co nst ComputedStyle&); 29 static const HashMap<AtomicString, RefPtr<CSSVariableData>>* getVariables(co nst ComputedStyle&);
30 private: 30 private:
31 static RawPtr<CSSValue> currentColorOrValidColor(const ComputedStyle&, const StyleColor&); 31 static CSSValue* currentColorOrValidColor(const ComputedStyle&, const StyleC olor&);
32 static RawPtr<CSSValue> valueForShadowData(const ShadowData&, const Computed Style&, bool useSpread); 32 static CSSValue* valueForShadowData(const ShadowData&, const ComputedStyle&, bool useSpread);
33 static RawPtr<CSSValue> valueForShadowList(const ShadowList*, const Computed Style&, bool useSpread); 33 static CSSValue* valueForShadowList(const ShadowList*, const ComputedStyle&, bool useSpread);
34 static RawPtr<CSSValue> valueForFilter(const ComputedStyle&, const FilterOpe rations&); 34 static CSSValue* valueForFilter(const ComputedStyle&, const FilterOperations &);
35 static RawPtr<CSSValue> valueForFont(const ComputedStyle&); 35 static CSSValue* valueForFont(const ComputedStyle&);
36 }; 36 };
37 37
38 } // namespace blink 38 } // namespace blink
39 39
40 #endif // ComputedStyleCSSValueMapping_h 40 #endif // ComputedStyleCSSValueMapping_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698