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

Side by Side Diff: Source/core/svg/SVGPathSegList.cpp

Issue 19914002: Use toSVGPathElement() instead of static_cast<> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 22 matching lines...) Expand all
33 String SVGPathSegList::valueAsString() const 33 String SVGPathSegList::valueAsString() const
34 { 34 {
35 String pathString; 35 String pathString;
36 buildStringFromSVGPathSegList(*this, pathString, UnalteredParsing); 36 buildStringFromSVGPathSegList(*this, pathString, UnalteredParsing);
37 return pathString; 37 return pathString;
38 } 38 }
39 39
40 void SVGPathSegList::commitChange(SVGElement* contextElement, ListModification l istModification) 40 void SVGPathSegList::commitChange(SVGElement* contextElement, ListModification l istModification)
41 { 41 {
42 ASSERT(contextElement); 42 ASSERT(contextElement);
43 ASSERT(contextElement->hasTagName(SVGNames::pathTag)); 43 ASSERT(contextElement->hasTagName(SVGNames::pathTag));
tkent 2013/07/21 20:50:30 Ditto.
44 static_cast<SVGPathElement*>(contextElement)->pathSegListChanged(m_role, lis tModification); 44 toSVGPathElement(contextElement)->pathSegListChanged(m_role, listModificatio n);
45 } 45 }
46 46
47 } 47 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698