-
oliver authored
LayoutTests: Reviewed by Sam. Layout test for http://bugs.webkit.org/show_bug.cgi?id=13789 * svg/custom/getscreenctm-in-mixed-content-expected.checksum: Added. * svg/custom/getscreenctm-in-mixed-content-expected.png: Added. * svg/custom/getscreenctm-in-mixed-content-expected.txt: Added. * svg/custom/getscreenctm-in-mixed-content.xhtml: Added. WebCore: Reviewed by Sam. Fix for http://bugs.webkit.org/show_bug.cgi?id=13789 -- SVGLocatable::getScreenCTM() faulty Needed to update SVGLength to handle the case where the SVGElement is not the root document element -- we do this by falling back on the renderer for the context. For <svg> elements embedded as mixed content in xhtml we consider the absolutePosition of the parent to be the origin for the <svg> element. * ksvg2/svg/SVGLength.cpp: (WebCore::SVGLength::PercentageOfViewport): * ksvg2/svg/SVGSVGElement.cpp: (WebCore::SVGSVGElement::getScreenCTM): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21636 268f45cc-cd09-0410-ab3c-d52691b4dbfc
7fa2f31b