Skip to content
  • kling@webkit.org's avatar
    Element: isURLAttribute() should take a const Attribute&. · d8a6d153
    kling@webkit.org authored
    <http://webkit.org/b/85890>
    
    Reviewed by Anders Carlsson.
    
    Change isURLAttribute(Attribute*) to isURLAttribute(const Attribute&) to enforce
    the fact that the Attribute can't be null, and shouldn't be mutated, at compile-time.
    Also sprinkle OVERRIDE while we're at it.
    
    * dom/Element.cpp:
    (WebCore::Element::getURLAttribute):
    (WebCore::Element::getNonEmptyURLAttribute):
    * dom/Element.h:
    (WebCore::Element::isURLAttribute):
    * editing/MarkupAccumulator.cpp:
    (WebCore::MarkupAccumulator::appendQuotedURLAttributeValue):
    (WebCore::MarkupAccumulator::appendAttribute):
    * editing/markup.cpp:
    (WebCore::completeURLs):
    * html/HTMLAnchorElement.cpp:
    (WebCore::HTMLAnchorElement::isURLAttribute):
    * html/HTMLAnchorElement.h:
    * html/HTMLBaseElement.cpp:
    (WebCore::HTMLBaseElement::isURLAttribute):
    * html/HTMLBaseElement.h:
    * html/HTMLBodyElement.cpp:
    (WebCore::HTMLBodyElement::isURLAttribute):
    * html/HTMLBodyElement.h:
    * html/HTMLButtonElement.cpp:
    (WebCore::HTMLButtonElement::isURLAttribute):
    * html/HTMLButtonElement.h:
    * html/HTMLElement.cpp:
    (WebCore::HTMLElement::isURLAttribute):
    * html/HTMLElement.h:
    * html/HTMLEmbedElement.cpp:
    (WebCore::HTMLEmbedElement::isURLAttribute):
    * html/HTMLEmbedElement.h:
    * html/HTMLFormElement.cpp:
    (WebCore::HTMLFormElement::isURLAttribute):
    * html/HTMLFormElement.h:
    * html/HTMLFrameElementBase.cpp:
    (WebCore::HTMLFrameElementBase::isURLAttribute):
    * html/HTMLFrameElementBase.h:
    (HTMLFrameElementBase):
    * html/HTMLHtmlElement.cpp:
    (WebCore::HTMLHtmlElement::isURLAttribute):
    * html/HTMLHtmlElement.h:
    * html/HTMLImageElement.cpp:
    (WebCore::HTMLImageElement::isURLAttribute):
    * html/HTMLImageElement.h:
    * html/HTMLInputElement.cpp:
    (WebCore::HTMLInputElement::isURLAttribute):
    * html/HTMLInputElement.h:
    * html/HTMLLinkElement.cpp:
    (WebCore::HTMLLinkElement::isURLAttribute):
    * html/HTMLLinkElement.h:
    * html/HTMLMediaElement.cpp:
    (WebCore::HTMLMediaElement::isURLAttribute):
    * html/HTMLMediaElement.h:
    * html/HTMLModElement.cpp:
    (WebCore::HTMLModElement::isURLAttribute):
    * html/HTMLModElement.h:
    * html/HTMLObjectElement.cpp:
    (WebCore::HTMLObjectElement::isURLAttribute):
    * html/HTMLObjectElement.h:
    * html/HTMLParamElement.cpp:
    (WebCore::HTMLParamElement::isURLAttribute):
    * html/HTMLParamElement.h:
    * html/HTMLQuoteElement.cpp:
    (WebCore::HTMLQuoteElement::isURLAttribute):
    * html/HTMLQuoteElement.h:
    * html/HTMLScriptElement.cpp:
    (WebCore::HTMLScriptElement::isURLAttribute):
    * html/HTMLScriptElement.h:
    * html/HTMLSourceElement.cpp:
    (WebCore::HTMLSourceElement::isURLAttribute):
    * html/HTMLSourceElement.h:
    * html/HTMLTableCellElement.cpp:
    (WebCore::HTMLTableCellElement::isURLAttribute):
    * html/HTMLTableCellElement.h:
    * html/HTMLTableElement.cpp:
    (WebCore::HTMLTableElement::isURLAttribute):
    * html/HTMLTableElement.h:
    * html/HTMLTrackElement.cpp:
    (WebCore::HTMLTrackElement::isURLAttribute):
    * html/HTMLTrackElement.h:
    * html/HTMLVideoElement.cpp:
    (WebCore::HTMLVideoElement::isURLAttribute):
    * html/HTMLVideoElement.h:
    * svg/SVGScriptElement.cpp:
    (WebCore::SVGScriptElement::isURLAttribute):
    * svg/SVGScriptElement.h:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116430 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    d8a6d153