Bug 22140 - [Transforms] RenderFlow's behavior of accumulating focus rects for child renderers breaks with transforms
Summary: [Transforms] RenderFlow's behavior of accumulating focus rects for child rend...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Macintosh OS X 10.5
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2008-11-08 11:35 PST by Simon Fraser (smfr)
Modified: 2008-11-10 10:55 PST (History)
0 users

See Also:

Testcase (915 bytes, text/html)
2008-11-08 11:38 PST, Simon Fraser (smfr)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2008-11-08 11:35:10 PST
RenderFlow::addFocusRingRects() recurses through its child renderers, accumulating focus rects on the GraphicsContext. This can never work correctly with transforms, since those children may be transformed, and thus will need to draw their part of the focus rects after altering the CTM on the graphics context.

In addition, the localToAbsolute() call for renderers with a layer breaks the focus rects when any parent has a transform.
Comment 1 Simon Fraser (smfr) 2008-11-08 11:38:48 PST
Created attachment 24994 [details]
Comment 2 Simon Fraser (smfr) 2008-11-10 10:55:33 PST
The outline needs to be a bounding path, so we'll have to use beziers or something.