Bug 1263782 - Kill off the deprecated nsINode::IsInDoc(). r=baku
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user