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 CSSPropertyEquality_h | 5 #ifndef CSSPropertyEquality_h |
6 #define CSSPropertyEquality_h | 6 #define CSSPropertyEquality_h |
7 | 7 |
8 #include "core/CSSPropertyNames.h" | 8 #include "core/CSSPropertyNames.h" |
9 #include "platform/wtf/Allocator.h" | 9 #include "platform/wtf/Allocator.h" |
10 #include "platform/wtf/text/AtomicString.h" | 10 #include "platform/wtf/text/AtomicString.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class ComputedStyle; | 14 class ComputedStyle; |
| 15 class PropertyHandle; |
15 | 16 |
16 class CSSPropertyEquality { | 17 class CSSPropertyEquality { |
17 STATIC_ONLY(CSSPropertyEquality); | 18 STATIC_ONLY(CSSPropertyEquality); |
18 | 19 |
19 public: | 20 public: |
20 static bool PropertiesEqual(CSSPropertyID, | 21 static bool PropertiesEqual(const PropertyHandle&, |
21 const ComputedStyle&, | 22 const ComputedStyle&, |
22 const ComputedStyle&); | 23 const ComputedStyle&); |
23 | |
24 static bool RegisteredCustomPropertiesEqual( | |
25 const WTF::AtomicString& property_name, | |
26 const ComputedStyle&, | |
27 const ComputedStyle&); | |
28 }; | 24 }; |
29 | 25 |
30 } // namespace blink | 26 } // namespace blink |
31 | 27 |
32 #endif // CSSPropertyEquality_h | 28 #endif // CSSPropertyEquality_h |
OLD | NEW |