Closed Bug 1929754 Opened 1 month ago Closed 1 month ago

Avoid including nsViewportInfo.h from Document.h

Categories

(Core :: Panning and Zooming, task, P3)

task

Tracking

()

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

(Reporter: botond, Assigned: botond)

Details

Attachments

(1 file)

While the Document class has a method which returns nsViewportInfo by value, a definition of the returned type is not needed to compile the class declaration itself (a forward declaration is sufficient).

Callers of the method need the definition of nsViewportInfo, but that's a small subset of the translation units which include Document.h (so that this patch significantly speeds up the rebuild time after making a modification to nsViewportInfo.h).

Pushed by bballo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/428e4e6ac72d Avoid including nsViewportInfo.h from Document.h. r=hiro
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: