Bug 143748 - textPath layout performance improvement (Part 2)
Summary: textPath layout performance improvement (Part 2)
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-04-14 19:23 PDT by Said Abou-Hallawa
Modified: 2016-01-16 18:05 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Said Abou-Hallawa 2015-04-14 19:23:02 PDT
We could improve textPath layout performance by supporting a new path traversing mode. The new mode should take a vector of lengths and should return a vector of arrow vectors (position and normal angle). The input vector of lengths represents the distance from the beginning of the path to each character should be displayed. The output vector of arrow vectors represents the physical character display points and angles (which are needed for rotating the characters).

This will require changing SVGTextLayoutEngine to calculate the lengths of the characters on the path first and then passing all of them to the path traversal function. Instead of traversing the path for every length, we are going to get the required point and angle from the vector of arrow vectors.
Comment 1 Radar WebKit Bug Importer 2015-04-14 19:24:54 PDT
<rdar://problem/20546814>