RESOLVED FIXED 46964
Add SVGTextMetrics/SVGTextFragment/SVGTextChunk primitives used by the new layout engine
https://bugs.webkit.org/show_bug.cgi?id=46964
Summary Add SVGTextMetrics/SVGTextFragment/SVGTextChunk primitives used by the new la...
Nikolas Zimmermann
Reported 2010-10-01 00:41:37 PDT
SVGTextMetrics encapsulates measuring text. SVGTextFragment represents a portion of text that can be rendered/measured in one shot. (RenderSVGInlineTextBox contains N text boxes, which in turn can contain M fragments) SVGTextChunk describes a set of fragments, which have to be treated as "one single text" in terms of measuring (used to process text-anchor & textLength corrections on line-layouted text, not for path layouts).
Attachments
Patch (27.04 KB, patch)
2010-10-01 00:49 PDT, Nikolas Zimmermann
no flags
Patch v2 (26.25 KB, patch)
2010-10-01 01:03 PDT, Nikolas Zimmermann
no flags
Patch v3 (28.80 KB, patch)
2010-10-01 01:32 PDT, Nikolas Zimmermann
krit: review+
Nikolas Zimmermann
Comment 1 2010-10-01 00:49:44 PDT
WebKit Review Bot
Comment 2 2010-10-01 00:56:46 PDT
Eric Seidel (no email)
Comment 3 2010-10-01 00:57:41 PDT
Early Warning System Bot
Comment 4 2010-10-01 00:58:31 PDT
WebKit Review Bot
Comment 5 2010-10-01 01:01:28 PDT
Nikolas Zimmermann
Comment 6 2010-10-01 01:03:36 PDT
Created attachment 69432 [details] Patch v2 Renamed SVGTextChunk to SVGTextChunkNew, to avoid clashes with the SVGTextChunk class that still lives in SVGTextChunkLayoutInfo.h (which will be removed alltogether, once the new engine lands);
WebKit Review Bot
Comment 7 2010-10-01 01:09:07 PDT
Attachment 69432 [details] did not pass style-queue: Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1 WebCore/rendering/svg/SVGTextChunk.cpp:47: Tab found; better to use spaces [whitespace/tab] [1] Total errors found: 1 in 13 files If any of these errors are false positives, please file a bug against check-webkit-style.
Eric Seidel (no email)
Comment 8 2010-10-01 01:11:07 PDT
Nikolas Zimmermann
Comment 9 2010-10-01 01:32:04 PDT
Created attachment 69434 [details] Patch v3 Fix style issue, mac build problem and write a much more explicit ChangeLog, as requested by Dirk.
Dirk Schulze
Comment 10 2010-10-01 02:07:58 PDT
Comment on attachment 69434 [details] Patch v3 LGTM. We already discussed some changes on IRC (can be seen by comparing the different patches). Niko has the next patch ready, that moves some files, so that we can fix the FIXMEs. r=me
Nikolas Zimmermann
Comment 11 2010-10-01 02:14:14 PDT
Landed in r68873.
Note You need to log in before you can comment on or make changes to this bug.