| 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 #include "core/css/CSSPropertyEquality.h" | 5 #include "core/css/CSSPropertyEquality.h" |
| 6 | 6 |
| 7 #include "core/css/CSSValue.h" |
| 7 #include "core/style/ComputedStyle.h" | 8 #include "core/style/ComputedStyle.h" |
| 8 #include "core/style/DataEquivalency.h" | 9 #include "core/style/DataEquivalency.h" |
| 9 #include "core/style/ShadowList.h" | 10 #include "core/style/ShadowList.h" |
| 10 | 11 |
| 11 // TODO(ikilpatrick): generate this file. | 12 // TODO(ikilpatrick): generate this file. |
| 12 | 13 |
| 13 namespace blink { | 14 namespace blink { |
| 14 | 15 |
| 15 namespace { | 16 namespace { |
| 16 | 17 |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 return a.svgStyle().ry() == b.svgStyle().ry(); | 369 return a.svgStyle().ry() == b.svgStyle().ry(); |
| 369 case CSSPropertyZIndex: | 370 case CSSPropertyZIndex: |
| 370 return a.hasAutoZIndex() == b.hasAutoZIndex() && | 371 return a.hasAutoZIndex() == b.hasAutoZIndex() && |
| 371 (a.hasAutoZIndex() || a.zIndex() == b.zIndex()); | 372 (a.hasAutoZIndex() || a.zIndex() == b.zIndex()); |
| 372 default: | 373 default: |
| 373 NOTREACHED(); | 374 NOTREACHED(); |
| 374 return true; | 375 return true; |
| 375 } | 376 } |
| 376 } | 377 } |
| 377 | 378 |
| 379 bool CSSPropertyEquality::registeredCustomPropertiesEqual( |
| 380 const AtomicString& propertyName, |
| 381 const ComputedStyle& a, |
| 382 const ComputedStyle& b) { |
| 383 return dataEquivalent(a.getRegisteredVariable(propertyName), |
| 384 b.getRegisteredVariable(propertyName)); |
| 385 } |
| 386 |
| 378 } // namespace blink | 387 } // namespace blink |
| OLD | NEW |