Chromium Code Reviews
DescriptionCleanup SVGTextMetricsBuilder::measureTextLayoutObject
When working on SVGTextMetricsBuilder::measureTextLayoutObject I found
the MeasureTextData struct to be confusing because it is used for two
separate tasks. This patch is an attempt to separate attribute updating
from the text walk itself.
MeasureTextData has been split into two structs:
1) TreeWalkTextState
2) UpdateAttributes (optional)
Previously, attribute updating was gated on either "processLayoutObject"
or "data->allCharactersMap". This patch refactors both of these behind
an optional "UpdateAttributes" parameter.
Additionally, measureTextLayoutObject has been renamed walkInlineText
because measurement is only needed when updating attributes, otherwise
the walk is just used to update the tree walk text state.
Committed: https://crrev.com/1d6273f7b3bb80fa457e5b8dd682dba90bae5241
Cr-Commit-Position: refs/heads/master@{#382382}
Patch Set 1 #
Total comments: 6
Patch Set 2 : Update per reviewer comments #Messages
Total messages: 14 (6 generated)
|