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

Unified Diff: Source/core/svg/SVGPathSegList.cpp

Issue 456763002: Get rid of SVGPathSegRole (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/svg/SVGPathSegList.h ('k') | Source/core/svg/SVGPathSegListBuilder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGPathSegList.cpp
diff --git a/Source/core/svg/SVGPathSegList.cpp b/Source/core/svg/SVGPathSegList.cpp
index 76cb62b302e63863a5cb276407bedfeffd0d812f..925c43ee08cc1f075ee3653810780adf50418414 100644
--- a/Source/core/svg/SVGPathSegList.cpp
+++ b/Source/core/svg/SVGPathSegList.cpp
@@ -37,17 +37,15 @@
namespace blink {
-SVGPathSegList::SVGPathSegList(SVGPathElement* contextElement, SVGPathSegRole role)
+SVGPathSegList::SVGPathSegList(SVGPathElement* contextElement)
: m_contextElement(contextElement)
- , m_role(role)
, m_listSyncedToByteStream(true)
{
ASSERT(contextElement);
}
-SVGPathSegList::SVGPathSegList(SVGPathElement* contextElement, SVGPathSegRole role, PassOwnPtr<SVGPathByteStream> byteStream)
+SVGPathSegList::SVGPathSegList(SVGPathElement* contextElement, PassOwnPtr<SVGPathByteStream> byteStream)
: m_contextElement(contextElement)
- , m_role(role)
, m_byteStream(byteStream)
, m_listSyncedToByteStream(true)
{
@@ -60,7 +58,7 @@ SVGPathSegList::~SVGPathSegList()
PassRefPtr<SVGPathSegList> SVGPathSegList::clone()
{
- RefPtr<SVGPathSegList> svgPathSegList = adoptRef(new SVGPathSegList(m_contextElement, m_role, byteStream()->copy()));
+ RefPtr<SVGPathSegList> svgPathSegList = adoptRef(new SVGPathSegList(m_contextElement, byteStream()->copy()));
svgPathSegList->invalidateList();
return svgPathSegList.release();
}
@@ -104,7 +102,6 @@ void SVGPathSegList::updateListFromByteStream()
SVGPathSegListBuilder builder;
builder.setCurrentSVGPathElement(m_contextElement);
builder.setCurrentSVGPathSegList(this);
- builder.setCurrentSVGPathSegRole(PathSegUnalteredRole);
SVGPathByteStreamSource source(m_byteStream.get());
« no previous file with comments | « Source/core/svg/SVGPathSegList.h ('k') | Source/core/svg/SVGPathSegListBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698