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 "config.h" | 5 #include "config.h" |
6 #include "core/animation/css/CSSPropertyEquality.h" | 6 #include "core/animation/css/CSSPropertyEquality.h" |
7 | 7 |
8 #include "core/animation/css/CSSAnimations.h" | 8 #include "core/animation/css/CSSAnimations.h" |
9 #include "core/layout/style/DataEquivalency.h" | 9 #include "core/layout/style/DataEquivalency.h" |
10 #include "core/layout/style/LayoutStyle.h" | 10 #include "core/layout/style/LayoutStyle.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 && a.visitedLinkBackgroundColor() == b.visitedLinkBackgroundColor(); | 64 && a.visitedLinkBackgroundColor() == b.visitedLinkBackgroundColor(); |
65 case CSSPropertyBackgroundImage: | 65 case CSSPropertyBackgroundImage: |
66 return fillLayersEqual<CSSPropertyBackgroundImage>(a.backgroundLayers(),
b.backgroundLayers()); | 66 return fillLayersEqual<CSSPropertyBackgroundImage>(a.backgroundLayers(),
b.backgroundLayers()); |
67 case CSSPropertyBackgroundPositionX: | 67 case CSSPropertyBackgroundPositionX: |
68 return fillLayersEqual<CSSPropertyBackgroundPositionX>(a.backgroundLayer
s(), b.backgroundLayers()); | 68 return fillLayersEqual<CSSPropertyBackgroundPositionX>(a.backgroundLayer
s(), b.backgroundLayers()); |
69 case CSSPropertyBackgroundPositionY: | 69 case CSSPropertyBackgroundPositionY: |
70 return fillLayersEqual<CSSPropertyBackgroundPositionY>(a.backgroundLayer
s(), b.backgroundLayers()); | 70 return fillLayersEqual<CSSPropertyBackgroundPositionY>(a.backgroundLayer
s(), b.backgroundLayers()); |
71 case CSSPropertyBackgroundSize: | 71 case CSSPropertyBackgroundSize: |
72 return fillLayersEqual<CSSPropertyBackgroundSize>(a.backgroundLayers(),
b.backgroundLayers()); | 72 return fillLayersEqual<CSSPropertyBackgroundSize>(a.backgroundLayers(),
b.backgroundLayers()); |
73 case CSSPropertyBaselineShift: | 73 case CSSPropertyBaselineShift: |
74 return dataEquivalent(a.baselineShiftValue(), b.baselineShiftValue()); | 74 return a.baselineShiftValue() == b.baselineShiftValue(); |
75 case CSSPropertyBorderBottomColor: | 75 case CSSPropertyBorderBottomColor: |
76 return a.borderBottomColor() == b.borderBottomColor() | 76 return a.borderBottomColor() == b.borderBottomColor() |
77 && a.visitedLinkBorderBottomColor() == b.visitedLinkBorderBottomColo
r(); | 77 && a.visitedLinkBorderBottomColor() == b.visitedLinkBorderBottomColo
r(); |
78 case CSSPropertyBorderBottomLeftRadius: | 78 case CSSPropertyBorderBottomLeftRadius: |
79 return a.borderBottomLeftRadius() == b.borderBottomLeftRadius(); | 79 return a.borderBottomLeftRadius() == b.borderBottomLeftRadius(); |
80 case CSSPropertyBorderBottomRightRadius: | 80 case CSSPropertyBorderBottomRightRadius: |
81 return a.borderBottomRightRadius() == b.borderBottomRightRadius(); | 81 return a.borderBottomRightRadius() == b.borderBottomRightRadius(); |
82 case CSSPropertyBorderBottomWidth: | 82 case CSSPropertyBorderBottomWidth: |
83 return a.borderBottomWidth() == b.borderBottomWidth(); | 83 return a.borderBottomWidth() == b.borderBottomWidth(); |
84 case CSSPropertyBorderImageOutset: | 84 case CSSPropertyBorderImageOutset: |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 return a.svgStyle().y() == b.svgStyle().y(); | 306 return a.svgStyle().y() == b.svgStyle().y(); |
307 case CSSPropertyZIndex: | 307 case CSSPropertyZIndex: |
308 return a.zIndex() == b.zIndex(); | 308 return a.zIndex() == b.zIndex(); |
309 default: | 309 default: |
310 ASSERT_NOT_REACHED(); | 310 ASSERT_NOT_REACHED(); |
311 return true; | 311 return true; |
312 } | 312 } |
313 } | 313 } |
314 | 314 |
315 } | 315 } |
OLD | NEW |