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 LayoutStyleCSSValueMapping_h | 5 #ifndef ComputedStyleCSSValueMapping_h |
6 #define LayoutStyleCSSValueMapping_h | 6 #define ComputedStyleCSSValueMapping_h |
7 | 7 |
8 #include "core/CSSPropertyNames.h" | 8 #include "core/CSSPropertyNames.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 class CSSPrimitiveValue; | 12 class CSSPrimitiveValue; |
13 class LayoutObject; | 13 class LayoutObject; |
14 class LayoutStyle; | 14 class ComputedStyle; |
15 class ShadowData; | 15 class ShadowData; |
16 class ShadowList; | 16 class ShadowList; |
17 class StyleColor; | 17 class StyleColor; |
18 class Node; | 18 class Node; |
19 | 19 |
20 class LayoutStyleCSSValueMapping { | 20 class ComputedStyleCSSValueMapping { |
21 public: | 21 public: |
22 // FIXME: Resolve computed auto alignment in applyProperty/LayoutStyle and r
emove this non-const styledNode parameter. | 22 // FIXME: Resolve computed auto alignment in applyProperty/ComputedStyle and
remove this non-const styledNode parameter. |
23 static PassRefPtrWillBeRawPtr<CSSValue> get(CSSPropertyID, const LayoutStyle
&, const LayoutObject* renderer = nullptr, Node* styledNode = nullptr, bool allo
wVisitedStyle = false); | 23 static PassRefPtrWillBeRawPtr<CSSValue> get(CSSPropertyID, const ComputedSty
le&, const LayoutObject* renderer = nullptr, Node* styledNode = nullptr, bool al
lowVisitedStyle = false); |
24 private: | 24 private: |
25 static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> currentColorOrValidColor(co
nst LayoutStyle&, const StyleColor&); | 25 static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> currentColorOrValidColor(co
nst ComputedStyle&, const StyleColor&); |
26 static PassRefPtrWillBeRawPtr<CSSValue> valueForShadowData(const ShadowData&
, const LayoutStyle&, bool useSpread); | 26 static PassRefPtrWillBeRawPtr<CSSValue> valueForShadowData(const ShadowData&
, const ComputedStyle&, bool useSpread); |
27 static PassRefPtrWillBeRawPtr<CSSValue> valueForShadowList(const ShadowList*
, const LayoutStyle&, bool useSpread); | 27 static PassRefPtrWillBeRawPtr<CSSValue> valueForShadowList(const ShadowList*
, const ComputedStyle&, bool useSpread); |
28 static PassRefPtrWillBeRawPtr<CSSValue> valueForFilter(const LayoutStyle&); | 28 static PassRefPtrWillBeRawPtr<CSSValue> valueForFilter(const ComputedStyle&)
; |
29 }; | 29 }; |
30 | 30 |
31 } // namespace blink | 31 } // namespace blink |
32 | 32 |
33 #endif // LayoutStyleCSSValueMapping_h | 33 #endif // ComputedStyleCSSValueMapping_h |
OLD | NEW |