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

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

Issue 1099483002: Use alias_for with trivial property aliases (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@alias
Patch Set: rebase a couple of tests Created 5 years, 8 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 "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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 return a.verticalAlign() == b.verticalAlign() 245 return a.verticalAlign() == b.verticalAlign()
246 && (a.verticalAlign() != LENGTH || a.verticalAlignLength() == b.vert icalAlignLength()); 246 && (a.verticalAlign() != LENGTH || a.verticalAlignLength() == b.vert icalAlignLength());
247 case CSSPropertyVisibility: 247 case CSSPropertyVisibility:
248 return a.visibility() == b.visibility(); 248 return a.visibility() == b.visibility();
249 case CSSPropertyWebkitBackgroundSize: 249 case CSSPropertyWebkitBackgroundSize:
250 return fillLayersEqual<CSSPropertyWebkitBackgroundSize>(a.backgroundLaye rs(), b.backgroundLayers()); 250 return fillLayersEqual<CSSPropertyWebkitBackgroundSize>(a.backgroundLaye rs(), b.backgroundLayers());
251 case CSSPropertyWebkitBorderHorizontalSpacing: 251 case CSSPropertyWebkitBorderHorizontalSpacing:
252 return a.horizontalBorderSpacing() == b.horizontalBorderSpacing(); 252 return a.horizontalBorderSpacing() == b.horizontalBorderSpacing();
253 case CSSPropertyWebkitBorderVerticalSpacing: 253 case CSSPropertyWebkitBorderVerticalSpacing:
254 return a.verticalBorderSpacing() == b.verticalBorderSpacing(); 254 return a.verticalBorderSpacing() == b.verticalBorderSpacing();
255 case CSSPropertyWebkitBoxShadow:
256 return dataEquivalent(a.boxShadow(), b.boxShadow());
257 case CSSPropertyWebkitClipPath: 255 case CSSPropertyWebkitClipPath:
258 return dataEquivalent(a.clipPath(), b.clipPath()); 256 return dataEquivalent(a.clipPath(), b.clipPath());
259 case CSSPropertyWebkitColumnCount: 257 case CSSPropertyWebkitColumnCount:
260 return a.columnCount() == b.columnCount(); 258 return a.columnCount() == b.columnCount();
261 case CSSPropertyWebkitColumnGap: 259 case CSSPropertyWebkitColumnGap:
262 return a.columnGap() == b.columnGap(); 260 return a.columnGap() == b.columnGap();
263 case CSSPropertyWebkitColumnRuleColor: 261 case CSSPropertyWebkitColumnRuleColor:
264 return a.columnRuleColor() == b.columnRuleColor() 262 return a.columnRuleColor() == b.columnRuleColor()
265 && a.visitedLinkColumnRuleColor() == b.visitedLinkColumnRuleColor(); 263 && a.visitedLinkColumnRuleColor() == b.visitedLinkColumnRuleColor();
266 case CSSPropertyWebkitColumnRuleWidth: 264 case CSSPropertyWebkitColumnRuleWidth:
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 return a.svgStyle().ry() == b.svgStyle().ry(); 326 return a.svgStyle().ry() == b.svgStyle().ry();
329 case CSSPropertyZIndex: 327 case CSSPropertyZIndex:
330 return a.zIndex() == b.zIndex(); 328 return a.zIndex() == b.zIndex();
331 default: 329 default:
332 ASSERT_NOT_REACHED(); 330 ASSERT_NOT_REACHED();
333 return true; 331 return true;
334 } 332 }
335 } 333 }
336 334
337 } 335 }
OLDNEW
« no previous file with comments | « Source/core/animation/css/CSSAnimations.cpp ('k') | Source/core/css/CSSComputedStyleDeclaration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698