Ignore:
Timestamp:
Aug 30, 2013, 7:30:12 AM (12 years ago)
Author:
[email protected]
Message:

Node::document() should return a reference.
<https://webkit.org/b/120496>

Reviewed by Antti Koivisto.

Now that orphan DocumentType nodes also have document pointers, it's no longer
possible to have a null Node::document().

Cement this by making document() return a reference, and remove the various
null checks exposed by this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/svg/SVGPatternElement.cpp

    r154462 r154877  
    230230
    231231        // Respect xlink:href, take attributes from referenced element
    232         Node* refNode = SVGURIReference::targetElementFromIRIString(current->href(), document());
     232        Node* refNode = SVGURIReference::targetElementFromIRIString(current->href(), &document());
    233233        if (refNode && refNode->hasTagName(SVGNames::patternTag)) {
    234234            current = static_cast<const SVGPatternElement*>(const_cast<const Node*>(refNode));
Note: See TracChangeset for help on using the changeset viewer.