diff --git a/mozilla/editor/libeditor/html/nsHTMLEditor.cpp b/mozilla/editor/libeditor/html/nsHTMLEditor.cpp index 45a5e431856..0491fd4c300 100644 --- a/mozilla/editor/libeditor/html/nsHTMLEditor.cpp +++ b/mozilla/editor/libeditor/html/nsHTMLEditor.cpp @@ -3992,10 +3992,11 @@ nsHTMLEditor::GetEmbeddedObjects(nsISupportsArray** aNodeList) nsCOMPtr element = do_QueryInterface(node); if (element) { - PRBool hasBackground = PR_FALSE; - if (NS_SUCCEEDED(element->HasAttribute(NS_LITERAL_STRING("background"), &hasBackground))) - if (hasBackground) - (*aNodeList)->AppendElement(node); + nsAutoString bgImageStr; + + mHTMLCSSUtils->GetComputedProperty(element, nsEditProperty::cssBackgroundImage, bgImageStr); + if (!bgImageStr.Equals(NS_LITERAL_STRING("none"))) + (*aNodeList)->AppendElement(node); } } }