Fix a bounding box inconsistency in DOMSnapshot.getSnapshot.
Element.BoundsInViewport was applying a viewport transformation that layout_object->AbsoluteBoundingBoxRect was not. This lead to weird inconsistencies in the LayoutTreeNode boundingBox output, such as text in a div with a boundingBox that was completely outside the div's boundingBox. This fix just skips calling BoundsInViewport and instead goes down the AbsoluteBoundingBoxRect path for every node. Bug: Change-Id: I60f7c166658530ee6b57489c1c81fab21ea038fb Reviewed-on: https://chromium-review.googlesource.com/736713 Commit-Queue: Zoe Clifford <zoeclifford@chromium.org> Reviewed-by:Pavel Feldman <pfeldman@chromium.org> Reviewed-by:
Eric Seckler <eseckler@chromium.org> Cr-Commit-Position: refs/heads/master@{#512885}
Showing
Please register or sign in to comment