Closed Bug 1108052 Opened 10 years ago Closed 8 years ago

Remove event regions display items that are not needed

Categories

(Core :: Layout, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox48 --- fixed
firefox49 --- fixed

People

(Reporter: kats, Assigned: kats)

References

(Blocks 2 open bugs)

Details

(Keywords: perf)

Attachments

(1 file, 1 obsolete file)

There are some cases where we end up creating nsDisplayLayerEventRegions display items with no actual hit regions. We should discard these (or not create them to begin with). Sometimes I see scrollbar frames also seem to create event regions with z=2147483647 and no actual hit region.
Blocks: 1106440
No longer blocks: 928833
No longer blocks: 1106440
Assignee: nobody → bugmail.mozilla
Attached patch Patch (obsolete) (deleted) — Splinter Review
Attachment #8759250 - Flags: review?(tnikkel)
Attachment #8759250 - Flags: review?(tnikkel) → review+
Comment on attachment 8759250 [details] [diff] [review]
Patch

I updated the patch per Matt and tn's comments. I left the deletion in the ProcessDisplayItems as well because there might be other empty event regions that sneak through from [1] or [2] and even though they won't have wrapper items like nsDisplayTransform it's still good to eliminate them. Try push at [3]

[1] http://mxr.mozilla.org/mozilla-central/source/layout/generic/nsFrame.cpp?rev=bd393975aadd#2843
[2] http://mxr.mozilla.org/mozilla-central/source/layout/generic/nsFrame.cpp?rev=bd393975aadd#2850
[3] https://treeherder.mozilla.org/#/jobs?repo=try&revision=222e62d6fd09
Attachment #8759250 - Attachment is obsolete: true
Comment on attachment 8759678 [details]
Bug 1108052 - Remove empty event regions display items because they only slow things down and can add extraneous layers.

https://reviewboard.mozilla.org/r/57586/#review54382
Attachment #8759678 - Flags: review?(mstange) → review+
Pushed by kgupta@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e2b1014ab075
Remove empty event regions display items because they only slow things down and can add extraneous layers. r=mstange
https://hg.mozilla.org/mozilla-central/rev/e2b1014ab075
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
Comment on attachment 8759678 [details]
Bug 1108052 - Remove empty event regions display items because they only slow things down and can add extraneous layers.

Approval Request Comment
[Feature/regressing bug #]: APZ
[User impact if declined]: some animations might be slower than without APZ if they have a lot of visibility:hidden items that get layerized.
[Describe test coverage new/current, TreeHerder]: no automated tests, but see bug 1276713 for how this was uncovered
[Risks and why]: low risk, fairly straightforward optimization
[String/UUID change made/needed]: none
Attachment #8759678 - Flags: approval-mozilla-beta?
Comment on attachment 8759678 [details]
Bug 1108052 - Remove empty event regions display items because they only slow things down and can add extraneous layers.

ok, as it improves the perfs, let's take it. Should be in 48 beta 2
Attachment #8759678 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: