| OLD | NEW |
| 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" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // 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. |
| 30 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); |
| 31 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*); |
| 32 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&); |
| 33 private: | 33 private: |
| 34 static CSSValue* currentColorOrValidColor(const ComputedStyle&, const StyleC
olor&); | 34 static CSSValue* currentColorOrValidColor(const ComputedStyle&, const StyleC
olor&); |
| 35 static CSSValue* valueForShadowData(const ShadowData&, const ComputedStyle&,
bool useSpread); | 35 static CSSValue* valueForShadowData(const ShadowData&, const ComputedStyle&,
bool useSpread); |
| 36 static CSSValue* valueForShadowList(const ShadowList*, const ComputedStyle&,
bool useSpread); | 36 static CSSValue* valueForShadowList(const ShadowList*, const ComputedStyle&,
bool useSpread); |
| 37 static CSSValue* valueForFilter(const ComputedStyle&, const FilterOperations
&); | 37 static CSSValue* valueForFilter(const ComputedStyle&, const FilterOperations
&); |
| 38 static CSSValue* valueForFont(const ComputedStyle&); | 38 static CSSValue* valueForFont(const ComputedStyle&); |
| 39 static CSSValue* valueForOffset(const ComputedStyle&); |
| 39 }; | 40 }; |
| 40 | 41 |
| 41 } // namespace blink | 42 } // namespace blink |
| 42 | 43 |
| 43 #endif // ComputedStyleCSSValueMapping_h | 44 #endif // ComputedStyleCSSValueMapping_h |
| OLD | NEW |