Bug 1263782 - Kill off the deprecated nsINode::IsInDoc(). r=baku

This commit is contained in:
Jonathan Watt
2016-03-31 11:58:25 +01:00
parent 9b45b36a7e
commit d714197cfc
36 changed files with 65 additions and 73 deletions

View File

@@ -226,7 +226,7 @@ HTMLSharedElement::SetAttr(int32_t aNameSpaceID, nsIAtom* aName,
// similarly need to change the base target.
if (mNodeInfo->Equals(nsGkAtoms::base) &&
aNameSpaceID == kNameSpaceID_None &&
IsInDoc()) {
IsInUncomposedDoc()) {
if (aName == nsGkAtoms::href) {
SetBaseURIUsingFirstBaseWithHref(GetUncomposedDoc(), this);
} else if (aName == nsGkAtoms::target) {
@@ -249,7 +249,7 @@ HTMLSharedElement::UnsetAttr(int32_t aNameSpaceID, nsIAtom* aName,
// find the new one. Similar for target.
if (mNodeInfo->Equals(nsGkAtoms::base) &&
aNameSpaceID == kNameSpaceID_None &&
IsInDoc()) {
IsInUncomposedDoc()) {
if (aName == nsGkAtoms::href) {
SetBaseURIUsingFirstBaseWithHref(GetUncomposedDoc(), nullptr);
} else if (aName == nsGkAtoms::target) {