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/style/DataEquivalency.h" | 9 #include "core/style/DataEquivalency.h" |
10 #include "core/style/ComputedStyle.h" | 10 #include "core/style/ComputedStyle.h" |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 case CSSPropertyWebkitTransformOriginY: | 308 case CSSPropertyWebkitTransformOriginY: |
309 return a.transformOriginY() == b.transformOriginY(); | 309 return a.transformOriginY() == b.transformOriginY(); |
310 case CSSPropertyWebkitTransformOriginZ: | 310 case CSSPropertyWebkitTransformOriginZ: |
311 return a.transformOriginZ() == b.transformOriginZ(); | 311 return a.transformOriginZ() == b.transformOriginZ(); |
312 case CSSPropertyWidows: | 312 case CSSPropertyWidows: |
313 return a.widows() == b.widows(); | 313 return a.widows() == b.widows(); |
314 case CSSPropertyWidth: | 314 case CSSPropertyWidth: |
315 return a.width() == b.width(); | 315 return a.width() == b.width(); |
316 case CSSPropertyWordSpacing: | 316 case CSSPropertyWordSpacing: |
317 return a.wordSpacing() == b.wordSpacing(); | 317 return a.wordSpacing() == b.wordSpacing(); |
| 318 case CSSPropertyD: |
| 319 return a.svgStyle().d()->equals(*b.svgStyle().d()); |
318 case CSSPropertyCx: | 320 case CSSPropertyCx: |
319 return a.svgStyle().cx() == b.svgStyle().cx(); | 321 return a.svgStyle().cx() == b.svgStyle().cx(); |
320 case CSSPropertyCy: | 322 case CSSPropertyCy: |
321 return a.svgStyle().cy() == b.svgStyle().cy(); | 323 return a.svgStyle().cy() == b.svgStyle().cy(); |
322 case CSSPropertyX: | 324 case CSSPropertyX: |
323 return a.svgStyle().x() == b.svgStyle().x(); | 325 return a.svgStyle().x() == b.svgStyle().x(); |
324 case CSSPropertyY: | 326 case CSSPropertyY: |
325 return a.svgStyle().y() == b.svgStyle().y(); | 327 return a.svgStyle().y() == b.svgStyle().y(); |
326 case CSSPropertyR: | 328 case CSSPropertyR: |
327 return a.svgStyle().r() == b.svgStyle().r(); | 329 return a.svgStyle().r() == b.svgStyle().r(); |
328 case CSSPropertyRx: | 330 case CSSPropertyRx: |
329 return a.svgStyle().rx() == b.svgStyle().rx(); | 331 return a.svgStyle().rx() == b.svgStyle().rx(); |
330 case CSSPropertyRy: | 332 case CSSPropertyRy: |
331 return a.svgStyle().ry() == b.svgStyle().ry(); | 333 return a.svgStyle().ry() == b.svgStyle().ry(); |
332 case CSSPropertyZIndex: | 334 case CSSPropertyZIndex: |
333 return a.hasAutoZIndex() == b.hasAutoZIndex() && (a.hasAutoZIndex() || a
.zIndex() == b.zIndex()); | 335 return a.hasAutoZIndex() == b.hasAutoZIndex() && (a.hasAutoZIndex() || a
.zIndex() == b.zIndex()); |
334 default: | 336 default: |
335 ASSERT_NOT_REACHED(); | 337 ASSERT_NOT_REACHED(); |
336 return true; | 338 return true; |
337 } | 339 } |
338 } | 340 } |
339 | 341 |
340 } | 342 } |
OLD | NEW |