Diff
Modified: trunk/Source/WebCore/ChangeLog (100667 => 100668)
--- trunk/Source/WebCore/ChangeLog 2011-11-17 21:50:47 UTC (rev 100667)
+++ trunk/Source/WebCore/ChangeLog 2011-11-17 21:51:10 UTC (rev 100668)
@@ -1,5 +1,16 @@
2011-11-17 Mark Rowe <mr...@apple.com>
+ <http://webkit.org/b/72646> Disable deprecation warnings around code where we cannot easily
+ switch away from the deprecated APIs.
+
+ Reviewed by Dan Bernstein.
+
+ * platform/mac/WebCoreNSStringExtras.mm:
+ * platform/network/cf/SocketStreamHandleCFNet.cpp:
+ (WebCore::SocketStreamHandle::reportErrorToClient):
+
+2011-11-17 Mark Rowe <mr...@apple.com>
+
<http://webkit.org/b/72637> Stop performing runtime version checks on OS versions where the check can never possibly fail.
Reviewed by Simon Fraser.
Modified: trunk/Source/WebCore/platform/mac/WebCoreNSStringExtras.mm (100667 => 100668)
--- trunk/Source/WebCore/platform/mac/WebCoreNSStringExtras.mm 2011-11-17 21:50:47 UTC (rev 100667)
+++ trunk/Source/WebCore/platform/mac/WebCoreNSStringExtras.mm 2011-11-17 21:51:10 UTC (rev 100668)
@@ -68,6 +68,9 @@
return filename;
}
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
CFStringEncoding stringEncodingForResource(Handle resource)
{
short resRef = HomeResFile(resource);
@@ -110,3 +113,4 @@
return encoding;
}
+#pragma GCC diagnostic pop
Modified: trunk/Source/WebCore/platform/network/cf/SocketStreamHandleCFNet.cpp (100667 => 100668)
--- trunk/Source/WebCore/platform/network/cf/SocketStreamHandleCFNet.cpp 2011-11-17 21:50:47 UTC (rev 100667)
+++ trunk/Source/WebCore/platform/network/cf/SocketStreamHandleCFNet.cpp 2011-11-17 21:51:10 UTC (rev 100668)
@@ -542,11 +542,16 @@
String description;
#if PLATFORM(MAC)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
if (CFEqual(CFErrorGetDomain(error), kCFErrorDomainOSStatus)) {
const char* descriptionOSStatus = GetMacOSStatusCommentString(static_cast<OSStatus>(errorCode));
if (descriptionOSStatus && descriptionOSStatus[0] != '\0')
description = "OSStatus Error " + String::number(errorCode) + ": " + descriptionOSStatus;
}
+
+#pragma GCC diagnostic pop
#endif
if (description.isNull()) {
Modified: trunk/Source/WebKit/mac/ChangeLog (100667 => 100668)
--- trunk/Source/WebKit/mac/ChangeLog 2011-11-17 21:50:47 UTC (rev 100667)
+++ trunk/Source/WebKit/mac/ChangeLog 2011-11-17 21:51:10 UTC (rev 100668)
@@ -1,3 +1,14 @@
+2011-11-17 Mark Rowe <mr...@apple.com>
+
+ <http://webkit.org/b/72646> Disable deprecation warnings around code where we cannot easily
+ switch away from the deprecated APIs.
+
+ Reviewed by Dan Bernstein.
+
+ * Plugins/WebBasePluginPackage.mm:
+ * Plugins/WebNetscapePluginPackage.mm:
+ (-[WebNetscapePluginPackage _tryLoad]):
+
2011-11-16 Dan Bernstein <m...@apple.com>
WebKit/mac part of <rdar://problem/10262242> Add API for paginated display
Modified: trunk/Source/WebKit/mac/Plugins/WebBasePluginPackage.mm (100667 => 100668)
--- trunk/Source/WebKit/mac/Plugins/WebBasePluginPackage.mm 2011-11-17 21:50:47 UTC (rev 100667)
+++ trunk/Source/WebKit/mac/Plugins/WebBasePluginPackage.mm 2011-11-17 21:51:10 UTC (rev 100668)
@@ -93,6 +93,9 @@
return WebCFAutorelease(WKCopyCFLocalizationPreferredName(NULL));
}
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+// FIXME: Rewrite this in terms of -[NSURL URLByResolvingBookmarkData:…].
static NSString *pathByResolvingSymlinksAndAliases(NSString *thePath)
{
NSString *newPath = [thePath stringByResolvingSymlinksInPath];
@@ -118,6 +121,7 @@
return newPath;
}
+#pragma GCC diagnostic pop
- (id)initWithPath:(NSString *)pluginPath
{
Modified: trunk/Source/WebKit/mac/Plugins/WebNetscapePluginPackage.mm (100667 => 100668)
--- trunk/Source/WebKit/mac/Plugins/WebNetscapePluginPackage.mm 2011-11-17 21:50:47 UTC (rev 100667)
+++ trunk/Source/WebKit/mac/Plugins/WebNetscapePluginPackage.mm 2011-11-17 21:51:10 UTC (rev 100668)
@@ -122,6 +122,9 @@
CFBundleCloseBundleResourceMap(cfBundle.get(), resRef);
}
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
- (NSString *)stringForStringListID:(SInt16)stringListID andIndex:(SInt16)index
{
// Get resource, and dereference the handle.
@@ -202,6 +205,8 @@
return YES;
}
+#pragma GCC diagnostic pop
+
- (BOOL)_initWithPath:(NSString *)pluginPath
{
resourceRef = -1;
@@ -424,13 +429,16 @@
isCFM = YES;
}
#endif /* SUPPORT_CFM */
-
+
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
// Plugins (at least QT) require that you call UseResFile on the resource file before loading it.
resourceRef = [self openResourceFile];
if (resourceRef != -1) {
UseResFile(resourceRef);
}
-
+#pragma GCC diagnostic pop
+
// swap function tables
#ifdef SUPPORT_CFM
if (isCFM) {
Modified: trunk/Source/WebKit2/ChangeLog (100667 => 100668)
--- trunk/Source/WebKit2/ChangeLog 2011-11-17 21:50:47 UTC (rev 100667)
+++ trunk/Source/WebKit2/ChangeLog 2011-11-17 21:51:10 UTC (rev 100668)
@@ -1,3 +1,12 @@
+2011-11-17 Mark Rowe <mr...@apple.com>
+
+ <http://webkit.org/b/72646> Disable deprecation warnings around code where we cannot easily
+ switch away from the deprecated APIs.
+
+ Reviewed by Dan Bernstein.
+
+ * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
+
2011-11-17 Jesus Sanchez-Palencia <jesus.palen...@openbossa.org>
[Qt][WK2] Fix zero sized views in all QML tests
Modified: trunk/Source/WebKit2/Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm (100667 => 100668)
--- trunk/Source/WebKit2/Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm 2011-11-17 21:50:47 UTC (rev 100667)
+++ trunk/Source/WebKit2/Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm 2011-11-17 21:51:10 UTC (rev 100668)
@@ -216,6 +216,9 @@
return true;
}
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
class ResourceMap {
public:
explicit ResourceMap(CFBundleRef bundle)
@@ -284,6 +287,8 @@
return true;
}
+#pragma GCC diagnostic pop
+
static const ResID PluginNameOrDescriptionStringNumber = 126;
static const ResID MIMEDescriptionStringNumber = 127;
static const ResID MIMEListStringStringNumber = 128;