DescriptionUse only LayoutText::AbsoluteQuadsForRange() in VisibleUnit::ComputeTextBounds()
There are LayoutText::AbsoluteRectsForRange() and AbsoluteQuadsForRange().
The former collects IntRect and the later collects FloatQuad
through very similar algorithm.
The only difference between two is the former converts from FloatQuad,
which is just the later collects, to IntRect with EnclosingBoundingBox().
Since we collects rects and unify all of them, it is OK to refactor
from "UnifyIntRect(float_quads.Map(f => f.EnclosingBoundingBox()))"
to "UnifyFloatRect(float_quads).EnclosingBoundingBox())".
BUG=
Review-Url: https://codereview.chromium.org/2904433002
Cr-Commit-Position: refs/heads/master@{#473840}
Committed: https://chromium.googlesource.com/chromium/src/+/e9e8ed890a60d669fabdcb3ef3bbafe5eeeb74f3
Patch Set 1 #
Messages
Total messages: 14 (10 generated)
|