зеркало из https://github.com/mozilla/pjs.git
Attach bindings via addBinding even to nodes not in a document. Bug 380990, r+sr=sicking
This commit is contained in:
Родитель
58724ec0cf
Коммит
262862a986
|
@ -494,13 +494,7 @@ nsXBLService::LoadBindings(nsIContent* aContent, nsIURI* aURL, PRBool aAugmentFl
|
|||
|
||||
nsresult rv;
|
||||
|
||||
nsCOMPtr<nsIDocument> document;
|
||||
if (aContent->HasFlag(NODE_FORCE_XBL_BINDINGS)) {
|
||||
document = aContent->GetOwnerDoc();
|
||||
}
|
||||
else {
|
||||
document = aContent->GetCurrentDoc();
|
||||
}
|
||||
nsCOMPtr<nsIDocument> document = aContent->GetOwnerDoc();
|
||||
|
||||
// XXX document may be null if we're in the midst of paint suppression
|
||||
if (!document)
|
||||
|
|
Загрузка…
Ссылка в новой задаче