Closed Bug 1936189 Opened 8 months ago Closed 4 months ago

skip -moz-subtree-hidden-only-visually checks in content processes

Categories

(Core :: Web Painting, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: tnikkel, Assigned: tnikkel)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

Attachments

(2 files)

No description provided.
Blocks: 1846559

This is a chrome only css property (so it could still be used in a UA sheet that is applied to a content document) that was created solely to tabs/xul decks in a fashion that is more like the rest of css/html. And it still only has that single use in our tree. A UA sheet applying this property to content it doesn't control doesn't seem like it could be very useful.

Even those these checks are simple they are relatively costly because we check them on every frame and when we are traversing the frame tree (for display list building or setting a displayport) we are often memory bound, so pulling in another bit of otherwise cold memory for a rare style struct makes us wait for loading more memory and pushes more useful stuff out of caches. The parent process check remains very quick as verified by profiling.

Pushed by tnikkel@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5f819082a015 Only do -moz-subtree-hidden-only-visually checks in the parent process. r=layout-reviewers,emilio

Backed out for causing reftest failures @ native-theme/470711-1.xhtml

REFTEST TEST-UNEXPECTED-FAIL | layout/reftests/native-theme/470711-1.xhtml == layout/reftests/native-theme/470711-1-ref.xhtml | image comparison, max difference: 200, number of differing pixels: 54
Flags: needinfo?(tnikkel)

Neat, a reftest that loads via a chrome uri that uses a <tabpanels> element with appropriately hidden children.

Whiteboard: [sp3]

There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:tnikkel, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(tnikkel)
Flags: needinfo?(emilio)

seems some tests need to get updated.

Flags: needinfo?(emilio)
Flags: needinfo?(tnikkel)

As it uses chrome features that we only want to support in the parent process.

Pushed by tnikkel@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/43ec74f53548 Move reftest layout/reftests/native-theme/470711-1.xhtml to be a browser chrome test. r=dshin https://hg.mozilla.org/integration/autoland/rev/2a9f68224f6e Only do -moz-subtree-hidden-only-visually checks in the parent process. r=layout-reviewers,emilio
Flags: needinfo?(tnikkel)
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
QA Whiteboard: [qa-triage-done-c140/b139]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: