Reviewed by Simon Fraser.
Fix computeContainerBoundingBox to respect viewport translations https://bugs.webkit.org/show_bug.cgi?id=25254 Previously computeContainerBoundingBox was just adding the viewportTranslation. Which, although it has a confusing name, only contains the scale and translation for the viewBox/preserveAspectRatio adjustment. It does not contain the translation for the x/y offset of the viewport. localToParentTransform() does contain this offset, so we use that instead of the previous hacky code. * rendering/RenderSVGContainer.h: * rendering/RenderSVGViewportContainer.h: * rendering/SVGRenderSupport.cpp: (WebCore::computeContainerBoundingBox): git-svn-id: svn://svn.chromium.org/blink/trunk@42599 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment