Commit b1f88a5e authored by Fredrik Söderqvist's avatar Fredrik Söderqvist Committed by Chromium LUCI CQ

Drop redundant check in SkipOptionalSVGSpacesOrDelimiter

SkipOptionalSVGSpaces() returns true if this condition (ptr < end) is
true, so we don't need to check it again.

Change-Id: I9bfe1b34758419aba95875430bb1cc6099a21320
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2642784
Commit-Queue: Stephen Chenney <schenney@chromium.org>
Auto-Submit: Fredrik Söderquist <fs@opera.com>
Reviewed-by: default avatarStephen Chenney <schenney@chromium.org>
Cr-Commit-Position: refs/heads/master@{#846104}
parent 1c4e2be8
...@@ -60,7 +60,7 @@ inline bool SkipOptionalSVGSpacesOrDelimiter(const CharType*& ptr, ...@@ -60,7 +60,7 @@ inline bool SkipOptionalSVGSpacesOrDelimiter(const CharType*& ptr,
if (ptr < end && !IsHTMLSpace<CharType>(*ptr) && *ptr != delimiter) if (ptr < end && !IsHTMLSpace<CharType>(*ptr) && *ptr != delimiter)
return false; return false;
if (SkipOptionalSVGSpaces(ptr, end)) { if (SkipOptionalSVGSpaces(ptr, end)) {
if (ptr < end && *ptr == delimiter) { if (*ptr == delimiter) {
ptr++; ptr++;
SkipOptionalSVGSpaces(ptr, end); SkipOptionalSVGSpaces(ptr, end);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment