Bug 120903

Summary: ASSERTION FAILED: mode & UseTransforms with a fixed-position <svg>
Product: WebKit Reporter: Vicki Pfau <jeffrey+webkit>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: krit, rhodovan.u-szeged, sabouhallawa, simon.fraser, thorton, zimmermann
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Repro none

Description Vicki Pfau 2013-09-06 15:48:11 PDT
Created attachment 210807 [details]
Repro

An SVG element with position: fixed will trigger an assertion (mode & UseTransforms) in RenderSVGRoot::mapLocalToContainer(const WebCore::RenderLayerModelObject *, WebCore::TransformState &, MapCoordinatesFlags, bool *) const when running a debug build. A simple repro is attached.

<rdar://problem/14703176>
Comment 1 Tim Horton 2013-09-06 16:05:37 PDT
IIRC we (Simon and I) decided that the assertion didn’t actually make any sense, but I don’t remember all the logic at the moment.
Comment 2 Dirk Schulze 2013-09-07 01:18:17 PDT
(In reply to comment #1)
> IIRC we (Simon and I) decided that the assertion didn’t actually make any sense, but I don’t remember all the logic at the moment.

Hm, I agree. It makes sense for inner SVG elements but not for outer SVG elements (SVGRoot is always the outer SVG element). Looks like the assertion is wrong here.

Just a question for understanding. The comment assumes that the mode (isFixed) comes from the content. I would assume that the mode is from the current renderer. Which is true? If it is the latter, we can remove the assertion.
Comment 3 Vicki Pfau 2013-10-08 13:22:40 PDT
*** Bug 117925 has been marked as a duplicate of this bug. ***
Comment 4 Said Abou-Hallawa 2017-02-08 10:30:27 PST

*** This bug has been marked as a duplicate of bug 31278 ***