Bug 1544343 - part 2: Make factory methods take mozilla::PresShell instead of nsIPresShell r=emilio
Additionally, this patch makes `nsFrame.h` stop including `nsIPresShell.h` and makes each users include `mozilla/PresShell.h` instead. So, this improves rebuild performance of `nsIPresShell.h` (and `mozilla/PresShell.h` in the future). Note that due to `nsIFrame::PresShell()`, `mozilla::` prefix is necessary for `PresShell` in a lot of classes which are derived from `nsIFrame` even in `.cpp` files. Differential Revision: https://phabricator.services.mozilla.com/D27476
This commit is contained in:
@@ -1460,7 +1460,7 @@ nsresult nsMathMLContainerFrame::ReportInvalidChildError(nsAtom* aChildTag) {
|
||||
|
||||
//==========================
|
||||
|
||||
nsContainerFrame* NS_NewMathMLmathBlockFrame(nsIPresShell* aPresShell,
|
||||
nsContainerFrame* NS_NewMathMLmathBlockFrame(PresShell* aPresShell,
|
||||
ComputedStyle* aStyle) {
|
||||
auto newFrame = new (aPresShell)
|
||||
nsMathMLmathBlockFrame(aStyle, aPresShell->GetPresContext());
|
||||
@@ -1474,7 +1474,7 @@ NS_QUERYFRAME_HEAD(nsMathMLmathBlockFrame)
|
||||
NS_QUERYFRAME_ENTRY(nsMathMLmathBlockFrame)
|
||||
NS_QUERYFRAME_TAIL_INHERITING(nsBlockFrame)
|
||||
|
||||
nsContainerFrame* NS_NewMathMLmathInlineFrame(nsIPresShell* aPresShell,
|
||||
nsContainerFrame* NS_NewMathMLmathInlineFrame(PresShell* aPresShell,
|
||||
ComputedStyle* aStyle) {
|
||||
return new (aPresShell)
|
||||
nsMathMLmathInlineFrame(aStyle, aPresShell->GetPresContext());
|
||||
|
||||
Reference in New Issue
Block a user