Changeset 66997 in webkit


Ignore:
Timestamp:
Sep 8, 2010 11:17:25 AM (14 years ago)
Author:
aestes@apple.com
Message:

Incorporate additional feedback from
https://bugs.webkit.org/show_bug.cgi?id=45364.

Rubber-stamped by Darin Adler.

  • html/HTMLObjectElement.cpp:

(WebCore::HTMLObjectElement::parametersForPlugin): Rename urlParam to
urlParameter.

  • loader/SubframeLoader.h: Add argument names to the definition of

SubframeLoader::resourceWillUsePlugin().

Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r66995 r66997  
     12010-09-08  Andy Estes  <aestes@apple.com>
     2
     3        Rubber-stamped by Darin Adler.
     4
     5        Incorporate additional feedback from
     6        https://bugs.webkit.org/show_bug.cgi?id=45364.
     7
     8        * html/HTMLObjectElement.cpp:
     9        (WebCore::HTMLObjectElement::parametersForPlugin): Rename urlParam to
     10        urlParameter.
     11        * loader/SubframeLoader.h: Add argument names to the definition of
     12        SubframeLoader::resourceWillUsePlugin().
     13
    1142010-09-07  Oliver Hunt  <oliver@apple.com>
    215
  • trunk/WebCore/html/HTMLObjectElement.cpp

    r66992 r66997  
    164164{
    165165    HashSet<StringImpl*, CaseFoldingHash> uniqueParamNames;
    166     String urlParam;
     166    String urlParameter;
    167167   
    168168    // Scan the PARAM children and store their name/value pairs.
     
    182182
    183183        // FIXME: url adjustment does not belong in this function.
    184         if (url.isEmpty() && urlParam.isEmpty() && (equalIgnoringCase(name, "src") || equalIgnoringCase(name, "movie") || equalIgnoringCase(name, "code") || equalIgnoringCase(name, "url")))
    185             urlParam = deprecatedParseURL(p->value());
     184        if (url.isEmpty() && urlParameter.isEmpty() && (equalIgnoringCase(name, "src") || equalIgnoringCase(name, "movie") || equalIgnoringCase(name, "code") || equalIgnoringCase(name, "url")))
     185            urlParameter = deprecatedParseURL(p->value());
    186186        // FIXME: serviceType calculation does not belong in this function.
    187187        if (serviceType.isEmpty() && equalIgnoringCase(name, "type")) {
     
    223223    // resource's URL to be given by a param named "src", "movie", "code" or "url"
    224224    // if we know that resource points to a plug-in.
    225     if (url.isEmpty() && !urlParam.isEmpty()) {
     225    if (url.isEmpty() && !urlParameter.isEmpty()) {
    226226        SubframeLoader* loader = document()->frame()->loader()->subframeLoader();
    227         if (loader->resourceWillUsePlugin(urlParam, serviceType))
    228             url = urlParam;
     227        if (loader->resourceWillUsePlugin(urlParameter, serviceType))
     228            url = urlParameter;
    229229    }
    230230}
  • trunk/WebCore/loader/SubframeLoader.h

    r66992 r66997  
    7777    bool containsPlugins() const { return m_containsPlugins; }
    7878   
    79     bool resourceWillUsePlugin(const String&, const String&);
     79    bool resourceWillUsePlugin(const String& url, const String& mimeType);
    8080
    8181private:
Note: See TracChangeset for help on using the changeset viewer.