Changeset 161259 in webkit


Ignore:
Timestamp:
Jan 3, 2014 3:44:48 AM (10 years ago)
Author:
akling@apple.com
Message:

Remove unused Document::openSearchDescriptionURL().
<https://webkit.org/b/126419>

Reviewed by Antti Koivisto.

  • dom/Document.h:
  • dom/Document.cpp:

Scrub leftovers from the defunct Chromium port.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r161257 r161259  
     12014-01-03  Andreas Kling  <akling@apple.com>
     2
     3        Remove unused Document::openSearchDescriptionURL().
     4        <https://webkit.org/b/126419>
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * dom/Document.h:
     9        * dom/Document.cpp:
     10
     11            Scrub leftovers from the defunct Chromium port.
     12
    1132014-01-03  Jinwoo Song  <jinwoo7.song@samsung.com>
    214
  • trunk/Source/WebCore/dom/Document.cpp

    r161207 r161259  
    42484248}
    42494249
    4250 URL Document::openSearchDescriptionURL()
    4251 {
    4252     static const char* const openSearchMIMEType = "application/opensearchdescription+xml";
    4253     static const char* const openSearchRelation = "search";
    4254 
    4255     // FIXME: Why do only top-level frames have openSearchDescriptionURLs?
    4256     if (!frame() || frame()->tree().parent())
    4257         return URL();
    4258 
    4259     // FIXME: Why do we need to wait for FrameStateComplete?
    4260     if (frame()->loader().state() != FrameStateComplete)
    4261         return URL();
    4262 
    4263     if (!head())
    4264         return URL();
    4265 
    4266     RefPtr<HTMLCollection> children = head()->children();
    4267     for (unsigned i = 0; Node* child = children->item(i); i++) {
    4268         if (!child->hasTagName(linkTag))
    4269             continue;
    4270         HTMLLinkElement* linkElement = toHTMLLinkElement(child);
    4271         if (!equalIgnoringCase(linkElement->type(), openSearchMIMEType) || !equalIgnoringCase(linkElement->rel(), openSearchRelation))
    4272             continue;
    4273         if (linkElement->href().isEmpty())
    4274             continue;
    4275         return linkElement->href();
    4276     }
    4277 
    4278     return URL();
    4279 }
    4280 
    42814250void Document::pushCurrentScript(PassRefPtr<HTMLScriptElement> newCurrentScript)
    42824251{
  • trunk/Source/WebCore/dom/Document.h

    r161207 r161259  
    898898    String queryCommandValue(const String& command);
    899899
    900     URL openSearchDescriptionURL();
    901 
    902900    // designMode support
    903901    enum InheritedBool { off = false, on = true, inherit };   
Note: See TracChangeset for help on using the changeset viewer.