OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 ColorPropertyFunctions_h | 5 #ifndef ColorPropertyFunctions_h |
6 #define ColorPropertyFunctions_h | 6 #define ColorPropertyFunctions_h |
7 | 7 |
8 #include "core/CSSPropertyNames.h" | 8 #include "core/CSSPropertyNames.h" |
9 #include "core/css/StyleColor.h" | 9 #include "core/css/StyleColor.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 class ComputedStyle; | 13 class ComputedStyle; |
14 | 14 |
15 class ColorPropertyFunctions { | 15 class ColorPropertyFunctions { |
16 public: | 16 public: |
17 static StyleColor getInitialColor(CSSPropertyID); | 17 static bool getInitialColor(CSSPropertyID, StyleColor& initialColor); |
18 static StyleColor getUnvisitedColor(CSSPropertyID, const ComputedStyle&); | 18 static bool getUnvisitedColor(CSSPropertyID, |
19 static StyleColor getVisitedColor(CSSPropertyID, const ComputedStyle&); | 19 const ComputedStyle&, |
| 20 StyleColor&); |
| 21 static bool getVisitedColor(CSSPropertyID, const ComputedStyle&, StyleColor&); |
20 static void setUnvisitedColor(CSSPropertyID, ComputedStyle&, const Color&); | 22 static void setUnvisitedColor(CSSPropertyID, ComputedStyle&, const Color&); |
21 static void setVisitedColor(CSSPropertyID, ComputedStyle&, const Color&); | 23 static void setVisitedColor(CSSPropertyID, ComputedStyle&, const Color&); |
22 }; | 24 }; |
23 | 25 |
24 } // namespace blink | 26 } // namespace blink |
25 | 27 |
26 #endif // ColorPropertyFunctions_h | 28 #endif // ColorPropertyFunctions_h |
OLD | NEW |