Changeset 91102 in webkit
- Timestamp:
- Jul 15, 2011 1:35:17 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r91097 r91102 1 2011-07-15 Pratik Solanki <psolanki@apple.com> 2 3 Part of https://bugs.webkit.org/show_bug.cgi?id=63674 4 Get webkit to compile with USE(CFNETWORK) enabled on Mac 5 6 Reviewed by David Kilzer. 7 8 Minor changes needed to keep the compiler happy. 9 10 No new tests because no change in functionality. 11 12 * platform/network/cf/FormDataStreamCFNet.cpp: 13 * platform/network/cf/ResourceErrorCF.cpp: 14 (WebCore::ResourceError::platformCopy): 15 * platform/network/cf/ResourceHandleCFNet.cpp: 16 (WebCore::WebCoreSynchronousLoaderClient::willSendRequest): 17 * platform/network/cf/ResourceResponseCFNet.cpp: 18 (WebCore::toTimeT): 19 1 20 2011-07-15 Dan Bernstein <mitz@apple.com> 2 21 -
trunk/Source/WebCore/platform/network/cf/FormDataStreamCFNet.cpp
r78508 r91102 38 38 #include <CFNetwork/CFURLRequestPriv.h> 39 39 #include <CoreFoundation/CFStreamAbstract.h> 40 #include <WebKitSystemInterface/WebKitSystemInterface.h>41 40 #include <sys/types.h> 42 41 #include <wtf/Assertions.h> … … 44 43 #include <wtf/RetainPtr.h> 45 44 #include <wtf/text/CString.h> 45 46 #if PLATFORM(MAC) 47 #include "WebCoreSystemInterface.h" 48 #elif PLATFORM(WIN) 49 #include <WebKitSystemInterface/WebKitSystemInterface.h> 50 #endif 46 51 47 52 #define USE_V1_CFSTREAM_CALLBACKS -
trunk/Source/WebCore/platform/network/cf/ResourceErrorCF.cpp
r86416 r91102 32 32 #include <CoreFoundation/CFError.h> 33 33 #include <CFNetwork/CFNetworkErrors.h> 34 #include <wtf/RetainPtr.h> 35 #include <wtf/UnusedParam.h> 36 34 37 #if PLATFORM(WIN) 35 38 #include <WebKitSystemInterface/WebKitSystemInterface.h> 36 39 #endif 37 #include <WTF/RetainPtr.h>38 40 39 41 namespace WebCore { … … 117 119 #if PLATFORM(WIN) 118 120 errorCopy.m_certificate = m_certificate; 121 #else 122 UNUSED_PARAM(errorCopy); 119 123 #endif 120 124 } -
trunk/Source/WebCore/platform/network/cf/ResourceHandleCFNet.cpp
r91075 r91102 55 55 #include "WebCoreURLResponse.h" 56 56 #include <CFNetwork/CFURLConnectionPriv.h> 57 #include <CFNetwork/CFURLRequestPriv.h> 57 58 #endif 58 59 … … 839 840 // FIXME: This needs to be fixed to follow the redirect correctly even for cross-domain requests. 840 841 if (!protocolHostAndPortAreEqual(handle->firstRequest().url(), request.url())) { 841 ASSERT(!m_error );842 ASSERT(!m_error.cfError()); 842 843 RetainPtr<CFErrorRef> cfError(AdoptCF, CFErrorCreate(kCFAllocatorDefault, kCFErrorDomainCFNetwork, kCFURLErrorBadServerResponse, 0)); 843 844 m_error = cfError.get(); -
trunk/Source/WebCore/platform/network/cf/ResourceResponseCFNet.cpp
r87460 r91102 73 73 static const double maxTimeAsDouble = std::numeric_limits<time_t>::max(); 74 74 static const double minTimeAsDouble = std::numeric_limits<time_t>::min(); 75 return min(max(minTimeAsDouble, time + kCFAbsoluteTimeIntervalSince1970), maxTimeAsDouble);75 return static_cast<time_t>(min(max(minTimeAsDouble, time + kCFAbsoluteTimeIntervalSince1970), maxTimeAsDouble)); 76 76 } 77 77
Note: See TracChangeset
for help on using the changeset viewer.