DescriptionAvoiding losing too much precision when hit-testing SVG <text>
Using flooredIntPoint() will lose all fractional precision - which is
too much considering that the location is actually at least a
LayoutPoint.
Use the HitTestLocation(const FloatPoint&) constructor instead - which does flooredLayoutPoint() behind scenes but also retains the FloatPoint.
Do the same for LayoutSVGForeignObject, since it has similar requirements.
BUG=466617
Committed: https://crrev.com/a8807dbd794e4c18199c569b453ffd1943257642
Cr-Commit-Position: refs/heads/master@{#380144}
Patch Set 1 #Patch Set 2 : Add -expected.txt #Patch Set 3 : Use HitTestLocation(const FloatPoint&) #
Dependent Patchsets: Messages
Total messages: 10 (5 generated)
|