Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 686eb0601bfc18e2476ea13e3af2d424a54e60c4
      
https://github.com/WebKit/WebKit/commit/686eb0601bfc18e2476ea13e3af2d424a54e60c4
  Author: Taher Ali <[email protected]>
  Date:   2026-06-23 (Tue, 23 Jun 2026)

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

  Log Message:
  -----------
  SVGLengthValue::setValueAsString should parse in a single MetaConsumer pass
https://bugs.webkit.org/show_bug.cgi?id=317653
rdar://180414239

Reviewed by Simon Fraser.

setValueAsString() ran two separate MetaConsumer passes over the same token
range: it first tried MetaConsumer<CSS::Number<>>, and on failure reset the
range and tried MetaConsumer<CSS::LengthPercentage<>>.

Replace the two-pass into a single MetaConsumer<CSS::Number<>, 
CSS::LengthPercentage<>>
pass, which tries <number> then <length-percentage> in one walk.

There is now exactly one tokenization and one parse pass instead of up to two.

* Source/WebCore/svg/SVGLengthValue.cpp:
(WebCore::SVGLengthValue::setValueAsString):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to