mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
import changes from rmottola/Arctic-Fox:
- Bug 1129223 - Remove local mozAfterRemotePaint events (a9aec8f51) - override -> MOZ_OVERRIDE (2de5b532c) - Bug 1129223 - Introduce new, more efficient mozLayerTreeReady event (9a363c950) - Bug 963921 - Clients of the JS API should use JS_DefineElement where appropriate (912f064c0) - Bug 1133746. Allow DOMProxyShadows to communicate to the JIT whether the shadowing is done by the expando object or not. (dbe537f12)
This commit is contained in:
@@ -131,7 +131,7 @@ IsJavaMIME(const nsACString & aMIMEType)
|
||||
static bool
|
||||
InActiveDocument(nsIContent *aContent)
|
||||
{
|
||||
if (!aContent->IsInDoc()) {
|
||||
if (!aContent->IsInComposedDoc()) {
|
||||
return false;
|
||||
}
|
||||
nsIDocument *doc = aContent->OwnerDoc();
|
||||
@@ -3333,11 +3333,10 @@ nsObjectLoadingContent::GetContentDocument()
|
||||
nsCOMPtr<nsIContent> thisContent =
|
||||
do_QueryInterface(static_cast<nsIImageLoadingContent*>(this));
|
||||
|
||||
if (!thisContent->IsInDoc()) {
|
||||
if (!thisContent->IsInComposedDoc()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// XXXbz should this use GetComposedDoc()? sXBL/XBL2 issue!
|
||||
nsIDocument *sub_doc = thisContent->OwnerDoc()->GetSubDocumentFor(thisContent);
|
||||
if (!sub_doc) {
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user