Changeset 111251 in webkit


Ignore:
Timestamp:
Mar 19, 2012 2:35:16 PM (12 years ago)
Author:
abarth@webkit.org
Message:

Remove PLATFORM(TORCHMOBILE) ifdef from MainResourceLoader.cpp
https://bugs.webkit.org/show_bug.cgi?id=81549

Reviewed by Eric Seidel.

This appears to be the only PLATFORM(TORCHMOBILE) ifdef in WebCore. I
don't believe this ifdef is needed anymore.

  • loader/MainResourceLoader.cpp:

(WebCore::shouldLoadAsEmptyDocument):
(WebCore):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r111249 r111251  
     12012-03-19  Adam Barth  <abarth@webkit.org>
     2
     3        Remove PLATFORM(TORCHMOBILE) ifdef from MainResourceLoader.cpp
     4        https://bugs.webkit.org/show_bug.cgi?id=81549
     5
     6        Reviewed by Eric Seidel.
     7
     8        This appears to be the only PLATFORM(TORCHMOBILE) ifdef in WebCore.  I
     9        don't believe this ifdef is needed anymore.
     10
     11        * loader/MainResourceLoader.cpp:
     12        (WebCore::shouldLoadAsEmptyDocument):
     13        (WebCore):
     14
    1152012-03-19  Sheriff Bot  <webkit.review.bot@gmail.com>
    216
  • trunk/Source/WebCore/loader/MainResourceLoader.cpp

    r106662 r111251  
    6262namespace WebCore {
    6363
     64static bool shouldLoadAsEmptyDocument(const KURL& url)
     65{
     66    return url.isEmpty() || SchemeRegistry::shouldLoadURLSchemeAsEmptyDocument(url.protocol());
     67}
     68
    6469MainResourceLoader::MainResourceLoader(Frame* frame)
    6570    : ResourceLoader(frame, ResourceLoaderOptions(SendCallbacks, SniffContent, BufferData, AllowStoredCredentials, AskClientForCrossOriginCredentials, SkipSecurityCheck))
     
    235240        frameLoader()->policyChecker()->checkNavigationPolicy(newRequest, callContinueAfterNavigationPolicy, this);
    236241    }
    237 }
    238 
    239 static bool shouldLoadAsEmptyDocument(const KURL& url)
    240 {
    241 #if PLATFORM(TORCHMOBILE)
    242     return url.isEmpty() || (url.protocolIs("about") && equalIgnoringRef(url, blankURL()));
    243 #else
    244     return url.isEmpty() || SchemeRegistry::shouldLoadURLSchemeAsEmptyDocument(url.protocol());
    245 #endif
    246242}
    247243
Note: See TracChangeset for help on using the changeset viewer.