Bug 1957689 - Appease old gcc which doesn't like the nullptr vs NonNull<Encoding*> ternary.
MANUAL PUSH: Trivial bustage fix CLOSED TREE
This commit is contained in:
@@ -491,13 +491,17 @@ Document* SVGUseElement::GetSourceDocument() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
nsIURI* SVGUseElement::GetSourceDocURI() const {
|
nsIURI* SVGUseElement::GetSourceDocURI() const {
|
||||||
auto* doc = GetSourceDocument();
|
if (auto* doc = GetSourceDocument()) {
|
||||||
return doc ? doc->GetDocumentURI() : nullptr;
|
return doc->GetDocumentURI();
|
||||||
|
}
|
||||||
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Encoding* SVGUseElement::GetSourceDocCharacterSet() const {
|
const Encoding* SVGUseElement::GetSourceDocCharacterSet() const {
|
||||||
auto* doc = GetSourceDocument();
|
if (auto* doc = GetSourceDocument()) {
|
||||||
return doc ? doc->GetDocumentCharacterSet() : nullptr;
|
return doc->GetDocumentCharacterSet();
|
||||||
|
}
|
||||||
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
static nsINode* GetClonedChild(const SVGUseElement& aUseElement) {
|
static nsINode* GetClonedChild(const SVGUseElement& aUseElement) {
|
||||||
|
|||||||
Reference in New Issue
Block a user