diff --git a/content/xbl/src/nsXBLService.cpp b/content/xbl/src/nsXBLService.cpp index 7b3d116b3d4..38baa9b06c0 100644 --- a/content/xbl/src/nsXBLService.cpp +++ b/content/xbl/src/nsXBLService.cpp @@ -494,13 +494,7 @@ nsXBLService::LoadBindings(nsIContent* aContent, nsIURI* aURL, PRBool aAugmentFl nsresult rv; - nsCOMPtr document; - if (aContent->HasFlag(NODE_FORCE_XBL_BINDINGS)) { - document = aContent->GetOwnerDoc(); - } - else { - document = aContent->GetCurrentDoc(); - } + nsCOMPtr document = aContent->GetOwnerDoc(); // XXX document may be null if we're in the midst of paint suppression if (!document)