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/animation/css/CSSPropertyEquality.h" | 5 #include "core/css/CSSPropertyEquality.h" |
6 | 6 |
7 #include "core/animation/css/CSSAnimations.h" | 7 #include "core/style/ComputedStyle.h" |
8 #include "core/style/DataEquivalency.h" | 8 #include "core/style/DataEquivalency.h" |
9 #include "core/style/ComputedStyle.h" | |
10 #include "core/style/ShadowList.h" | 9 #include "core/style/ShadowList.h" |
11 | 10 |
| 11 // TODO(ikilpatrick): generate this file. |
| 12 |
12 namespace blink { | 13 namespace blink { |
13 | 14 |
14 namespace { | 15 namespace { |
15 | 16 |
16 template <CSSPropertyID property> | 17 template <CSSPropertyID property> |
17 bool fillLayersEqual(const FillLayer& aLayers, const FillLayer& bLayers) | 18 bool fillLayersEqual(const FillLayer& aLayers, const FillLayer& bLayers) |
18 { | 19 { |
19 const FillLayer* aLayer = &aLayers; | 20 const FillLayer* aLayer = &aLayers; |
20 const FillLayer* bLayer = &bLayers; | 21 const FillLayer* bLayer = &bLayers; |
21 while (aLayer && bLayer) { | 22 while (aLayer && bLayer) { |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 return a.svgStyle().ry() == b.svgStyle().ry(); | 332 return a.svgStyle().ry() == b.svgStyle().ry(); |
332 case CSSPropertyZIndex: | 333 case CSSPropertyZIndex: |
333 return a.hasAutoZIndex() == b.hasAutoZIndex() && (a.hasAutoZIndex() || a
.zIndex() == b.zIndex()); | 334 return a.hasAutoZIndex() == b.hasAutoZIndex() && (a.hasAutoZIndex() || a
.zIndex() == b.zIndex()); |
334 default: | 335 default: |
335 ASSERT_NOT_REACHED(); | 336 ASSERT_NOT_REACHED(); |
336 return true; | 337 return true; |
337 } | 338 } |
338 } | 339 } |
339 | 340 |
340 } // namespace blink | 341 } // namespace blink |
OLD | NEW |