Closed Bug 1631644 Opened 4 years ago Closed 4 years ago

Add Element::HasGridFragments() for use in the devtools

Categories

(DevTools :: Inspector, enhancement, P3)

enhancement

Tracking

(firefox77 fixed)

RESOLVED FIXED
Firefox 77
Tracking Status
firefox77 --- fixed

People

(Reporter: alaskanemily, Assigned: alaskanemily)

Details

Attachments

(1 file)

Several places in the devtools getGridFragments() is called only to test if there are any fragments, not to actually examine them. We can add a cheaper function which just tests for the existence of fragments and change these locations to use it.

This will be cheaper than calling Element::GetGridFragments as it will not need to construct an entire array of results.

This is cheaper than calling Element::GetGridFragments as it does not need to
to construct an entire array of results. Most uses of GetGridFragments in the
devtools are only testing for the existence of grid fragments, and can be
changed to this cheaper method instead.

Your patch failed to land due to this error. :[:alaskanemily] can you please take a look and make the necessary modifications?

remote: ******************************* ERROR *******************************
remote: Changeset 26fbd977710d alters WebIDL file(s) without DOM peer review:
remote: dom/webidl/Element.webidl
remote:
remote: Please, request review from the #webidl reviewer group or either:
remote: - Andrea Marchesini (:baku)
remote: - Andreas Farre (:farre)
remote: - Andrew McCreight (:mccr8)
remote: - Bobby Holley (:bholley)
remote: - Ehsan Akhgari (:ehsan)
remote: - Emilio Cobos (:emilio)
remote: - Henri Sivonen (:hsivonen)
remote: - Nika Layzell (:mystor)
remote: - Olli Pettay (:smaug)
remote: - Peter Van der Beken (:peterv)
remote: *********************************************************************

Flags: needinfo?(emcdonough)
Pushed by csabou@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9ddd02060e42
Add Element::HasGridFragments() and use it in appropriate locations in devtools r=bradwerth,emilio
Flags: needinfo?(emcdonough)
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 77

This is great. Thank you, Emily!

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: