Bug 314095 - Eliminate nsIContent::GetDocument, r=jst
This commit is contained in:
@@ -75,7 +75,7 @@ nsFileControlFrame::DestroyFrom(nsIFrame* aDestructRoot)
|
||||
nsresult
|
||||
nsFileControlFrame::CreateAnonymousContent(nsTArray<ContentInfo>& aElements)
|
||||
{
|
||||
nsCOMPtr<nsIDocument> doc = mContent->GetDocument();
|
||||
nsCOMPtr<nsIDocument> doc = mContent->GetComposedDoc();
|
||||
|
||||
// Create and setup the file picking button.
|
||||
mBrowse = doc->CreateHTMLElement(nsGkAtoms::button);
|
||||
|
||||
Reference in New Issue
Block a user