Title: [204974] trunk/Source/WebKit/mac
- Revision
- 204974
- Author
- achristen...@apple.com
- Date
- 2016-08-25 11:12:56 -0700 (Thu, 25 Aug 2016)
Log Message
Re-export DOMException NSStrings after r204717
https://bugs.webkit.org/show_bug.cgi?id=161200
<rdar://problem/27959937>
Patch by Anders Carlsson <ander...@apple.com> on 2016-08-25
Reviewed by Alex Christensen.
* DOM/ExceptionHandlers.mm:
(raiseDOMException):
* WebKit.exp:
Modified Paths
Diff
Modified: trunk/Source/WebKit/mac/ChangeLog (204973 => 204974)
--- trunk/Source/WebKit/mac/ChangeLog 2016-08-25 17:50:30 UTC (rev 204973)
+++ trunk/Source/WebKit/mac/ChangeLog 2016-08-25 18:12:56 UTC (rev 204974)
@@ -1,3 +1,15 @@
+2016-08-25 Anders Carlsson <ander...@apple.com>
+
+ Re-export DOMException NSStrings after r204717
+ https://bugs.webkit.org/show_bug.cgi?id=161200
+ <rdar://problem/27959937>
+
+ Reviewed by Alex Christensen.
+
+ * DOM/ExceptionHandlers.mm:
+ (raiseDOMException):
+ * WebKit.exp:
+
2016-08-22 Darin Adler <da...@apple.com>
Move Objective-C DOM bindings from WebCore to legacy WebKit
Modified: trunk/Source/WebKit/mac/DOM/ExceptionHandlers.mm (204973 => 204974)
--- trunk/Source/WebKit/mac/DOM/ExceptionHandlers.mm 2016-08-25 17:50:30 UTC (rev 204973)
+++ trunk/Source/WebKit/mac/DOM/ExceptionHandlers.mm 2016-08-25 18:12:56 UTC (rev 204974)
@@ -25,9 +25,18 @@
#import "ExceptionHandlers.h"
+#import "DOMEventException.h"
+#import "DOMException.h"
+#import "DOMRangeException.h"
+#import "DOMXPathException.h"
#import <WebCore/ExceptionCode.h>
#import <WebCore/ExceptionCodeDescription.h>
+NSString * const DOMException = @"DOMException";
+NSString * const DOMRangeException = @"DOMRangeException";
+NSString * const DOMEventException = @"DOMEventException";
+NSString * const DOMXPathException = @"DOMXPathException";
+
void raiseDOMException(WebCore::ExceptionCode ec)
{
ASSERT(ec);
@@ -37,13 +46,13 @@
// FIXME: This should use type and code exclusively and not try to use typeName.
NSString *exceptionName;
if (strcmp(description.typeName, "DOM Range") == 0)
- exceptionName = @"DOMRangeException";
+ exceptionName = DOMRangeException;
else if (strcmp(description.typeName, "DOM Events") == 0)
- exceptionName = @"DOMEventException";
+ exceptionName = DOMEventException;
else if (strcmp(description.typeName, "DOM XPath") == 0)
- exceptionName = @"DOMXPathException";
+ exceptionName = DOMXPathException;
else
- exceptionName = @"DOMException";
+ exceptionName = DOMException;
NSString *reason;
if (description.name)
Modified: trunk/Source/WebKit/mac/WebKit.exp (204973 => 204974)
--- trunk/Source/WebKit/mac/WebKit.exp 2016-08-25 17:50:30 UTC (rev 204973)
+++ trunk/Source/WebKit/mac/WebKit.exp 2016-08-25 18:12:56 UTC (rev 204974)
@@ -148,6 +148,10 @@
.objc_class_name_WebTextIterator
.objc_class_name_WebUserContentURLPattern
.objc_class_name_WebView
+_DOMException
+_DOMRangeException
+_DOMEventException
+_DOMXPathException
_WebActionButtonKey
_WebActionElementKey
_WebActionFormKey
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes