Closed Bug 1276888 Opened 8 years ago Closed 8 years ago

Optimize out some refcounting in TreeMatchContext::TreeMatchContext

Categories

(Core :: CSS Parsing and Computation, defect)

36 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox49 --- fixed

People

(Reporter: smaug, Assigned: smaug)

Details

Attachments

(1 file)

The docshell refcounting shows up in the performance profiles, and there is no need to do any of it.
Attached patch patchSplinter Review
You may want to take a look at nsDocument.cpp to see how GetContainer() and GetLoadContext() are implemented.
Attachment #8758210 - Flags: review?(amarchesini)
Attachment #8758210 - Flags: review?(amarchesini) → review+
Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/4297f62060dc
Optimize out some refcounting in TreeMatchContext::TreeMatchContext, r=baku
https://hg.mozilla.org/mozilla-central/rev/4297f62060dc
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: