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

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

Issue 2578403002: Changed EVerticalAlign to an enum class and renamed its members (Closed)
Patch Set: Created 4 years 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 case CSSPropertyTextDecorationSkip: 261 case CSSPropertyTextDecorationSkip:
262 return a.getTextDecorationSkip() == b.getTextDecorationSkip(); 262 return a.getTextDecorationSkip() == b.getTextDecorationSkip();
263 case CSSPropertyTextIndent: 263 case CSSPropertyTextIndent:
264 return a.textIndent() == b.textIndent(); 264 return a.textIndent() == b.textIndent();
265 case CSSPropertyTextShadow: 265 case CSSPropertyTextShadow:
266 return dataEquivalent(a.textShadow(), b.textShadow()); 266 return dataEquivalent(a.textShadow(), b.textShadow());
267 case CSSPropertyTop: 267 case CSSPropertyTop:
268 return a.top() == b.top(); 268 return a.top() == b.top();
269 case CSSPropertyVerticalAlign: 269 case CSSPropertyVerticalAlign:
270 return a.verticalAlign() == b.verticalAlign() && 270 return a.verticalAlign() == b.verticalAlign() &&
271 (a.verticalAlign() != VerticalAlignLength || 271 (a.verticalAlign() != EVerticalAlign::Length ||
272 a.getVerticalAlignLength() == b.getVerticalAlignLength()); 272 a.getVerticalAlignLength() == b.getVerticalAlignLength());
273 case CSSPropertyVisibility: 273 case CSSPropertyVisibility:
274 return a.visibility() == b.visibility(); 274 return a.visibility() == b.visibility();
275 case CSSPropertyWebkitBorderHorizontalSpacing: 275 case CSSPropertyWebkitBorderHorizontalSpacing:
276 return a.horizontalBorderSpacing() == b.horizontalBorderSpacing(); 276 return a.horizontalBorderSpacing() == b.horizontalBorderSpacing();
277 case CSSPropertyWebkitBorderVerticalSpacing: 277 case CSSPropertyWebkitBorderVerticalSpacing:
278 return a.verticalBorderSpacing() == b.verticalBorderSpacing(); 278 return a.verticalBorderSpacing() == b.verticalBorderSpacing();
279 case CSSPropertyClipPath: 279 case CSSPropertyClipPath:
280 return dataEquivalent(a.clipPath(), b.clipPath()); 280 return dataEquivalent(a.clipPath(), b.clipPath());
281 case CSSPropertyColumnCount: 281 case CSSPropertyColumnCount:
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 case CSSPropertyZIndex: 367 case CSSPropertyZIndex:
368 return a.hasAutoZIndex() == b.hasAutoZIndex() && 368 return a.hasAutoZIndex() == b.hasAutoZIndex() &&
369 (a.hasAutoZIndex() || a.zIndex() == b.zIndex()); 369 (a.hasAutoZIndex() || a.zIndex() == b.zIndex());
370 default: 370 default:
371 NOTREACHED(); 371 NOTREACHED();
372 return true; 372 return true;
373 } 373 }
374 } 374 }
375 375
376 } // namespace blink 376 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698