[webkit-changes] [WebKit/WebKit] fe20f1: Improve rejection test for character-based SVG tex...

Ahmad Saleem noreply at github.com
Fri Sep 29 10:36:32 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fe20f19cb92daa371c6c1f010f0e71e0c084e5b6
      https://github.com/WebKit/WebKit/commit/fe20f19cb92daa371c6c1f010f0e71e0c084e5b6
  Author: Ahmad Saleem <ahmad.saleem792+github at gmail.com>
  Date:   2023-09-29 (Fri, 29 Sep 2023)

  Changed paths:
    M Source/WebCore/rendering/svg/SVGTextQuery.cpp

  Log Message:
  -----------
  Improve rejection test for character-based SVG text queries

https://bugs.webkit.org/show_bug.cgi?id=262373

Reviewed by Chris Dumez.

Partial Merge: https://src.chromium.org/viewvc/blink?view=revision&revision=177148

Perform an intersection of the involved ranges to reject fragments early,
while still avoiding calls to mapStartEndPositionsIntoFragmentCoordinates.
This gives a moderate speed-up - a few percent on test case.

* Source/WebCore/rendering/svg/SVGTextQuery.cpp:
(SVGTextQuery::mapStartEndPositionsIntoFragmentCoordinates):

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




More information about the webkit-changes mailing list