Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: Source/core/animation/css/CSSPropertyEquality.cpp

Issue 1172583002: Add support for z-index: auto to AnimatableValues (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove dumb Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/animation/css/CSSAnimatableValueFactory.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 return a.svgStyle().x() == b.svgStyle().x(); 315 return a.svgStyle().x() == b.svgStyle().x();
316 case CSSPropertyY: 316 case CSSPropertyY:
317 return a.svgStyle().y() == b.svgStyle().y(); 317 return a.svgStyle().y() == b.svgStyle().y();
318 case CSSPropertyR: 318 case CSSPropertyR:
319 return a.svgStyle().r() == b.svgStyle().r(); 319 return a.svgStyle().r() == b.svgStyle().r();
320 case CSSPropertyRx: 320 case CSSPropertyRx:
321 return a.svgStyle().rx() == b.svgStyle().rx(); 321 return a.svgStyle().rx() == b.svgStyle().rx();
322 case CSSPropertyRy: 322 case CSSPropertyRy:
323 return a.svgStyle().ry() == b.svgStyle().ry(); 323 return a.svgStyle().ry() == b.svgStyle().ry();
324 case CSSPropertyZIndex: 324 case CSSPropertyZIndex:
325 return a.zIndex() == b.zIndex(); 325 return a.hasAutoZIndex() == b.hasAutoZIndex() && (a.hasAutoZIndex() || a .zIndex() == b.zIndex());
326 default: 326 default:
327 ASSERT_NOT_REACHED(); 327 ASSERT_NOT_REACHED();
328 return true; 328 return true;
329 } 329 }
330 } 330 }
331 331
332 } 332 }
OLDNEW
« no previous file with comments | « Source/core/animation/css/CSSAnimatableValueFactory.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698