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

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

Issue 1007843002: [svg] 'keyTimes' values should allow surrounding whitespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/svg/animations/script-tests/animate-keySplines.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGAnimationElement.cpp
diff --git a/Source/core/svg/SVGAnimationElement.cpp b/Source/core/svg/SVGAnimationElement.cpp
index 4ad18b8adaadbd493cdfd1726e259a560a818e8a..e0ad7e853f3a8f22e88d779fbc62a94da74a9b8c 100644
--- a/Source/core/svg/SVGAnimationElement.cpp
+++ b/Source/core/svg/SVGAnimationElement.cpp
@@ -84,7 +84,7 @@ static bool parseKeyTimes(const String& string, Vector<float>& result, bool veri
Vector<String> parseList;
string.split(';', true, parseList);
for (unsigned n = 0; n < parseList.size(); ++n) {
- String timeString = parseList[n];
+ String timeString = parseList[n].stripWhiteSpace();
bool ok;
float time = timeString.toFloat(&ok);
if (!ok || time < 0 || time > 1)
« no previous file with comments | « LayoutTests/svg/animations/script-tests/animate-keySplines.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698