Chromium Code Reviews
DescriptionRestore optimization in LayoutBlockFlowLine width computation
The LayoutText::computeCanUseSimpleFontCodePath method determine whether
the wordMeasurement cache is sufficient to satisfy width computations in
LayoutBlockFlowLine, in addition to the more obvious role of controlling
which text code path to use. By short-circuiting the text path selection
this inadvertently disabled the wordMeasurement text cache optimization.
This change removes the short circuit and restores the previous behavior
where this optimization is decoupled from the text path selection logic.
Given its dual function the canUseSimpleFontCodePath name is missleading
and I intend to rename it in a subsequent change.
BUG=545147
R=drott@chromium.org
Committed: https://chromium.googlesource.com/chromium/src/+/f86d2d35e903274237f7df803b805bdf8949c4e4
Patch Set 1 #Patch Set 2 : w/TestExpectations #
Messages
Total messages: 7 (3 generated)
|
||||||||||||||||||||||||||||