Changeset 111251 in webkit
- Timestamp:
- Mar 19, 2012 2:35:16 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r111249 r111251 1 2012-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 1 15 2012-03-19 Sheriff Bot <webkit.review.bot@gmail.com> 2 16 -
trunk/Source/WebCore/loader/MainResourceLoader.cpp
r106662 r111251 62 62 namespace WebCore { 63 63 64 static bool shouldLoadAsEmptyDocument(const KURL& url) 65 { 66 return url.isEmpty() || SchemeRegistry::shouldLoadURLSchemeAsEmptyDocument(url.protocol()); 67 } 68 64 69 MainResourceLoader::MainResourceLoader(Frame* frame) 65 70 : ResourceLoader(frame, ResourceLoaderOptions(SendCallbacks, SniffContent, BufferData, AllowStoredCredentials, AskClientForCrossOriginCredentials, SkipSecurityCheck)) … … 235 240 frameLoader()->policyChecker()->checkNavigationPolicy(newRequest, callContinueAfterNavigationPolicy, this); 236 241 } 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 #else244 return url.isEmpty() || SchemeRegistry::shouldLoadURLSchemeAsEmptyDocument(url.protocol());245 #endif246 242 } 247 243
Note: See TracChangeset
for help on using the changeset viewer.