Bug 194968. Use content id properly to expose whether window is content vs. UI. r/sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@139051 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -71,6 +71,7 @@
|
||||
#include "nsFrameSetFrame.h"
|
||||
#include "nsIDOMHTMLFrameElement.h"
|
||||
#include "nsIDOMHTMLIFrameElement.h"
|
||||
#include "nsIDOMXULElement.h"
|
||||
#include "nsIFrameLoader.h"
|
||||
#include "nsLayoutAtoms.h"
|
||||
#include "nsIChromeEventHandler.h"
|
||||
@@ -1166,8 +1167,10 @@ nsHTMLFrameInnerFrame::CreateViewAndWidget(nsIPresContext* aPresContext,
|
||||
nsWidgetInitData initData;
|
||||
initData.clipChildren = PR_TRUE;
|
||||
initData.clipSiblings = PR_TRUE;
|
||||
nsCOMPtr<nsIDOMXULElement> xulElement(do_QueryInterface(mContent));
|
||||
|
||||
rv = view->CreateWidget(kCChildCID, &initData);
|
||||
rv = view->CreateWidget(kCChildCID, nsnull, nsnull, PR_TRUE, PR_TRUE,
|
||||
xulElement? eContentTypeUI: eContentTypeContent);
|
||||
SetView(aPresContext, view);
|
||||
|
||||
nsContainerFrame::SyncFrameViewProperties(aPresContext, this, nsnull, view);
|
||||
|
||||
Reference in New Issue
Block a user