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:
@@ -51,8 +51,7 @@
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::dom;
|
||||
|
||||
nsIFrame* NS_NewTextControlFrame(nsIPresShell* aPresShell,
|
||||
ComputedStyle* aStyle) {
|
||||
nsIFrame* NS_NewTextControlFrame(PresShell* aPresShell, ComputedStyle* aStyle) {
|
||||
return new (aPresShell)
|
||||
nsTextControlFrame(aStyle, aPresShell->GetPresContext());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user