Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 408eb97e5359ee563b0bb4817598d967e75c394b
      
https://github.com/WebKit/WebKit/commit/408eb97e5359ee563b0bb4817598d967e75c394b
  Author: Ahmad Saleem <[email protected]>
  Date:   2025-03-23 (Sun, 23 Mar 2025)

  Changed paths:
    M Source/WebCore/svg/SVGParserUtilities.cpp

  Log Message:
  -----------
  Remove redundant emptiness check from genericParseNumber
https://bugs.webkit.org/show_bug.cgi?id=285184
rdar://142083712

Reviewed by Darin Adler.

Merge: 
https://source.chromium.org/chromium/chromium/src/+/ab685d36561909a7ef373183f37fc3d6fc21bb83

When the 'start = buffer.position()' condition was reached we could be sure 
that we
had already consumed at least one character - one of '.' or '0'-'9' or
whitespace (potentially also '+'/'-' as a prefix) - and that even holds
true moving the definition of |start| after consuming any leading
whitespace. The reason for this is the up-front check for any character
in the set '0'-'9' or '.'.
Remove the redundant checks - replacing them with an assert - while
moving the definition of 'start' so that it doesn't point before any
leading whitespace.

* Source/WebCore/svg/SVGParserUtilities.cpp:
(WebCore::genericParseNumber):

Canonical link: https://commits.webkit.org/292567@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to