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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp

Issue 2007823002: Fix whitespace handling in parseSimpleTransformList (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: only transform tests for now. Created 4 years, 7 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
Index: third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp b/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp
index 33a29e13cf63751eac303eef181606efce2df827..2fc2a0c8185e4acd717d354e62ad42e334ca5684 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp
@@ -993,16 +993,14 @@ static CSSValueList* parseSimpleTransformList(CharType*& pos, CharType* end)
while (pos < end) {
while (pos < end && isCSSSpace(*pos))
++pos;
+ if (pos >= end)
+ break;
CSSFunctionValue* transformValue = parseSimpleTransformValue(pos, end);
if (!transformValue)
return nullptr;
if (!transformList)
transformList = CSSValueList::createSpaceSeparated();
transformList->append(transformValue);
- if (pos < end) {
- if (isCSSSpace(*pos))
- return nullptr;
- }
}
return transformList;
}

Powered by Google App Engine
This is Rietveld 408576698