Skip to content

Commit 56bcdb9

Browse files
Ahmad-S792Ahmad Saleem
authored andcommitted
Drop redundant check in skipOptionalSVGSpacesOrDelimiter
https://bugs.webkit.org/show_bug.cgi?id=263272 Reviewed by Simon Fraser. Merge: https://chromium-review.googlesource.com/c/chromium/src/+/2642784 skipOptionalSVGSpaces() returns true if this condition (m_position < m_end) is true, so we don't need to check it again. * Source/WebCore/svg/SVGParserUtilities.h: (skipOptionalSVGSpacesOrDelimiter): Canonical link: https://commits.webkit.org/269478@main
1 parent f0939c5 commit 56bcdb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/WebCore/svg/SVGParserUtilities.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ template<typename CharacterType> constexpr bool skipOptionalSVGSpacesOrDelimiter
9898
if (characters.hasCharactersRemaining() && !isSVGSpace(*characters) && *characters != delimiter)
9999
return false;
100100
if (skipOptionalSVGSpaces(characters)) {
101-
if (characters.hasCharactersRemaining() && *characters == delimiter) {
101+
if (*characters == delimiter) {
102102
characters++;
103103
skipOptionalSVGSpaces(characters);
104104
}

0 commit comments

Comments
 (0)