Open
Bug 1460023
Opened 7 years ago
Updated 2 years ago
Add a complex-area bit on CompositorHitTestInfo
Categories
(Core :: Web Painting, enhancement, P5)
Tracking
()
NEW
People
(Reporter: kats, Unassigned)
References
Details
(Whiteboard: [gfx-noted])
Attachments
(1 file)
|
59 bytes,
text/x-review-board-request
|
Details |
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.
| Reporter | ||
Comment 1•7 years ago
|
||
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
Updated•7 years ago
|
Assignee: nobody → a.beingessner
| Comment hidden (mozreview-request) |
| Reporter | ||
Updated•7 years ago
|
Attachment #8974164 -
Flags: review?(mikokm)
| Reporter | ||
Comment 3•7 years ago
|
||
| mozreview-review | ||
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+
| Reporter | ||
Comment 4•7 years ago
|
||
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+
Updated•7 years ago
|
Assignee: a.beingessner → nobody
Updated•7 years ago
|
Priority: -- → P5
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•