Closed Bug 1488684 Opened 6 years ago Closed 6 years ago

Devirtualize more of layout

Categories

(Core :: Layout, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox64 --- fixed

People

(Reporter: mozbugz, Assigned: mozbugz)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [overhead:noted])

Attachments

(2 files)

Easy pickings in layout/ (as I am working nearby anyway).
Though some of these are not strictly necessary because they are inside 'final'
classes, I think they're worth adding anyway, because:
- The 'final' keyword becomes more obvious when looking at methods without the
  wider context in sight (e.g., in reviews or searchfox).
- If one day any of these classes becomes non-final, it would keep the final
  attribute on all methods by default, and force the programmer to explicitly
  remove 'final' from the methods that need to be overridden.

Depends on D5020
Comment on attachment 9006517 [details]
Bug 1488684 - Made nsIFrame-derived classes and some others 'final' where possible - r?dbaron

David Baron :dbaron: 🏴󠁵󠁳󠁣󠁡󠁿 ⌚UTC-7 has approved the revision.
Attachment #9006517 - Flags: review+
Whiteboard: [overhead:noted]
Comment on attachment 9006518 [details]
Bug 1488684 - Made some layout methods 'final' or non-virtual - r?dbaron

David Baron :dbaron: 🏴󠁵󠁳󠁣󠁡󠁿 ⌚UTC-7 has approved the revision.
Attachment #9006518 - Flags: review+
Attachment #9006517 - Attachment description: Bug 1488684 - Sprinkled 'final' in layout classes - r?dbaron → Bug 1488684 - Made nsIFrame-derived classes and some others 'final' where possible - r?dbaron
Pushed by gsquelart@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/52dabf91acd0
Made nsIFrame-derived classes and some others 'final' where possible - r=dbaron
Pushed by gsquelart@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bc3b69fb4426
Made some layout methods 'final' or non-virtual - r=dbaron
https://hg.mozilla.org/mozilla-central/rev/52dabf91acd0
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Reopening this bug, because the 2nd patch didn't make it to central just yet (Lando separated the patches in autoland, and I didn't put part numbers in the descriptions, so the sheriff didn't notice they were linked.)

The 2nd patch should go through in the next merge in a few hours...
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
https://hg.mozilla.org/mozilla-central/rev/bc3b69fb4426
Status: REOPENED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: