Bug 1601486 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

It seems `nsFrame::GetPosition()` doesn't work as I expected for circle SVG element in this case. I thought it will return the values of cx and cy in app units, so perhaps we have to use `nsLayoutUtils::ComputeGeometryBox(aFrame, StyleGeometryBox::FillBox)` to get the correct position of the svg element.
It seems `nsFrame::GetPosition()` doesn't work as I expected for <g> SVG element in this case. I thought it will return the values of cx and cy in app units, so perhaps we have to use `nsLayoutUtils::ComputeGeometryBox(aFrame, StyleGeometryBox::FillBox)` to get the correct position of the svg element.

Back to Bug 1601486 Comment 0