| 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 "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/layout/style/DataEquivalency.h" | 9 #include "core/layout/style/DataEquivalency.h" |
| 10 #include "core/layout/style/LayoutStyle.h" | 10 #include "core/layout/style/LayoutStyle.h" |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 return a.stopOpacity() == b.stopOpacity(); | 214 return a.stopOpacity() == b.stopOpacity(); |
| 215 case CSSPropertyStroke: { | 215 case CSSPropertyStroke: { |
| 216 const SVGLayoutStyle& aSVG = a.svgStyle(); | 216 const SVGLayoutStyle& aSVG = a.svgStyle(); |
| 217 const SVGLayoutStyle& bSVG = b.svgStyle(); | 217 const SVGLayoutStyle& bSVG = b.svgStyle(); |
| 218 return aSVG.strokePaintType() == bSVG.strokePaintType() | 218 return aSVG.strokePaintType() == bSVG.strokePaintType() |
| 219 && (aSVG.strokePaintType() != SVG_PAINTTYPE_RGBCOLOR || aSVG.strokeP
aintColor() == bSVG.strokePaintColor()) | 219 && (aSVG.strokePaintType() != SVG_PAINTTYPE_RGBCOLOR || aSVG.strokeP
aintColor() == bSVG.strokePaintColor()) |
| 220 && aSVG.visitedLinkStrokePaintType() == bSVG.visitedLinkStrokePaintT
ype() | 220 && aSVG.visitedLinkStrokePaintType() == bSVG.visitedLinkStrokePaintT
ype() |
| 221 && (aSVG.visitedLinkStrokePaintType() != SVG_PAINTTYPE_RGBCOLOR || a
SVG.visitedLinkStrokePaintColor() == bSVG.visitedLinkStrokePaintColor()); | 221 && (aSVG.visitedLinkStrokePaintType() != SVG_PAINTTYPE_RGBCOLOR || a
SVG.visitedLinkStrokePaintColor() == bSVG.visitedLinkStrokePaintColor()); |
| 222 } | 222 } |
| 223 case CSSPropertyStrokeDasharray: | 223 case CSSPropertyStrokeDasharray: |
| 224 return dataEquivalent(a.strokeDashArray(), b.strokeDashArray()); | 224 return a.strokeDashArray() == b.strokeDashArray(); |
| 225 case CSSPropertyStrokeDashoffset: | 225 case CSSPropertyStrokeDashoffset: |
| 226 return a.strokeDashOffset() == b.strokeDashOffset(); | 226 return a.strokeDashOffset() == b.strokeDashOffset(); |
| 227 case CSSPropertyStrokeMiterlimit: | 227 case CSSPropertyStrokeMiterlimit: |
| 228 return a.strokeMiterLimit() == b.strokeMiterLimit(); | 228 return a.strokeMiterLimit() == b.strokeMiterLimit(); |
| 229 case CSSPropertyStrokeOpacity: | 229 case CSSPropertyStrokeOpacity: |
| 230 return a.strokeOpacity() == b.strokeOpacity(); | 230 return a.strokeOpacity() == b.strokeOpacity(); |
| 231 case CSSPropertyStrokeWidth: | 231 case CSSPropertyStrokeWidth: |
| 232 return dataEquivalent(a.strokeWidth(), b.strokeWidth()); | 232 return dataEquivalent(a.strokeWidth(), b.strokeWidth()); |
| 233 case CSSPropertyTextDecorationColor: | 233 case CSSPropertyTextDecorationColor: |
| 234 return a.textDecorationColor() == b.textDecorationColor() | 234 return a.textDecorationColor() == b.textDecorationColor() |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 return a.svgStyle().ry() == b.svgStyle().ry(); | 310 return a.svgStyle().ry() == b.svgStyle().ry(); |
| 311 case CSSPropertyZIndex: | 311 case CSSPropertyZIndex: |
| 312 return a.zIndex() == b.zIndex(); | 312 return a.zIndex() == b.zIndex(); |
| 313 default: | 313 default: |
| 314 ASSERT_NOT_REACHED(); | 314 ASSERT_NOT_REACHED(); |
| 315 return true; | 315 return true; |
| 316 } | 316 } |
| 317 } | 317 } |
| 318 | 318 |
| 319 } | 319 } |
| OLD | NEW |