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

Side by Side Diff: Source/core/layout/style/SVGLayoutStyle.cpp

Issue 983103003: Use Length for the stroke-width property in SVGLayoutStyle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: lengthSetterForProperty 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 /* 1 /*
2 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 2004, 2005, 2010 Rob Buis <buis@kde.org> 3 2004, 2005, 2010 Rob Buis <buis@kde.org>
4 Copyright (C) Research In Motion Limited 2010. All rights reserved. 4 Copyright (C) Research In Motion Limited 2010. All rights reserved.
5 5
6 Based on khtml code by: 6 Based on khtml code by:
7 Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) 7 Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
8 Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org) 8 Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org)
9 Copyright (C) 2002-2003 Dirk Mueller (mueller@kde.org) 9 Copyright (C) 2002-2003 Dirk Mueller (mueller@kde.org)
10 Copyright (C) 2002 Apple Computer, Inc. 10 Copyright (C) 2002 Apple Computer, Inc.
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 if (svg_inherited_flags._capStyle != other->svg_inherited_flags._capStyle 168 if (svg_inherited_flags._capStyle != other->svg_inherited_flags._capStyle
169 || svg_inherited_flags._joinStyle != other->svg_inherited_flags._joinSty le) 169 || svg_inherited_flags._joinStyle != other->svg_inherited_flags._joinSty le)
170 return true; 170 return true;
171 171
172 // vector-effect changes require a re-layout. 172 // vector-effect changes require a re-layout.
173 if (svg_noninherited_flags.f._vectorEffect != other->svg_noninherited_flags. f._vectorEffect) 173 if (svg_noninherited_flags.f._vectorEffect != other->svg_noninherited_flags. f._vectorEffect)
174 return true; 174 return true;
175 175
176 // Some stroke properties, requires relayouts, as the cached stroke boundari es need to be recalculated. 176 // Some stroke properties, requires relayouts, as the cached stroke boundari es need to be recalculated.
177 if (stroke.get() != other->stroke.get()) { 177 if (stroke.get() != other->stroke.get()) {
178 if (*stroke->width != *other->stroke->width 178 if (stroke->width != other->stroke->width
179 || stroke->paintType != other->stroke->paintType 179 || stroke->paintType != other->stroke->paintType
180 || stroke->paintColor != other->stroke->paintColor 180 || stroke->paintColor != other->stroke->paintColor
181 || stroke->paintUri != other->stroke->paintUri 181 || stroke->paintUri != other->stroke->paintUri
182 || stroke->miterLimit != other->stroke->miterLimit 182 || stroke->miterLimit != other->stroke->miterLimit
183 || *stroke->dashArray != *other->stroke->dashArray 183 || *stroke->dashArray != *other->stroke->dashArray
184 || stroke->dashOffset != other->stroke->dashOffset 184 || stroke->dashOffset != other->stroke->dashOffset
185 || stroke->visitedLinkPaintColor != other->stroke->visitedLinkPaintC olor 185 || stroke->visitedLinkPaintColor != other->stroke->visitedLinkPaintC olor
186 || stroke->visitedLinkPaintUri != other->stroke->visitedLinkPaintUri 186 || stroke->visitedLinkPaintUri != other->stroke->visitedLinkPaintUri
187 || stroke->visitedLinkPaintType != other->stroke->visitedLinkPaintTy pe) 187 || stroke->visitedLinkPaintType != other->stroke->visitedLinkPaintTy pe)
188 return true; 188 return true;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 } 246 }
247 247
248 EPaintOrderType SVGLayoutStyle::paintOrderType(unsigned index) const 248 EPaintOrderType SVGLayoutStyle::paintOrderType(unsigned index) const
249 { 249 {
250 ASSERT(index < ((1 << kPaintOrderBitwidth)-1)); 250 ASSERT(index < ((1 << kPaintOrderBitwidth)-1));
251 unsigned pt = (paintOrder() >> (kPaintOrderBitwidth*index)) & ((1u << kPaint OrderBitwidth) - 1); 251 unsigned pt = (paintOrder() >> (kPaintOrderBitwidth*index)) & ((1u << kPaint OrderBitwidth) - 1);
252 return (EPaintOrderType)pt; 252 return (EPaintOrderType)pt;
253 } 253 }
254 254
255 } 255 }
OLDNEW
« no previous file with comments | « Source/core/layout/style/SVGLayoutStyle.h ('k') | Source/core/layout/style/SVGLayoutStyleDefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698