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

Side by Side Diff: third_party/WebKit/Source/core/animation/ColorPropertyFunctions.h

Issue 2537373005: [css-ui] Make caret-color animatable (Closed)
Patch Set: Come back to previous version but keep DCHECK in toStyleColor() Created 3 years, 12 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 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 StyleColor getUnvisitedColor(CSSPropertyID, const ComputedStyle&);
19 static StyleColor getVisitedColor(CSSPropertyID, const ComputedStyle&); 19 static StyleColor getVisitedColor(CSSPropertyID, const ComputedStyle&);
20 static void setUnvisitedColor(CSSPropertyID, ComputedStyle&, const Color&); 20 static void setUnvisitedColor(CSSPropertyID, ComputedStyle&, const Color&);
21 static void setVisitedColor(CSSPropertyID, ComputedStyle&, const Color&); 21 static void setVisitedColor(CSSPropertyID, ComputedStyle&, const Color&);
22 }; 22 };
23 23
24 } // namespace blink 24 } // namespace blink
25 25
26 #endif // ColorPropertyFunctions_h 26 #endif // ColorPropertyFunctions_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698