Guarantee that a document's binding manager is non-null. Bug 282792, r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@169489 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -91,6 +91,7 @@ LOCAL_INCLUDES = \
|
||||
-I$(srcdir)/../../../../layout/style \
|
||||
-I$(srcdir)/../../../base/src \
|
||||
-I$(srcdir)/../../../xul/content/src \
|
||||
-I$(srcdir)/../../../events/src \
|
||||
-I$(srcdir)/../../../../dom/src/base \
|
||||
$(NULL)
|
||||
|
||||
|
||||
@@ -173,7 +173,7 @@ nsXMLPrettyPrinter::PrettyPrint(nsIDocument* aDocument)
|
||||
nsCOMPtr<nsIObserver> binding;
|
||||
nsCOMPtr<nsIContent> rootCont = do_QueryInterface(rootElem);
|
||||
NS_ASSERTION(rootCont, "Element doesn't implement nsIContent");
|
||||
aDocument->GetBindingManager()->GetBindingImplementation(rootCont,
|
||||
aDocument->BindingManager()->GetBindingImplementation(rootCont,
|
||||
NS_GET_IID(nsIObserver),
|
||||
(void**)getter_AddRefs(binding));
|
||||
NS_ASSERTION(binding, "Prettyprint binding doesn't implement nsIObserver");
|
||||
|
||||
Reference in New Issue
Block a user