Title: [102691] trunk/Source/WebCore
- Revision
- 102691
- Author
- beid...@apple.com
- Date
- 2011-12-13 10:48:21 -0800 (Tue, 13 Dec 2011)
Log Message
<http://webkit.org/b/74420> Disable deprecation warnings around more code where we
cannot easily switch away from the deprecated APIs.
Reviewed by Mark Rowe.
* bindings/objc/DOMInternal.mm:
* bridge/objc/objc_instance.mm:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (102690 => 102691)
--- trunk/Source/WebCore/ChangeLog 2011-12-13 18:34:11 UTC (rev 102690)
+++ trunk/Source/WebCore/ChangeLog 2011-12-13 18:48:21 UTC (rev 102691)
@@ -1,3 +1,13 @@
+2011-12-13 Brady Eidson <beid...@apple.com>
+
+ <http://webkit.org/b/74420> Disable deprecation warnings around more code where we
+ cannot easily switch away from the deprecated APIs.
+
+ Reviewed by Mark Rowe.
+
+ * bindings/objc/DOMInternal.mm:
+ * bridge/objc/objc_instance.mm:
+
2011-12-12 Robert Hogan <rob...@webkit.org>
CSS 2.1 failure: eof-002.htm fails
Modified: trunk/Source/WebCore/bindings/objc/DOMInternal.mm (102690 => 102691)
--- trunk/Source/WebCore/bindings/objc/DOMInternal.mm 2011-12-13 18:34:11 UTC (rev 102690)
+++ trunk/Source/WebCore/bindings/objc/DOMInternal.mm 2011-12-13 18:48:21 UTC (rev 102691)
@@ -37,6 +37,11 @@
static NSMapTable* DOMWrapperCache;
+#if COMPILER(CLANG)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
NSMapTable* createWrapperCache()
{
// NSMapTable with zeroing weak pointers is the recommended way to build caches like this under garbage collection.
@@ -45,6 +50,10 @@
return [[NSMapTable alloc] initWithKeyOptions:keyOptions valueOptions:valueOptions capacity:0];
}
+#if COMPILER(CLANG)
+#pragma clang diagnostic pop
+#endif
+
NSObject* getDOMWrapper(DOMObjectInternal* impl)
{
if (!DOMWrapperCache)
Modified: trunk/Source/WebCore/bridge/objc/objc_instance.mm (102690 => 102691)
--- trunk/Source/WebCore/bridge/objc/objc_instance.mm 2011-12-13 18:34:11 UTC (rev 102690)
+++ trunk/Source/WebCore/bridge/objc/objc_instance.mm 2011-12-13 18:48:21 UTC (rev 102691)
@@ -53,6 +53,11 @@
static JSGlobalObject* s_exceptionEnvironment; // No need to protect this value, since we just use it for a pointer comparison.
static NSMapTable *s_instanceWrapperCache;
+#if COMPILER(CLANG)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
static NSMapTable *createInstanceWrapperCache()
{
// NSMapTable with zeroing weak pointers is the recommended way to build caches like this under garbage collection.
@@ -61,6 +66,10 @@
return [[NSMapTable alloc] initWithKeyOptions:keyOptions valueOptions:valueOptions capacity:0];
}
+#if COMPILER(CLANG)
+#pragma clang diagnostic pop
+#endif
+
RuntimeObject* ObjcInstance::newRuntimeObject(ExecState* exec)
{
return ObjCRuntimeObject::create(exec, exec->lexicalGlobalObject(), this);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes