Open Bug 1460023 Opened 7 years ago Updated 2 years ago

Add a complex-area bit on CompositorHitTestInfo

Categories

(Core :: Web Painting, enhancement, P5)

Other Branch
enhancement

Tracking

()

People

(Reporter: kats, Unassigned)

References

Details

(Whiteboard: [gfx-noted])

Attachments

(1 file)

For hit-testing SVGs in webrender without excessive dispatch-to-content, it would be useful to have a bit on the CompositorHitTestInfo that says "the hit area of this thing is not the same as the bounding rect". This would be set on things like SVG circle elements.
Also, we can probably use this bit instead of the NS_FRAME_SVG_LAYOUT at [1] so that not rectangular SVG frames don't end up as dispatch-to-content unnecessarily in the non-webrender codepath. [1] https://searchfox.org/mozilla-central/rev/f30847c12e5fb13791401ed4330ced3e1b9c8d81/layout/painting/FrameLayerBuilder.cpp#3871
Assignee: nobody → a.beingessner
Attachment #8974164 - Flags: review?(mikokm)
Comment on attachment 8974164 [details] Bug 1460023 - Add Complex Region flag to HitTestInfo. https://reviewboard.mozilla.org/r/242442/#review248374 LGTM, but do a try push before landing. Added miko as well since I'm not sure if this impacts retained display list building or other code paths.
Attachment #8974164 - Flags: review?(bugmail) → review+
Comment on attachment 8974164 [details] Bug 1460023 - Add Complex Region flag to HitTestInfo. Looks like we might not need this after all, it doesn't help as much as we thought it might because the enclosing SVG background item won't be part of the WR blob, and if the first thing we encounter inside the SVG is a complex region then we have to fall back to dispatch-to-content anyway. This will make the resulting stuff ordering-dependent to some extent and hard to reason about. I'll revisit this later, maybe.
Attachment #8974164 - Flags: review?(mikokm)
Attachment #8974164 - Flags: review+
Assignee: a.beingessner → nobody
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: