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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSPropertyEquality.cpp

Issue 2364503002: CSS Motion Path: animate offset-anchor and offset-position (Closed)
Patch Set: alphabetical Created 4 years, 2 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
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 "core/css/CSSPropertyEquality.h" 5 #include "core/css/CSSPropertyEquality.h"
6 6
7 #include "core/style/ComputedStyle.h" 7 #include "core/style/ComputedStyle.h"
8 #include "core/style/DataEquivalency.h" 8 #include "core/style/DataEquivalency.h"
9 #include "core/style/ShadowList.h" 9 #include "core/style/ShadowList.h"
10 10
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 case CSSPropertyMarginTop: 168 case CSSPropertyMarginTop:
169 return a.marginTop() == b.marginTop(); 169 return a.marginTop() == b.marginTop();
170 case CSSPropertyMaxHeight: 170 case CSSPropertyMaxHeight:
171 return a.maxHeight() == b.maxHeight(); 171 return a.maxHeight() == b.maxHeight();
172 case CSSPropertyMaxWidth: 172 case CSSPropertyMaxWidth:
173 return a.maxWidth() == b.maxWidth(); 173 return a.maxWidth() == b.maxWidth();
174 case CSSPropertyMinHeight: 174 case CSSPropertyMinHeight:
175 return a.minHeight() == b.minHeight(); 175 return a.minHeight() == b.minHeight();
176 case CSSPropertyMinWidth: 176 case CSSPropertyMinWidth:
177 return a.minWidth() == b.minWidth(); 177 return a.minWidth() == b.minWidth();
178 case CSSPropertyObjectPosition:
179 return a.objectPosition() == b.objectPosition();
180 case CSSPropertyOffsetAnchor:
181 return a.offsetAnchor() == b.offsetAnchor();
178 case CSSPropertyOffsetDistance: 182 case CSSPropertyOffsetDistance:
179 return a.offsetDistance() == b.offsetDistance(); 183 return a.offsetDistance() == b.offsetDistance();
184 case CSSPropertyOffsetPosition:
185 return a.offsetPosition() == b.offsetPosition();
180 case CSSPropertyOffsetRotation: 186 case CSSPropertyOffsetRotation:
181 return a.offsetRotation() == b.offsetRotation(); 187 return a.offsetRotation() == b.offsetRotation();
182 case CSSPropertyObjectPosition:
183 return a.objectPosition() == b.objectPosition();
184 case CSSPropertyOpacity: 188 case CSSPropertyOpacity:
185 return a.opacity() == b.opacity(); 189 return a.opacity() == b.opacity();
186 case CSSPropertyOrphans: 190 case CSSPropertyOrphans:
187 return a.orphans() == b.orphans(); 191 return a.orphans() == b.orphans();
188 case CSSPropertyOutlineColor: 192 case CSSPropertyOutlineColor:
189 return a.outlineColor() == b.outlineColor() 193 return a.outlineColor() == b.outlineColor()
190 && a.visitedLinkOutlineColor() == b.visitedLinkOutlineColor(); 194 && a.visitedLinkOutlineColor() == b.visitedLinkOutlineColor();
191 case CSSPropertyOutlineOffset: 195 case CSSPropertyOutlineOffset:
192 return a.outlineOffset() == b.outlineOffset(); 196 return a.outlineOffset() == b.outlineOffset();
193 case CSSPropertyOutlineWidth: 197 case CSSPropertyOutlineWidth:
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 return a.svgStyle().ry() == b.svgStyle().ry(); 336 return a.svgStyle().ry() == b.svgStyle().ry();
333 case CSSPropertyZIndex: 337 case CSSPropertyZIndex:
334 return a.hasAutoZIndex() == b.hasAutoZIndex() && (a.hasAutoZIndex() || a .zIndex() == b.zIndex()); 338 return a.hasAutoZIndex() == b.hasAutoZIndex() && (a.hasAutoZIndex() || a .zIndex() == b.zIndex());
335 default: 339 default:
336 NOTREACHED(); 340 NOTREACHED();
337 return true; 341 return true;
338 } 342 }
339 } 343 }
340 344
341 } // namespace blink 345 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698