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