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

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

Issue 962763003: Use Length for the stroke-dashoffset property in SVGLayoutStyle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make font-size explicit. Created 5 years, 9 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 | Annotate | Revision Log
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/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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 dataEquivalent(a.strokeDashArray(), b.strokeDashArray());
225 case CSSPropertyStrokeDashoffset: 225 case CSSPropertyStrokeDashoffset:
226 return dataEquivalent(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()
235 && a.visitedLinkTextDecorationColor() == b.visitedLinkTextDecoration Color(); 235 && a.visitedLinkTextDecorationColor() == b.visitedLinkTextDecoration Color();
236 case CSSPropertyTextIndent: 236 case CSSPropertyTextIndent:
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « Source/core/animation/css/CSSAnimatableValueFactory.cpp ('k') | Source/core/css/CSSProperties.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698