Restore 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
[email protected]
Review URL: https://codereview.chromium.org/1420503004 .
Cr-Commit-Position: refs/heads/master@{#355074}
2 files changed