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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGPath.cpp

Issue 1476283002: Drop PathParsingMode argument to buildStringFromByteStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 m_cachedPath.clear(); 115 m_cachedPath.clear();
116 } 116 }
117 117
118 const SVGPathByteStream& SVGPath::byteStream() const 118 const SVGPathByteStream& SVGPath::byteStream() const
119 { 119 {
120 return const_cast<SVGPath*>(this)->ensureByteStream(); 120 return const_cast<SVGPath*>(this)->ensureByteStream();
121 } 121 }
122 122
123 String SVGPath::valueAsString() const 123 String SVGPath::valueAsString() const
124 { 124 {
125 return buildStringFromByteStream(byteStream(), UnalteredParsing); 125 return buildStringFromByteStream(byteStream());
davve 2015/11/27 09:45:57 Does this mean you may drop #include "core/svg/SVG
fs 2015/11/27 11:38:53 Yepp. Done.
126 } 126 }
127 127
128 void SVGPath::setValueAsString(const String& string, ExceptionState& exceptionSt ate) 128 void SVGPath::setValueAsString(const String& string, ExceptionState& exceptionSt ate)
129 { 129 {
130 if (!buildByteStreamFromString(string, ensureByteStream())) 130 if (!buildByteStreamFromString(string, ensureByteStream()))
131 exceptionState.throwDOMException(SyntaxError, "Problem parsing path \"" + string + "\""); 131 exceptionState.throwDOMException(SyntaxError, "Problem parsing path \"" + string + "\"");
132 byteStreamChanged(); 132 byteStreamChanged();
133 } 133 }
134 134
135 void SVGPath::setValueAsByteStream(PassOwnPtr<SVGPathByteStream> byteStream) 135 void SVGPath::setValueAsByteStream(PassOwnPtr<SVGPathByteStream> byteStream)
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 setValueAsByteStream(newStream.release()); 195 setValueAsByteStream(newStream.release());
196 } 196 }
197 197
198 float SVGPath::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> to, SVG Element*) 198 float SVGPath::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> to, SVG Element*)
199 { 199 {
200 // FIXME: Support paced animations. 200 // FIXME: Support paced animations.
201 return -1; 201 return -1;
202 } 202 }
203 203
204 } 204 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698