| 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 "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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |