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

Side by Side Diff: Source/core/rendering/style/SVGRenderStyle.cpp

Issue 14907011: Support 'paint-order' from SVG2. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: codereview fixes Created 7 years, 6 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
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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 220
221 if (svg_noninherited_flags.f.bufferedRendering != other->svg_noninherited_fl ags.f.bufferedRendering) 221 if (svg_noninherited_flags.f.bufferedRendering != other->svg_noninherited_fl ags.f.bufferedRendering)
222 return StyleDifferenceRepaint; 222 return StyleDifferenceRepaint;
223 223
224 if (svg_noninherited_flags.f.maskType != other->svg_noninherited_flags.f.mas kType) 224 if (svg_noninherited_flags.f.maskType != other->svg_noninherited_flags.f.mas kType)
225 return StyleDifferenceRepaint; 225 return StyleDifferenceRepaint;
226 226
227 return StyleDifferenceEqual; 227 return StyleDifferenceEqual;
228 } 228 }
229 229
230 EPaintOrderType SVGRenderStyle::paintOrderType(unsigned index) const
231 {
232 ASSERT(index < 3);
pdr. 2013/06/25 15:30:45 Can you turn this 3 into a constant? I worry that
233 unsigned pt = (paintOrder() >> (kPaintOrderBitwidth*index)) & ((1u << kPaint OrderBitwidth) - 1);
234 return (EPaintOrderType)pt;
230 } 235 }
236
237 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698