| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 case CSSPropertyStrokeMiterlimit: | 247 case CSSPropertyStrokeMiterlimit: |
| 248 return a.strokeMiterLimit() == b.strokeMiterLimit(); | 248 return a.strokeMiterLimit() == b.strokeMiterLimit(); |
| 249 case CSSPropertyStrokeOpacity: | 249 case CSSPropertyStrokeOpacity: |
| 250 return a.strokeOpacity() == b.strokeOpacity(); | 250 return a.strokeOpacity() == b.strokeOpacity(); |
| 251 case CSSPropertyStrokeWidth: | 251 case CSSPropertyStrokeWidth: |
| 252 return a.strokeWidth() == b.strokeWidth(); | 252 return a.strokeWidth() == b.strokeWidth(); |
| 253 case CSSPropertyTextDecorationColor: | 253 case CSSPropertyTextDecorationColor: |
| 254 return a.textDecorationColor() == b.textDecorationColor() && | 254 return a.textDecorationColor() == b.textDecorationColor() && |
| 255 a.visitedLinkTextDecorationColor() == | 255 a.visitedLinkTextDecorationColor() == |
| 256 b.visitedLinkTextDecorationColor(); | 256 b.visitedLinkTextDecorationColor(); |
| 257 case CSSPropertyTextDecorationSkip: |
| 258 return a.getTextDecorationSkip() == b.getTextDecorationSkip(); |
| 257 case CSSPropertyTextIndent: | 259 case CSSPropertyTextIndent: |
| 258 return a.textIndent() == b.textIndent(); | 260 return a.textIndent() == b.textIndent(); |
| 259 case CSSPropertyTextShadow: | 261 case CSSPropertyTextShadow: |
| 260 return dataEquivalent(a.textShadow(), b.textShadow()); | 262 return dataEquivalent(a.textShadow(), b.textShadow()); |
| 261 case CSSPropertyTop: | 263 case CSSPropertyTop: |
| 262 return a.top() == b.top(); | 264 return a.top() == b.top(); |
| 263 case CSSPropertyVerticalAlign: | 265 case CSSPropertyVerticalAlign: |
| 264 return a.verticalAlign() == b.verticalAlign() && | 266 return a.verticalAlign() == b.verticalAlign() && |
| 265 (a.verticalAlign() != VerticalAlignLength || | 267 (a.verticalAlign() != VerticalAlignLength || |
| 266 a.getVerticalAlignLength() == b.getVerticalAlignLength()); | 268 a.getVerticalAlignLength() == b.getVerticalAlignLength()); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 case CSSPropertyZIndex: | 363 case CSSPropertyZIndex: |
| 362 return a.hasAutoZIndex() == b.hasAutoZIndex() && | 364 return a.hasAutoZIndex() == b.hasAutoZIndex() && |
| 363 (a.hasAutoZIndex() || a.zIndex() == b.zIndex()); | 365 (a.hasAutoZIndex() || a.zIndex() == b.zIndex()); |
| 364 default: | 366 default: |
| 365 NOTREACHED(); | 367 NOTREACHED(); |
| 366 return true; | 368 return true; |
| 367 } | 369 } |
| 368 } | 370 } |
| 369 | 371 |
| 370 } // namespace blink | 372 } // namespace blink |
| OLD | NEW |