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/rendering/style/RenderStyle.h" | 9 #include "core/rendering/style/RenderStyle.h" |
10 #include "core/rendering/style/ShadowList.h" | 10 #include "core/rendering/style/ShadowList.h" |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 case CSSPropertyWebkitMaskImage: | 267 case CSSPropertyWebkitMaskImage: |
268 return ptrsOrValuesEqual<StyleImage*>(a.maskImage(), b.maskImage()); | 268 return ptrsOrValuesEqual<StyleImage*>(a.maskImage(), b.maskImage()); |
269 case CSSPropertyWebkitMaskPositionX: | 269 case CSSPropertyWebkitMaskPositionX: |
270 return fillLayersEqual<CSSPropertyWebkitMaskPositionX>(a.maskLayers(), b
.maskLayers()); | 270 return fillLayersEqual<CSSPropertyWebkitMaskPositionX>(a.maskLayers(), b
.maskLayers()); |
271 case CSSPropertyWebkitMaskPositionY: | 271 case CSSPropertyWebkitMaskPositionY: |
272 return fillLayersEqual<CSSPropertyWebkitMaskPositionY>(a.maskLayers(), b
.maskLayers()); | 272 return fillLayersEqual<CSSPropertyWebkitMaskPositionY>(a.maskLayers(), b
.maskLayers()); |
273 case CSSPropertyWebkitMaskSize: | 273 case CSSPropertyWebkitMaskSize: |
274 return fillLayersEqual<CSSPropertyWebkitMaskSize>(a.maskLayers(), b.mask
Layers()); | 274 return fillLayersEqual<CSSPropertyWebkitMaskSize>(a.maskLayers(), b.mask
Layers()); |
275 case CSSPropertyPerspective: | 275 case CSSPropertyPerspective: |
276 return a.perspective() == b.perspective(); | 276 return a.perspective() == b.perspective(); |
| 277 case CSSPropertyPerspectiveOrigin: |
| 278 return a.perspectiveOriginX() == b.perspectiveOriginX() && a.perspective
OriginY() == b.perspectiveOriginY(); |
277 case CSSPropertyWebkitPerspectiveOriginX: | 279 case CSSPropertyWebkitPerspectiveOriginX: |
278 return a.perspectiveOriginX() == b.perspectiveOriginX(); | 280 return a.perspectiveOriginX() == b.perspectiveOriginX(); |
279 case CSSPropertyWebkitPerspectiveOriginY: | 281 case CSSPropertyWebkitPerspectiveOriginY: |
280 return a.perspectiveOriginY() == b.perspectiveOriginY(); | 282 return a.perspectiveOriginY() == b.perspectiveOriginY(); |
281 case CSSPropertyWebkitTextStrokeColor: | 283 case CSSPropertyWebkitTextStrokeColor: |
282 return a.textStrokeColor().resolve(a.color()) == b.textStrokeColor().res
olve(b.color()) | 284 return a.textStrokeColor().resolve(a.color()) == b.textStrokeColor().res
olve(b.color()) |
283 && a.visitedLinkTextStrokeColor().resolve(a.color()) == b.visitedLin
kTextStrokeColor().resolve(b.color()); | 285 && a.visitedLinkTextStrokeColor().resolve(a.color()) == b.visitedLin
kTextStrokeColor().resolve(b.color()); |
284 case CSSPropertyTransform: | 286 case CSSPropertyTransform: |
285 return a.transform() == b.transform(); | 287 return a.transform() == b.transform(); |
286 case CSSPropertyTransformOrigin: | 288 case CSSPropertyTransformOrigin: |
(...skipping 14 matching lines...) Expand all Loading... |
301 return a.zIndex() == b.zIndex(); | 303 return a.zIndex() == b.zIndex(); |
302 case CSSPropertyZoom: | 304 case CSSPropertyZoom: |
303 return a.zoom() == b.zoom(); | 305 return a.zoom() == b.zoom(); |
304 default: | 306 default: |
305 ASSERT_NOT_REACHED(); | 307 ASSERT_NOT_REACHED(); |
306 return true; | 308 return true; |
307 } | 309 } |
308 } | 310 } |
309 | 311 |
310 } | 312 } |
OLD | NEW |