DescriptionReland "Let SVGForeignObject's local SVG coordinates mean what it should" (patchset #2 id:20001 of https://codereview.chromium.org/2767343003/ )
Fix wrong direction of mapping in LayoutSVGBlock::mapAncestorToLocal().
> Revert: "Let SVGForeignObject's local SVG coordinates mean what it should"
>
> This patch caused a hit testing regression with foreign objects. While
> the fix is not hard, we are going to roll out as a precaution (and merge
> to stable).
>
> This is a manual revert of https://crrev.com/f451d9b5de5a1b4691d60d8c74341ac8a466cf57
> (commit number #435337) due to revert conflicts.
>
> BUG=704643
>
> Review-Url: https://codereview.chromium.org/2767343003
> Cr-Commit-Position: refs/heads/master@{#459330}
> Committed: https://chromium.googlesource.com/chromium/src/+/0cfb512a4ae94e681bd10a15d93abd740f330e3e
> Original issue's description:
>> Let SVGForeignObject's local SVG coordinates mean what it should
>>
>> We define "local SVG coordinates" as the space where SVG local transform
>> etc. apply. With this definition, SVGForeignObject's localSVGTransform
>> and localToSVGParentTransform should be the same which should both
>> transform from local SVG coordinates instead of local HTML coordinates
>> to parent SVG coordinates, and visualRectInLocalSVGCoordinates() should
>> return the visual rect in local SVG coordinates instead of local HTML
>> coordinates.
>>
>> With the above coordinates fixed, LayoutSVGBlock becomes the same for
>> LayoutSVGText and LayoutSVGForeignObject regarding to SVG/HTML
>> coordinates: SVG coordinates = HTML coordinates + location() (though
>> location() is always zero for LayoutSVGText after
>> https://codereview.chromium.org/2531943002/). The HTML coordinate
>> mapping methods should also map between the HTML and SVG coordinates.
>>
>> Review-Url: https://codereview.chromium.org/2536493002
>> Cr-Commit-Position: refs/heads/master@{#435337}
BUG=704643, 666416
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Review-Url: https://codereview.chromium.org/2778873002
Cr-Commit-Position: refs/heads/master@{#460209}
Committed: https://chromium.googlesource.com/chromium/src/+/09a6cd640fb5bf07aa06477362229c2e6969a718
Patch Set 1 #Patch Set 2 : Fix #
Total comments: 1
Messages
Total messages: 18 (13 generated)
|