mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
connected prefs to the webshell
This commit is contained in:
parent
d3024f8eb7
commit
bc1d1dbcbb
@ -53,7 +53,7 @@ INCLUDES += \
|
||||
|
||||
MODULE = raptor
|
||||
|
||||
REQUIRES = xpcom raptor dom netlib js
|
||||
REQUIRES = xpcom raptor dom netlib js pref
|
||||
|
||||
MKSHLIB :=
|
||||
|
||||
|
@ -19,7 +19,7 @@ DEPTH=..\..\..\..
|
||||
|
||||
LIBRARY_NAME=raptorhtmldoc_s
|
||||
MODULE=raptor
|
||||
REQUIRES=xpcom raptor
|
||||
REQUIRES=xpcom raptor pref
|
||||
|
||||
DEFINES=-D_IMPL_NS_HTML -DWIN32_LEAN_AND_MEAN
|
||||
|
||||
@ -50,7 +50,7 @@ EXPORTS = \
|
||||
LINCS=-I$(PUBLIC)\xpcom -I$(PUBLIC)\raptor -I$(PUBLIC)\js \
|
||||
-I..\..\base\src -I..\..\forms\src \
|
||||
-I..\..\style\src -I..\..\table\src -I$(PUBLIC)\dom \
|
||||
-I$(PUBLIC)\netlib -I..\..\..\base\src
|
||||
-I$(PUBLIC)\netlib -I..\..\..\base\src -I$(PUBLIC)\pref
|
||||
|
||||
LCFLAGS = \
|
||||
$(LCFLAGS) \
|
||||
|
@ -38,6 +38,7 @@
|
||||
#include "nsIStyleContext.h"
|
||||
#include "nsCSSLayout.h"
|
||||
#include "nsIDocumentLoader.h"
|
||||
#include "nsIPref.h"
|
||||
//#include "nsIDocumentWidget.h"
|
||||
#include "nsHTMLFrameset.h"
|
||||
class nsHTMLFrame;
|
||||
@ -511,6 +512,12 @@ nsHTMLFrameInnerFrame::CreateWebShell(nsIPresContext& aPresContext,
|
||||
container->QueryInterface(kIWebShellIID, (void**) &outerShell);
|
||||
if (nsnull != outerShell) {
|
||||
outerShell->AddChild(mWebShell);
|
||||
nsIPref* outerPrefs = nsnull; // connect the prefs
|
||||
outerShell->GetPrefs(outerPrefs);
|
||||
if (nsnull != outerPrefs) {
|
||||
mWebShell->SetPrefs(outerPrefs);
|
||||
NS_RELEASE(outerPrefs);
|
||||
}
|
||||
NS_RELEASE(outerShell);
|
||||
}
|
||||
NS_RELEASE(container);
|
||||
|
Loading…
Reference in New Issue
Block a user