Remove more unused bindings code
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Aug 2016 17:54:46 +0000 (17:54 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Aug 2016 17:54:46 +0000 (17:54 +0000)
https://bugs.webkit.org/show_bug.cgi?id=160568

Reviewed by Sam Weinig.

* CMakeLists.txt:
* DerivedSources.make:
* WebCore.xcodeproj/project.pbxproj:
* bindings/objc/DOMDocument.mm:
(-[DOMDocument execCommand:userInterface:]):
(-[DOMDocument execCommand:]):
(-[DOMDocument getMatchedCSSRules:pseudoElement:]):
* bindings/objc/DOMHTMLBaseFontElement.mm:
* bindings/objc/DOMHTMLCollection.mm:
(-[DOMHTMLCollection tags:]):
* bindings/objc/DOMWheelEvent.mm:
(-[DOMWheelEvent isHorizontal]):
* css/RGBColor.idl:
* dom/Attr.idl:
* dom/DOMImplementation.idl:
* dom/Document.h:
* dom/Document.idl:
* dom/Element.idl:
* dom/EventException.h: Removed.
(WebCore::EventException::EventException): Deleted.
* dom/EventException.idl: Removed.
* dom/KeyboardEvent.idl:
* dom/MessageEvent.cpp:
(WebCore::MessageEvent::messagePort): Deleted.
(WebCore::MessageEvent::initMessageEvent): Deleted.
* dom/MessageEvent.h:
* dom/MessagePort.cpp:
(WebCore::MessagePort::postMessage): Deleted.
* dom/MessagePort.h:
* dom/Node.idl:
* dom/NodeFilter.idl:
* dom/OverflowEvent.idl:
* dom/WheelEvent.h:
* dom/WheelEvent.idl:
* html/HTMLAllCollection.cpp:
(WebCore::HTMLAllCollection::tags):
* html/HTMLAllCollection.h:
* html/HTMLAnchorElement.idl:
* html/HTMLAreaElement.idl:
* html/HTMLBaseFontElement.cpp: Removed.
(WebCore::HTMLBaseFontElement::HTMLBaseFontElement): Deleted.
* html/HTMLBaseFontElement.h: Removed.
* html/HTMLBaseFontElement.idl: Removed.
* html/HTMLButtonElement.idl:
* html/HTMLCanvasElement.idl:
* html/HTMLCollection.cpp:
(WebCore::HTMLCollection::tags): Deleted.
* html/HTMLCollection.h:
* html/HTMLCollection.idl:
* html/HTMLElement.idl:
* html/HTMLFieldSetElement.idl:
* html/HTMLFormElement.idl:
* html/HTMLHyperlinkElementUtils.idl:
* html/HTMLIFrameElement.idl:
* html/HTMLImageElement.idl:
* html/HTMLInputElement.idl:
* html/HTMLLabelElement.idl:
* html/HTMLLegendElement.idl:
* html/HTMLLinkElement.idl:
* html/HTMLMediaElement.idl:
* html/HTMLObjectElement.idl:
* html/HTMLOptionsCollection.idl:
* html/HTMLSelectElement.idl:
* html/HTMLTableCellElement.idl:
* html/HTMLTextAreaElement.idl:
* page/DOMWindow.cpp:
(WebCore::DOMWindow::postMessage): Deleted.
* page/DOMWindow.h:
* workers/DedicatedWorkerGlobalScope.cpp:
(WebCore::DedicatedWorkerGlobalScope::postMessage): Deleted.
* workers/DedicatedWorkerGlobalScope.h:
* workers/Worker.cpp:
(WebCore::Worker::postMessage): Deleted.
* workers/Worker.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@204259 268f45cc-cd09-0410-ab3c-d52691b4dbfc

62 files changed:
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/DerivedSources.make
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/bindings/gobject/WebKitDOMHTMLPrivate.cpp
Source/WebCore/bindings/objc/DOMDocument.mm
Source/WebCore/bindings/objc/DOMHTMLBaseFontElement.mm
Source/WebCore/bindings/objc/DOMHTMLCollection.mm
Source/WebCore/bindings/objc/DOMWheelEvent.mm
Source/WebCore/css/RGBColor.idl
Source/WebCore/dom/Attr.idl
Source/WebCore/dom/DOMImplementation.idl
Source/WebCore/dom/Document.h
Source/WebCore/dom/Document.idl
Source/WebCore/dom/Element.idl
Source/WebCore/dom/EventException.h [deleted file]
Source/WebCore/dom/EventException.idl [deleted file]
Source/WebCore/dom/KeyboardEvent.idl
Source/WebCore/dom/MessageEvent.cpp
Source/WebCore/dom/MessageEvent.h
Source/WebCore/dom/MessagePort.cpp
Source/WebCore/dom/MessagePort.h
Source/WebCore/dom/Node.idl
Source/WebCore/dom/NodeFilter.idl
Source/WebCore/dom/OverflowEvent.idl
Source/WebCore/dom/WheelEvent.h
Source/WebCore/dom/WheelEvent.idl
Source/WebCore/html/HTMLAllCollection.cpp
Source/WebCore/html/HTMLAllCollection.h
Source/WebCore/html/HTMLAnchorElement.idl
Source/WebCore/html/HTMLAreaElement.idl
Source/WebCore/html/HTMLBaseFontElement.cpp [deleted file]
Source/WebCore/html/HTMLBaseFontElement.h [deleted file]
Source/WebCore/html/HTMLBaseFontElement.idl [deleted file]
Source/WebCore/html/HTMLButtonElement.idl
Source/WebCore/html/HTMLCanvasElement.idl
Source/WebCore/html/HTMLCollection.cpp
Source/WebCore/html/HTMLCollection.h
Source/WebCore/html/HTMLCollection.idl
Source/WebCore/html/HTMLElement.idl
Source/WebCore/html/HTMLElementsAllInOne.cpp
Source/WebCore/html/HTMLFieldSetElement.idl
Source/WebCore/html/HTMLFormElement.idl
Source/WebCore/html/HTMLHyperlinkElementUtils.idl
Source/WebCore/html/HTMLIFrameElement.idl
Source/WebCore/html/HTMLImageElement.idl
Source/WebCore/html/HTMLInputElement.idl
Source/WebCore/html/HTMLLabelElement.idl
Source/WebCore/html/HTMLLegendElement.idl
Source/WebCore/html/HTMLLinkElement.idl
Source/WebCore/html/HTMLMediaElement.idl
Source/WebCore/html/HTMLObjectElement.idl
Source/WebCore/html/HTMLOptionsCollection.idl
Source/WebCore/html/HTMLSelectElement.idl
Source/WebCore/html/HTMLTableCellElement.idl
Source/WebCore/html/HTMLTextAreaElement.idl
Source/WebCore/page/DOMWindow.cpp
Source/WebCore/page/DOMWindow.h
Source/WebCore/workers/DedicatedWorkerGlobalScope.cpp
Source/WebCore/workers/DedicatedWorkerGlobalScope.h
Source/WebCore/workers/Worker.cpp
Source/WebCore/workers/Worker.h

index 21ffe8e..ca8a8c9 100644 (file)
@@ -1653,7 +1653,6 @@ set(WebCore_SOURCES
     html/HTMLAudioElement.cpp
     html/HTMLBRElement.cpp
     html/HTMLBaseElement.cpp
-    html/HTMLBaseFontElement.cpp
     html/HTMLBodyElement.cpp
     html/HTMLButtonElement.cpp
     html/HTMLCanvasElement.cpp
index ca4fc4e..4524580 100644 (file)
@@ -1,3 +1,85 @@
+2016-08-04  Anders Carlsson  <andersca@apple.com>
+
+        Remove more unused bindings code
+        https://bugs.webkit.org/show_bug.cgi?id=160568
+
+        Reviewed by Sam Weinig.
+
+        * CMakeLists.txt:
+        * DerivedSources.make:
+        * WebCore.xcodeproj/project.pbxproj:
+        * bindings/objc/DOMDocument.mm:
+        (-[DOMDocument execCommand:userInterface:]):
+        (-[DOMDocument execCommand:]):
+        (-[DOMDocument getMatchedCSSRules:pseudoElement:]):
+        * bindings/objc/DOMHTMLBaseFontElement.mm:
+        * bindings/objc/DOMHTMLCollection.mm:
+        (-[DOMHTMLCollection tags:]):
+        * bindings/objc/DOMWheelEvent.mm:
+        (-[DOMWheelEvent isHorizontal]):
+        * css/RGBColor.idl:
+        * dom/Attr.idl:
+        * dom/DOMImplementation.idl:
+        * dom/Document.h:
+        * dom/Document.idl:
+        * dom/Element.idl:
+        * dom/EventException.h: Removed.
+        (WebCore::EventException::EventException): Deleted.
+        * dom/EventException.idl: Removed.
+        * dom/KeyboardEvent.idl:
+        * dom/MessageEvent.cpp:
+        (WebCore::MessageEvent::messagePort): Deleted.
+        (WebCore::MessageEvent::initMessageEvent): Deleted.
+        * dom/MessageEvent.h:
+        * dom/MessagePort.cpp:
+        (WebCore::MessagePort::postMessage): Deleted.
+        * dom/MessagePort.h:
+        * dom/Node.idl:
+        * dom/NodeFilter.idl:
+        * dom/OverflowEvent.idl:
+        * dom/WheelEvent.h:
+        * dom/WheelEvent.idl:
+        * html/HTMLAllCollection.cpp:
+        (WebCore::HTMLAllCollection::tags):
+        * html/HTMLAllCollection.h:
+        * html/HTMLAnchorElement.idl:
+        * html/HTMLAreaElement.idl:
+        * html/HTMLBaseFontElement.cpp: Removed.
+        (WebCore::HTMLBaseFontElement::HTMLBaseFontElement): Deleted.
+        * html/HTMLBaseFontElement.h: Removed.
+        * html/HTMLBaseFontElement.idl: Removed.
+        * html/HTMLButtonElement.idl:
+        * html/HTMLCanvasElement.idl:
+        * html/HTMLCollection.cpp:
+        (WebCore::HTMLCollection::tags): Deleted.
+        * html/HTMLCollection.h:
+        * html/HTMLCollection.idl:
+        * html/HTMLElement.idl:
+        * html/HTMLFieldSetElement.idl:
+        * html/HTMLFormElement.idl:
+        * html/HTMLHyperlinkElementUtils.idl:
+        * html/HTMLIFrameElement.idl:
+        * html/HTMLImageElement.idl:
+        * html/HTMLInputElement.idl:
+        * html/HTMLLabelElement.idl:
+        * html/HTMLLegendElement.idl:
+        * html/HTMLLinkElement.idl:
+        * html/HTMLMediaElement.idl:
+        * html/HTMLObjectElement.idl:
+        * html/HTMLOptionsCollection.idl:
+        * html/HTMLSelectElement.idl:
+        * html/HTMLTableCellElement.idl:
+        * html/HTMLTextAreaElement.idl:
+        * page/DOMWindow.cpp:
+        (WebCore::DOMWindow::postMessage): Deleted.
+        * page/DOMWindow.h:
+        * workers/DedicatedWorkerGlobalScope.cpp:
+        (WebCore::DedicatedWorkerGlobalScope::postMessage): Deleted.
+        * workers/DedicatedWorkerGlobalScope.h:
+        * workers/Worker.cpp:
+        (WebCore::Worker::postMessage): Deleted.
+        * workers/Worker.h:
+
 2016-08-08  Brady Eidson  <beidson@apple.com>
 
         Addressing late review feedback in bug 160605
index b855c07..a250b14 100644 (file)
@@ -361,7 +361,6 @@ JS_BINDING_IDLS = \
     $(WebCore)/html/HTMLAudioElement.idl \
     $(WebCore)/html/HTMLBRElement.idl \
     $(WebCore)/html/HTMLBaseElement.idl \
-    $(WebCore)/html/HTMLBaseFontElement.idl \
     $(WebCore)/html/HTMLBodyElement.idl \
     $(WebCore)/html/HTMLButtonElement.idl \
     $(WebCore)/html/HTMLCanvasElement.idl \
index db483a2..34a2877 100644 (file)
                A8DF3FCF097FA0FC0052981B /* HTMLFormControlsCollection.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8DF3FC7097FA0FB0052981B /* HTMLFormControlsCollection.cpp */; };
                A8DF3FD0097FA0FC0052981B /* HTMLCollection.h in Headers */ = {isa = PBXBuildFile; fileRef = A8DF3FC8097FA0FB0052981B /* HTMLCollection.h */; };
                A8DF3FD1097FA0FC0052981B /* HTMLCollection.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8DF3FC9097FA0FB0052981B /* HTMLCollection.cpp */; };
-               A8DF3FD2097FA0FC0052981B /* HTMLBaseFontElement.h in Headers */ = {isa = PBXBuildFile; fileRef = A8DF3FCA097FA0FB0052981B /* HTMLBaseFontElement.h */; };
-               A8DF3FD3097FA0FC0052981B /* HTMLBaseFontElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8DF3FCB097FA0FB0052981B /* HTMLBaseFontElement.cpp */; };
                A8DF3FD4097FA0FC0052981B /* HTMLNameCollection.h in Headers */ = {isa = PBXBuildFile; fileRef = A8DF3FCC097FA0FB0052981B /* HTMLNameCollection.h */; };
                A8DF3FD5097FA0FC0052981B /* HTMLNameCollection.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8DF3FCD097FA0FB0052981B /* HTMLNameCollection.cpp */; };
                A8DF4AE80980C42C0052981B /* RenderTableCol.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8DF4ADE0980C42C0052981B /* RenderTableCol.cpp */; };
                BC60D7C10D29A46300B9918F /* JSDOMCoreException.h in Headers */ = {isa = PBXBuildFile; fileRef = BC60D7BF0D29A46300B9918F /* JSDOMCoreException.h */; };
                BC60D8F20D2A11E000B9918F /* ExceptionBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC60D8F00D2A11E000B9918F /* ExceptionBase.cpp */; };
                BC60D8F30D2A11E000B9918F /* ExceptionBase.h in Headers */ = {isa = PBXBuildFile; fileRef = BC60D8F10D2A11E000B9918F /* ExceptionBase.h */; settings = {ATTRIBUTES = (Private, ); }; };
-               BC60D90C0D2A17CE00B9918F /* EventException.h in Headers */ = {isa = PBXBuildFile; fileRef = BC60D9090D2A17CE00B9918F /* EventException.h */; };
                BC60DA5B0D2A31F700B9918F /* XPathException.h in Headers */ = {isa = PBXBuildFile; fileRef = BC60DA590D2A31F700B9918F /* XPathException.h */; };
                BC60DB490D2A3D1E00B9918F /* JSXPathException.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC60DB470D2A3D1E00B9918F /* JSXPathException.cpp */; };
                BC60DB4A0D2A3D1E00B9918F /* JSXPathException.h in Headers */ = {isa = PBXBuildFile; fileRef = BC60DB480D2A3D1E00B9918F /* JSXPathException.h */; };
                1ADA4A1B1D22F2C0005A9A15 /* PaymentMerchantSessionCocoa.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = PaymentMerchantSessionCocoa.mm; sourceTree = "<group>"; };
                1AE00D57182DAC8D00087DD7 /* KeyedCoding.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KeyedCoding.h; sourceTree = "<group>"; };
                1AE2A9F00A1CDA5700B42B25 /* HTMLAreaElement.idl */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = HTMLAreaElement.idl; sourceTree = "<group>"; };
-               1AE2A9F10A1CDA5700B42B25 /* HTMLBaseFontElement.idl */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = HTMLBaseFontElement.idl; sourceTree = "<group>"; };
                1AE2A9F20A1CDA5700B42B25 /* HTMLBodyElement.idl */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = HTMLBodyElement.idl; sourceTree = "<group>"; };
                1AE2A9F30A1CDA5700B42B25 /* HTMLBRElement.idl */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = HTMLBRElement.idl; sourceTree = "<group>"; };
                1AE2A9F40A1CDA5700B42B25 /* HTMLFieldSetElement.idl */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = HTMLFieldSetElement.idl; sourceTree = "<group>"; };
                A8DF3FC7097FA0FB0052981B /* HTMLFormControlsCollection.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLFormControlsCollection.cpp; sourceTree = "<group>"; };
                A8DF3FC8097FA0FB0052981B /* HTMLCollection.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = HTMLCollection.h; sourceTree = "<group>"; };
                A8DF3FC9097FA0FB0052981B /* HTMLCollection.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLCollection.cpp; sourceTree = "<group>"; };
-               A8DF3FCA097FA0FB0052981B /* HTMLBaseFontElement.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = HTMLBaseFontElement.h; sourceTree = "<group>"; };
-               A8DF3FCB097FA0FB0052981B /* HTMLBaseFontElement.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLBaseFontElement.cpp; sourceTree = "<group>"; };
                A8DF3FCC097FA0FB0052981B /* HTMLNameCollection.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = HTMLNameCollection.h; sourceTree = "<group>"; };
                A8DF3FCD097FA0FB0052981B /* HTMLNameCollection.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLNameCollection.cpp; sourceTree = "<group>"; };
                A8DF4ADE0980C42C0052981B /* RenderTableCol.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = RenderTableCol.cpp; sourceTree = "<group>"; };
                BC60D7BF0D29A46300B9918F /* JSDOMCoreException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDOMCoreException.h; sourceTree = "<group>"; };
                BC60D8F00D2A11E000B9918F /* ExceptionBase.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ExceptionBase.cpp; sourceTree = "<group>"; };
                BC60D8F10D2A11E000B9918F /* ExceptionBase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ExceptionBase.h; sourceTree = "<group>"; };
-               BC60D9090D2A17CE00B9918F /* EventException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EventException.h; sourceTree = "<group>"; };
-               BC60D90A0D2A17CE00B9918F /* EventException.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = EventException.idl; sourceTree = "<group>"; };
                BC60DA590D2A31F700B9918F /* XPathException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XPathException.h; sourceTree = "<group>"; };
                BC60DA5A0D2A31F700B9918F /* XPathException.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = XPathException.idl; sourceTree = "<group>"; };
                BC60DB470D2A3D1E00B9918F /* JSXPathException.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSXPathException.cpp; sourceTree = "<group>"; };
                                A871DC1E0A15205700B12A68 /* HTMLBaseElement.cpp */,
                                A871DC130A15205700B12A68 /* HTMLBaseElement.h */,
                                A80E7AAF0A19D1F1007FB8C5 /* HTMLBaseElement.idl */,
-                               A8DF3FCB097FA0FB0052981B /* HTMLBaseFontElement.cpp */,
-                               A8DF3FCA097FA0FB0052981B /* HTMLBaseFontElement.h */,
-                               1AE2A9F10A1CDA5700B42B25 /* HTMLBaseFontElement.idl */,
                                9B24DE8C15194B9500C59C27 /* HTMLBDIElement.h */,
                                A871DE1D0A152AC800B12A68 /* HTMLBodyElement.cpp */,
                                A871DE200A152AC800B12A68 /* HTMLBodyElement.h */,
                                4138D3331244054800323D33 /* EventContext.h */,
                                418A06CF133C04D500CD379C /* EventDispatcher.cpp */,
                                418A06CE133C04D500CD379C /* EventDispatcher.h */,
-                               BC60D9090D2A17CE00B9918F /* EventException.h */,
-                               BC60D90A0D2A17CE00B9918F /* EventException.idl */,
                                935FBC4409BA00B900E230B1 /* EventListener.h */,
                                85AFA7410AAF298400E84305 /* EventListener.idl */,
                                AD4495F1141FC08900541EDF /* EventListenerMap.cpp */,
                                85031B420A44EFC700F992E0 /* Event.h in Headers */,
                                4138D3351244054800323D33 /* EventContext.h in Headers */,
                                418A06D0133C04D500CD379C /* EventDispatcher.h in Headers */,
-                               BC60D90C0D2A17CE00B9918F /* EventException.h in Headers */,
                                93C09A530B064DB3005ABD4D /* EventHandler.h in Headers */,
                                970B72A6145008EB00F00A37 /* EventHeaders.h in Headers */,
                                970B728A144FFAC600F00A37 /* EventInterfaces.h in Headers */,
                                7C5F28FC1A827D8400C0F31F /* HTMLAttachmentElement.h in Headers */,
                                E44613A20CD6331000FADA75 /* HTMLAudioElement.h in Headers */,
                                A871DC1F0A15205700B12A68 /* HTMLBaseElement.h in Headers */,
-                               A8DF3FD2097FA0FC0052981B /* HTMLBaseFontElement.h in Headers */,
                                9B24DE8E15194B9500C59C27 /* HTMLBDIElement.h in Headers */,
                                A871DE2C0A152AC800B12A68 /* HTMLBodyElement.h in Headers */,
                                A8CFF7AA0A156978000A4234 /* HTMLBRElement.h in Headers */,
                                7C5F28FB1A827D8400C0F31F /* HTMLAttachmentElement.cpp in Sources */,
                                E44613A10CD6331000FADA75 /* HTMLAudioElement.cpp in Sources */,
                                A871DC2A0A15205700B12A68 /* HTMLBaseElement.cpp in Sources */,
-                               A8DF3FD3097FA0FC0052981B /* HTMLBaseFontElement.cpp in Sources */,
                                A871DE290A152AC800B12A68 /* HTMLBodyElement.cpp in Sources */,
                                A8CFF7A80A156978000A4234 /* HTMLBRElement.cpp in Sources */,
                                A81369D3097374F600D74463 /* HTMLButtonElement.cpp in Sources */,
index d09b34a..3f49296 100644 (file)
@@ -37,7 +37,6 @@
 #include "HTMLAudioElement.h"
 #include "HTMLBRElement.h"
 #include "HTMLBaseElement.h"
-#include "HTMLBaseFontElement.h"
 #include "HTMLBodyElement.h"
 #include "HTMLButtonElement.h"
 #include "HTMLCanvasElement.h"
index 7f66048..6c641e2 100644 (file)
 
 - (BOOL)execCommand:(NSString *)command userInterface:(BOOL)userInterface
 {
-    WebCore::JSMainThreadNullState state;
-    return IMPL->execCommand(command, userInterface);
+    return [self execCommand:command userInterface:userInterface value:nullptr];
 }
 
 - (BOOL)execCommand:(NSString *)command
 {
-    WebCore::JSMainThreadNullState state;
-    return IMPL->execCommand(command);
+    return [self execCommand:command userInterface:NO value:nullptr];
 }
 
 - (BOOL)queryCommandEnabled:(NSString *)command
 
 - (DOMCSSRuleList *)getMatchedCSSRules:(DOMElement *)element pseudoElement:(NSString *)pseudoElement
 {
-    WebCore::JSMainThreadNullState state;
-    WebCore::DOMWindow* dv = IMPL->defaultView();
-    if (!dv)
-        return nil;
-    return kit(WTF::getPtr(dv->getMatchedCSSRules(core(element), pseudoElement)));
+    return [self getMatchedCSSRules:element pseudoElement:pseudoElement authorOnly:YES];
 }
 
 - (DOMCSSRuleList *)getMatchedCSSRules:(DOMElement *)element pseudoElement:(NSString *)pseudoElement authorOnly:(BOOL)authorOnly
index ae169d4..6c4c5eb 100644 (file)
 
 #import "DOMNodeInternal.h"
 #import "ExceptionHandlers.h"
-#import "HTMLBaseFontElement.h"
 #import "HTMLNames.h"
+#import "HTMLUnknownElement.h"
 #import "JSMainThreadExecState.h"
 #import "ThreadCheck.h"
 #import "URL.h"
 #import "WebScriptObjectPrivate.h"
 #import <wtf/GetPtr.h>
 
-#define IMPL static_cast<WebCore::HTMLBaseFontElement*>(reinterpret_cast<WebCore::Node*>(_internal))
+#define IMPL static_cast<WebCore::HTMLUnknownElement*>(reinterpret_cast<WebCore::Node*>(_internal))
 
 @implementation DOMHTMLBaseFontElement
 
index 9634670..101dd5c 100644 (file)
 
 - (DOMNodeList *)tags:(NSString *)name
 {
+    if (!name)
+        return nullptr;
+
     WebCore::JSMainThreadNullState state;
-    return kit(WTF::getPtr(IMPL->tags(name)));
+    return kit(static_cast<WebCore::NodeList*>(WTF::getPtr(IMPL->ownerNode().getElementsByTagName(name))));
 }
 
 @end
index 46676ef..2771dea 100644 (file)
@@ -91,8 +91,7 @@
 
 - (BOOL)isHorizontal
 {
-    WebCore::JSMainThreadNullState state;
-    return IMPL->isHorizontal();
+    return !!self.wheelDeltaX;
 }
 
 - (void)initWheelEvent:(int)inWheelDeltaX wheelDeltaY:(int)inWheelDeltaY view:(DOMAbstractView *)view screenX:(int)screenX screenY:(int)screenY clientX:(int)clientX clientY:(int)clientY ctrlKey:(BOOL)ctrlKey altKey:(BOOL)altKey shiftKey:(BOOL)shiftKey metaKey:(BOOL)metaKey
index 16744f4..b93dcb1 100644 (file)
@@ -30,8 +30,5 @@
 #if !defined(LANGUAGE_JAVASCRIPT) || !LANGUAGE_JAVASCRIPT
     readonly attribute CSSPrimitiveValue  alpha;
 #endif
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    readonly attribute Color              color;
-#endif
 };
 
index 1901a37..7a39dfe 100644 (file)
     // DOM Level 3
 
     readonly attribute boolean isId;
-
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    // This extension is no longer needed, but it has to remain available in Objective C, as it's public API.
-    readonly attribute CSSStyleDeclaration style;
-#endif
 };
 
index 9c2a90e..85d8145 100644 (file)
@@ -34,7 +34,7 @@
     [ObjCLegacyUnnamedParameters, RaisesException, NewObject] DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId, DOMString systemId);
 
     [NewObject, ObjCLegacyUnnamedParameters, RaisesException]
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C || defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
+#if defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
         Document
 #else
         XMLDocument
index 7519d1b..6a80dea 100644 (file)
@@ -98,7 +98,6 @@ class DocumentMarkerController;
 class DocumentParser;
 class DocumentSharedObjectPool;
 class DocumentType;
-class EntityReference;
 class ExtensionStyleSheets;
 class FloatRect;
 class FloatQuad;
index d4707a5..a638996 100644 (file)
     // FIXME: The default value for the last parameter should be the empty string.
     boolean execCommand(DOMString command, optional boolean userInterface = false, optional DOMString? value = null);
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    // FIXME: remove the these two versions once optional is implemented for Objective-C.
-    boolean execCommand(DOMString command, boolean userInterface);
-    boolean execCommand(DOMString command);
-#endif
-
     boolean queryCommandEnabled(DOMString command);
     boolean queryCommandIndeterm(DOMString command);
     boolean queryCommandState(DOMString command);
 
     // IE extensions
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C || defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
+#if defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
     attribute DOMString charset;
 #else
     [ImplementedAs=characterSetWithUTF8Fallback] readonly attribute DOMString charset;
     CSSStyleDeclaration createCSSStyleDeclaration();
 #endif
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    // DOM Level 2 Style Interface
-    [ObjCLegacyUnnamedParameters, ObjCUseDefaultView] CSSStyleDeclaration getComputedStyle(Element element, DOMString pseudoElement);
-
-    // WebKit extension
-    // FIXME: remove the first version once optional is implemented for Objective-C.
-    [ObjCUseDefaultView] CSSRuleList getMatchedCSSRules(Element? element,
-                                              DOMString pseudoElement);
-    [ObjCUseDefaultView] CSSRuleList getMatchedCSSRules(Element? element,
-                                              DOMString pseudoElement,
-                                              optional boolean authorOnly);
-                                              
-#endif
-
     CanvasRenderingContext getCSSCanvasContext(DOMString contextId, DOMString name, long width, long height);
 
     // HTML 5
index 0545143..3429599 100644 (file)
@@ -87,7 +87,7 @@
 
     [ImplementedAs=bindingsOffsetParent] readonly attribute Element offsetParent;
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C || defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
+#if defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
     void focus();
     void blur();
 #endif
     ClientRect getBoundingClientRect();
 #endif
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    // Objective-C extensions
-    readonly attribute DOMString innerText;
-#endif
-
 #if defined(ENABLE_FULLSCREEN_API) && ENABLE_FULLSCREEN_API
     // Mozilla version
     const unsigned short ALLOW_KEYBOARD_INPUT = 1;
diff --git a/Source/WebCore/dom/EventException.h b/Source/WebCore/dom/EventException.h
deleted file mode 100644 (file)
index baf0964..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1.  Redistributions of source code must retain the above copyright
- *     notice, this list of conditions and the following disclaimer.
- * 2.  Redistributions in binary form must reproduce the above copyright
- *     notice, this list of conditions and the following disclaimer in the
- *     documentation and/or other materials provided with the distribution.
- * 3.  Neither the name of Apple Inc. ("Apple") nor the names of
- *     its contributors may be used to endorse or promote products derived
- *     from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef EventException_h
-#define EventException_h
-
-#include "ExceptionBase.h"
-
-namespace WebCore {
-
-class EventException : public ExceptionBase {
-private:
-    explicit EventException(const ExceptionCodeDescription& description)
-        : ExceptionBase(description)
-    {
-    }
-};
-
-} // namespace WebCore
-
-#endif // EventException_h
diff --git a/Source/WebCore/dom/EventException.idl b/Source/WebCore/dom/EventException.idl
deleted file mode 100644 (file)
index 46f2e1e..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright (C) 2007 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1.  Redistributions of source code must retain the above copyright
- *     notice, this list of conditions and the following disclaimer.
- * 2.  Redistributions in binary form must reproduce the above copyright
- *     notice, this list of conditions and the following disclaimer in the
- *     documentation and/or other materials provided with the distribution.
- * 3.  Neither the name of Apple Inc. ("Apple") nor the names of
- *     its contributors may be used to endorse or promote products derived
- *     from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-
-// Introduced in DOM Level 2:
-[
-    NoInterfaceObject,
-    DoNotCheckConstants,
-    ImplementationLacksVTable,
-] exception EventException {
-
-    readonly attribute unsigned short   code;
-    readonly attribute DOMString        name;
-    readonly attribute DOMString        message;
-
-    // EventExceptionCode
-    const unsigned short UNSPECIFIED_EVENT_TYPE_ERR = 0;
-    const unsigned short DISPATCH_REQUEST_ERR = 1;
-};
-
-#endif
index 77dc061..d94d096 100644 (file)
                            optional boolean shiftKey = false,
                            optional boolean metaKey = false);
 #endif
-
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    // For backward compatibility.
-    void initKeyboardEvent(optional DOMString type,
-                           optional boolean canBubble,
-                           optional boolean cancelable,
-                           optional DOMWindow? view,
-                           optional DOMString keyIdentifier,
-                           optional unsigned long keyLocation,
-                           optional boolean ctrlKey,
-                           optional boolean altKey,
-                           optional boolean shiftKey,
-                           optional boolean metaKey,
-                           optional boolean altGraphKey);
-
-    void initKeyboardEvent(optional DOMString type,
-                           optional boolean canBubble,
-                           optional boolean cancelable,
-                           optional DOMWindow? view,
-                           optional DOMString keyIdentifier,
-                           optional unsigned long keyLocation,
-                           optional boolean ctrlKey,
-                           optional boolean altKey,
-                           optional boolean shiftKey,
-                           optional boolean metaKey);
-#endif
-
 };
 
index 51b7fc5..a3fe8dd 100644 (file)
@@ -192,24 +192,6 @@ SerializedScriptValue* MessageEvent::data() const
     return m_dataAsSerializedScriptValue.get();
 }
 
-MessagePort* MessageEvent::messagePort()
-{
-    if (!m_ports)
-        return 0;
-    ASSERT(m_ports->size() == 1);
-    return (*m_ports)[0].get();
-}
-
-void MessageEvent::initMessageEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<SerializedScriptValue> data, const String& origin, const String& lastEventId, DOMWindow* source, MessagePort* port)
-{
-    std::unique_ptr<MessagePortArray> ports;
-    if (port) {
-        ports = std::make_unique<MessagePortArray>();
-        ports->append(port);
-    }
-    initMessageEvent(type, canBubble, cancelable, data, origin, lastEventId, source, WTFMove(ports));
-}
-
 EventInterface MessageEvent::eventInterface() const
 {
     return MessageEventInterfaceType;
index 0cceaf4..bfc6802 100644 (file)
@@ -66,10 +66,6 @@ public:
     // FIXME: Remove this when we have custom ObjC binding support.
     SerializedScriptValue* data() const;
 
-    // Needed for Objective-C bindings (see bug 28774).
-    MessagePort* messagePort();
-    void initMessageEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<SerializedScriptValue> data, const String& origin, const String& lastEventId, DOMWindow* source, MessagePort*);
-
     EventInterface eventInterface() const override;
 
     enum DataType {
index a1f70fd..79a80ed 100644 (file)
@@ -53,14 +53,6 @@ MessagePort::~MessagePort()
         m_scriptExecutionContext->destroyedMessagePort(*this);
 }
 
-void MessagePort::postMessage(RefPtr<SerializedScriptValue>&& message, MessagePort* port, ExceptionCode& ec)
-{
-    MessagePortArray ports;
-    if (port)
-        ports.append(port);
-    postMessage(WTFMove(message), &ports, ec);
-}
-
 void MessagePort::postMessage(RefPtr<SerializedScriptValue>&& message, const MessagePortArray* ports, ExceptionCode& ec)
 {
     if (!isEntangled())
index 6318aa4..7677018 100644 (file)
@@ -51,8 +51,6 @@ namespace WebCore {
         virtual ~MessagePort();
 
         void postMessage(RefPtr<SerializedScriptValue>&& message, const MessagePortArray*, ExceptionCode&);
-        // Needed for Objective-C bindings (see bug 28774).
-        void postMessage(RefPtr<SerializedScriptValue>&& message, MessagePort*, ExceptionCode&);
 
         void start();
         void close();
index de3fc67..863f67d 100644 (file)
     JSCustomHeader,
     JSCustomMarkFunction,
     JSCustomPushEventHandlerScope,
-    ObjCPolymorphic,
-] interface Node
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    : Object, EventTarget
-#else
-    : EventTarget
-#endif
+] interface Node : EventTarget
  {
     // NodeType
     const unsigned short      ELEMENT_NODE                   = 1;
     // Introduced in DOM Level 2:
 
 #if !defined(LANGUAGE_JAVASCRIPT) || !LANGUAGE_JAVASCRIPT
-    [ObjCLegacyUnnamedParameters, ImplementedAs=isSupportedForBindings] boolean isSupported(optional DOMString feature, optional DOMString version);
+    [ImplementedAs=isSupportedForBindings] boolean isSupported(optional DOMString feature, optional DOMString version);
 #endif
 
     readonly attribute DOMString?        namespaceURI;
     [SetterRaisesException] attribute DOMString? prefix;
     readonly attribute DOMString?        localName;
 
-#if defined(LANGUAGE_OBJECTIVE_C)
-    readonly attribute NamedNodeMap     attributes;
-    boolean            hasAttributes();
-#endif
-
-
     // Introduced in DOM Level 3:
 
     readonly attribute USVString baseURI;
 
     // IE extensions
     readonly attribute Element          parentElement;
-
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    // Objective-C extensions
-    readonly attribute boolean          isContentEditable;
-
-    void inspect();
-#endif
 };
 
index fc70397..f1a3ede 100644 (file)
     const unsigned long       SHOW_DOCUMENT_FRAGMENT         = 0x00000400;
     const unsigned long       SHOW_NOTATION                  = 0x00000800;
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    short acceptNode(optional Node n);
-#else
     [Custom] unsigned short acceptNode(optional Node node);
-#endif
 };
 
index f530bf5..0dd79c1 100644 (file)
     [InitializedByEventConstructor] readonly attribute unsigned short orient;
     [InitializedByEventConstructor] readonly attribute boolean horizontalOverflow;
     [InitializedByEventConstructor] readonly attribute boolean verticalOverflow;
-
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    void initOverflowEvent(optional unsigned short orient,
-                           optional boolean horizontalOverflow,
-                           optional boolean verticalOverflow);
-#endif
 };
 
index 785add8..31baba2 100644 (file)
@@ -87,8 +87,6 @@ public:
     unsigned deltaMode() const { return m_deltaMode; }
 
     bool webkitDirectionInvertedFromDevice() const { return m_wheelEvent.directionInvertedFromDevice(); }
-    // Needed for Objective-C legacy support
-    bool isHorizontal() const { return m_wheelDelta.x(); }
 
     EventInterface eventInterface() const override;
 
index 3d3439c..6e18f90 100644 (file)
     // WebKit Extension
     readonly attribute boolean webkitDirectionInvertedFromDevice;
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    readonly attribute boolean isHorizontal;
-#endif /* defined(LANGUAGE_OBJECTIVE_C) */
-
 #if !defined(LANGUAGE_JAVASCRIPT) || !LANGUAGE_JAVASCRIPT
     void initWheelEvent(optional long wheelDeltaX,
                         optional long wheelDeltaY,
index dab0500..fcf3aa0 100644 (file)
@@ -59,4 +59,12 @@ Element* HTMLAllCollection::namedItemWithIndex(const AtomicString& name, unsigne
     return nullptr;
 }
 
+RefPtr<NodeList> HTMLAllCollection::tags(const String& name)
+{
+    if (name.isNull())
+        return nullptr;
+
+    return ownerNode().getElementsByTagName(name);
+}
+
 } // namespace WebCore
index b6011b4..089b72a 100644 (file)
@@ -35,6 +35,7 @@ public:
     static Ref<HTMLAllCollection> create(Document&, CollectionType);
 
     Element* namedItemWithIndex(const AtomicString& name, unsigned index) const;
+    RefPtr<NodeList> tags(const String&);
 
     // For CachedHTMLCollection.
     bool elementMatches(Element&) const { return true; }
index 18368a5..2a1d72a 100644 (file)
@@ -35,25 +35,12 @@ interface HTMLAnchorElement : HTMLElement {
     [Reflect] attribute DOMString target;
     [Reflect] attribute DOMString type;
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    [Reflect] attribute DOMString accessKey;
-#endif
-
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    readonly attribute DOMString text;
-#else
     [SetterRaisesException]  attribute DOMString text;
-#endif
 
 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
     [NotEnumerable] DOMString toString();
 #endif
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    // Objective-C extension:
-    readonly attribute URL absoluteLinkURL;
-#endif
-
     [PutForwards=value] readonly attribute DOMTokenList relList;
 };
 
index b60455f..3afca4c 100644 (file)
@@ -31,15 +31,6 @@ interface HTMLAreaElement : HTMLElement {
     [Reflect] attribute DOMString shape;
     [Reflect] attribute DOMString target;
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    [Reflect] attribute DOMString accessKey;
-#endif
-
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    // Objective-C extension:
-    readonly attribute URL absoluteLinkURL;
-#endif
-
     [PutForwards=value] readonly attribute DOMTokenList relList;
 };
 
diff --git a/Source/WebCore/html/HTMLBaseFontElement.cpp b/Source/WebCore/html/HTMLBaseFontElement.cpp
deleted file mode 100644 (file)
index b2c1aff..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
- *           (C) 1999 Antti Koivisto (koivisto@kde.org)
- * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2010 Apple Inc. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- *
- */
-
-#include "config.h"
-#include "HTMLBaseFontElement.h"
-
-#include "HTMLNames.h"
-
-namespace WebCore {
-
-using namespace HTMLNames;
-
-HTMLBaseFontElement::HTMLBaseFontElement(const QualifiedName& tagName, Document& document)
-    : HTMLElement(tagName, document)
-{
-    ASSERT(hasTagName(basefontTag));
-}
-
-}
diff --git a/Source/WebCore/html/HTMLBaseFontElement.h b/Source/WebCore/html/HTMLBaseFontElement.h
deleted file mode 100644 (file)
index c4fb66e..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
- *           (C) 1999 Antti Koivisto (koivisto@kde.org)
- * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2010 Apple Inc. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- *
- */
-
-#ifndef HTMLBaseFontElement_h
-#define HTMLBaseFontElement_h
-
-#include "HTMLElement.h"
-
-namespace WebCore {
-
-// Only used by ObjC bindings.
-class HTMLBaseFontElement final : public HTMLElement {
-private:
-    HTMLBaseFontElement(const QualifiedName&, Document&);
-};
-
-} // namespace
-
-#endif
diff --git a/Source/WebCore/html/HTMLBaseFontElement.idl b/Source/WebCore/html/HTMLBaseFontElement.idl
deleted file mode 100644 (file)
index 9c6da7f..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright (C) 2006, 2009, 2010 Apple Inc. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- */
-
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-
-[
-    NoInterfaceObject
-] interface HTMLBaseFontElement : HTMLElement {
-    [Reflect] attribute DOMString color;
-    [Reflect] attribute DOMString face;
-    [Reflect] attribute DOMString size; // this changed to a long, but our existing API is a string
-};
-
-#endif
index e40c1eb..804c8ef 100644 (file)
@@ -41,11 +41,5 @@ interface HTMLButtonElement : HTMLElement {
 
     readonly attribute NodeList labels;
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    [Reflect] attribute DOMString accessKey;
-#endif
-
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
     void click();
-#endif
 };
index 08fc12a..beba38d 100644 (file)
@@ -29,7 +29,7 @@
     ReportExtraMemoryCost,
     ReportExternalMemoryCost,
 ] interface HTMLCanvasElement : HTMLElement {
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C || defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
+#if defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
     attribute long width;
     attribute long height;
 #else
index 6a2f15f..929f4e6 100644 (file)
@@ -228,12 +228,4 @@ Vector<Ref<Element>> HTMLCollection::namedItems(const AtomicString& name) const
     return elements;
 }
 
-RefPtr<NodeList> HTMLCollection::tags(const String& name)
-{
-    if (name.isNull())
-        return nullptr;
-
-    return ownerNode().getElementsByTagName(name);
-}
-
 } // namespace WebCore
index d12e3d4..595b65d 100644 (file)
@@ -70,7 +70,6 @@ public:
     Element* item(unsigned index) const override = 0; // Tighten return type from NodeList::item().
     virtual Element* namedItem(const AtomicString& name) const = 0;
     const Vector<AtomicString>& supportedPropertyNames();
-    RefPtr<NodeList> tags(const String&);
 
     // Non-DOM API
     Vector<Ref<Element>> namedItems(const AtomicString& name) const;
index 6fb3af9..45aba20 100644 (file)
 ] interface HTMLCollection {
     readonly attribute unsigned long length;
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C || defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
+#if defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
     getter Node item(unsigned long index);
     getter Node namedItem(DOMString name);
 #else
     getter Element? item(unsigned long index);
     getter Element? namedItem(DOMString name);
 #endif
-
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    NodeList tags(optional DOMString name);
-#endif
 };
 
index d2bdf3a..66e882e 100644 (file)
     void focus();
     void blur();
 #endif
-
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    [Reflect] attribute DOMString id;
-    readonly attribute HTMLCollection children;
-    readonly attribute DOMString titleDisplayString;
-#endif
 };
 
 HTMLElement implements GlobalEventHandlers;
index cc6a970..dd663d2 100644 (file)
@@ -41,7 +41,6 @@
 #include "HTMLAudioElement.cpp"
 #include "HTMLBRElement.cpp"
 #include "HTMLBaseElement.cpp"
-#include "HTMLBaseFontElement.cpp"
 #include "HTMLBodyElement.cpp"
 #include "HTMLButtonElement.cpp"
 #include "HTMLDataElement.cpp"
index 2f58701..82c1402 100644 (file)
@@ -24,7 +24,7 @@ interface HTMLFieldSetElement : HTMLElement {
 
     readonly attribute DOMString type;
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C || defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
+#if defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
     [ImplementedAs=elementsForNativeBindings] readonly attribute HTMLCollection elements;
 #else
     readonly attribute HTMLFormControlsCollection elements;
index f6ee7bf..ed50c82 100644 (file)
@@ -34,7 +34,7 @@
     [Reflect] attribute boolean noValidate;
     [Reflect] attribute DOMString target;
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C || defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
+#if defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
     [ImplementedAs=elementsForNativeBindings] readonly attribute HTMLCollection elements;
 #else
     readonly attribute HTMLFormControlsCollection elements;
index 50bed0f..c292b0a 100644 (file)
     [Reflect, URL] attribute DOMString href;
     readonly attribute DOMString origin;
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    readonly attribute DOMString protocol;
-    readonly attribute DOMString host;
-    readonly attribute DOMString hostname;
-    readonly attribute DOMString port;
-    readonly attribute DOMString pathname;
-    readonly attribute DOMString search;
-    readonly attribute DOMString hash;
-#else
     attribute USVString protocol;
     attribute USVString username;
     attribute USVString password;
@@ -47,5 +38,4 @@
     attribute USVString pathname;
     attribute USVString search;
     attribute USVString hash;
-#endif
 };
index 4276e47..970e33c 100644 (file)
@@ -27,7 +27,7 @@ interface HTMLIFrameElement : HTMLElement {
     [Reflect, TreatNullAs=EmptyString] attribute DOMString marginWidth;
     [Reflect] attribute DOMString name;
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C || defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
+#if defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
     [Reflect] attribute DOMString sandbox;
 #else
     [PutForwards=value] readonly attribute DOMTokenList sandbox;
index ee007e1..265fa41 100644 (file)
     readonly attribute long naturalWidth;
     readonly attribute long x;
     readonly attribute long y;
-
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    // Objective-C extension:
-    readonly attribute DOMString altDisplayString;
-    readonly attribute URL absoluteImageURL;
-#endif
 };
 
index 7aed233..f7f672d 100644 (file)
     [Reflect] attribute DOMString placeholder;
     [Reflect] attribute boolean readOnly;
     [Reflect] attribute boolean required;
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    [ObjCImplementedAsUnsignedLong] attribute DOMString size; // DOM level 2 changed this to a long, but ObjC API is a string
-#else
     [SetterRaisesException] attribute unsigned long size; // Changed string -> long -> unsigned long
-#endif
     [Reflect, URL] attribute USVString src;
     [Reflect] attribute DOMString step;
     attribute DOMString type; // readonly dropped as part of DOM level 2
                         unsigned long end,
                         optional DOMString selectionMode);
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    [Custom] void setSelectionRange(long start, long end);
-#else
     [Custom] void setSelectionRange(long start, long end, optional DOMString direction);
-#endif
 
     // Non-standard attributes
     [Reflect] attribute DOMString align;
     [Reflect] attribute DOMString useMap;
     [Reflect] attribute boolean incremental;
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    [Reflect] attribute DOMString accessKey;
-#endif
-
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    void click();
-#endif
-
 #if !defined(LANGUAGE_JAVASCRIPT) || !LANGUAGE_JAVASCRIPT
     void setValueForUser(DOMString value);
 #endif
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    // Objective-C extension:
-    readonly attribute DOMString altDisplayString;
-    readonly attribute URL absoluteImageURL;
-#endif
-
     [Conditional=IOS_AUTOCORRECT_AND_AUTOCAPITALIZE] attribute boolean autocorrect;
 
     [Conditional=IOS_AUTOCORRECT_AND_AUTOCAPITALIZE, TreatNullAs=EmptyString] attribute DOMString autocapitalize;
index 92e5f4b..fa37360 100644 (file)
@@ -22,8 +22,5 @@ interface HTMLLabelElement : HTMLElement {
     readonly attribute HTMLFormElement form;
     [Reflect=for] attribute DOMString htmlFor;
     readonly attribute HTMLElement control;
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    [Reflect] attribute DOMString accessKey;
-#endif
 };
 
index 749745e..e8e8871 100644 (file)
@@ -21,8 +21,5 @@
 interface HTMLLegendElement : HTMLElement {
     readonly attribute HTMLFormElement form;
     [Reflect] attribute DOMString align;
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    [Reflect] attribute DOMString accessKey;
-#endif
 };
 
index 128efcf..7ae21b0 100644 (file)
@@ -30,9 +30,7 @@
     [Reflect] attribute DOMString media;
     [Reflect] attribute DOMString rel;
     [Reflect] attribute DOMString rev;
-#if (defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT) || (defined(LANGUAGE_GOBJECT) || LANGUAGE_GOBJECT)
     [PutForwards=value] readonly attribute DOMTokenList sizes;
-#endif
     [Reflect] attribute DOMString target;
     [Reflect] attribute DOMString type;
     [Reflect] attribute DOMString as;
     // DOM Level 2 Style
     readonly attribute StyleSheet sheet;
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    // Objective-C extension:
-    readonly attribute URL absoluteLinkURL;
-#endif
-
     [PutForwards=value] readonly attribute DOMTokenList relList;
 };
 
index d80bef2..3217f35 100644 (file)
     readonly attribute boolean ended;
     [Reflect] attribute boolean autoplay;
     [Reflect] attribute boolean loop;
-#if !defined(LANGUAGE_OBJECTIVE_C) || !LANGUAGE_OBJECTIVE_C
     Promise play();
-#else
-    void play();
-#endif
     void pause();
     void fastSeek(unrestricted double time);
 
index f7acee8..8fdfeb8 100644 (file)
     [CheckSecurityForNode] readonly attribute Document contentDocument;
 
     [CheckSecurityForNode, RaisesException] SVGDocument getSVGDocument();
-
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    // Objective-C extension:
-    readonly attribute URL absoluteImageURL;
-#endif
 };
 
index edc8d4d..1314e66 100644 (file)
@@ -26,7 +26,7 @@
     attribute long selectedIndex;
     [CustomSetter, SetterRaisesException] attribute unsigned long length;
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C || defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
+#if defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
     getter Node namedItem(DOMString name);
 #else
     getter HTMLOptionElement? item(unsigned long index);
@@ -47,9 +47,5 @@
     // FIXME: This overload is not in the specification and has been dropped in Blink.
     void remove(HTMLOptionElement option);
 #endif
-
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    Node item(unsigned long index);
-#endif
 };
 
index c904c53..5af4ffe 100644 (file)
@@ -30,7 +30,7 @@
     [Reflect] attribute DOMString name;
     [Reflect] attribute boolean required;
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C || defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
+#if defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
     attribute long size;
 #else
     attribute unsigned long size;
     readonly attribute DOMString type;
 
     readonly attribute HTMLOptionsCollection options;
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    readonly attribute long length;
-#else
     [SetterRaisesException] attribute unsigned long length;
-#endif
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C || defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
+#if defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
     getter Node item(unsigned long index);
     Node namedItem(DOMString name);
 #else
index 63c0561..4c96699 100644 (file)
@@ -26,7 +26,7 @@ interface HTMLTableCellElement : HTMLElement {
     [Reflect=char] attribute DOMString ch;
     [Reflect=charoff] attribute DOMString chOff;
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C || defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
+#if defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
     [ImplementedAs=colSpanForBindings] attribute long colSpan;
     [ImplementedAs=rowSpanForBindings] attribute long rowSpan;
 #else
index e53e4d1..b0c8cc1 100644 (file)
@@ -29,7 +29,7 @@ interface HTMLTextAreaElement : HTMLElement {
     [Reflect] attribute DOMString placeholder;
     [Reflect] attribute boolean readOnly;
     [Reflect] attribute boolean required;
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C || defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
+#if defined(LANGUAGE_GOBJECT) && LANGUAGE_GOBJECT
     attribute long rows;
     attribute long cols;
 #else
@@ -62,21 +62,13 @@ interface HTMLTextAreaElement : HTMLElement {
                         unsigned long end,
                         optional DOMString selectionMode);
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    void setSelectionRange(long start, long end);
-#else
     void setSelectionRange(optional long start = 0,
                            optional long end = 0,
                            optional DOMString direction);
-#endif
 
     [Conditional=IOS_AUTOCORRECT_AND_AUTOCAPITALIZE] attribute boolean autocorrect;
 
     [Conditional=IOS_AUTOCORRECT_AND_AUTOCAPITALIZE, TreatNullAs=EmptyString] attribute DOMString autocapitalize;
 
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
-    [Reflect] attribute DOMString accessKey;
-#endif
-
     attribute DOMString autocomplete;
 };
index f42384d..15b977c 100644 (file)
@@ -880,14 +880,6 @@ Storage* DOMWindow::localStorage(ExceptionCode& ec) const
     return m_localStorage.get();
 }
 
-void DOMWindow::postMessage(PassRefPtr<SerializedScriptValue> message, MessagePort* port, const String& targetOrigin, DOMWindow& source, ExceptionCode& ec)
-{
-    MessagePortArray ports;
-    if (port)
-        ports.append(port);
-    postMessage(message, &ports, targetOrigin, source, ec);
-}
-
 void DOMWindow::postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePortArray* ports, const String& targetOrigin, DOMWindow& source, ExceptionCode& ec)
 {
     if (!isCurrentlyDisplayedInFrame())
index f8889e7..a6b4b2e 100644 (file)
@@ -244,8 +244,6 @@ namespace WebCore {
         String crossDomainAccessErrorMessage(const DOMWindow& activeWindow);
 
         void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePortArray*, const String& targetOrigin, DOMWindow& source, ExceptionCode&);
-        // Needed for Objective-C bindings (see bug 28774).
-        void postMessage(PassRefPtr<SerializedScriptValue> message, MessagePort*, const String& targetOrigin, DOMWindow& source, ExceptionCode&);
         void postMessageTimerFired(PostMessageTimer&);
         void dispatchMessageEventWithOriginCheck(SecurityOrigin* intendedTargetOrigin, Event&, PassRefPtr<Inspector::ScriptCallStack>);
 
index 2922bb6..e2253be 100644 (file)
@@ -63,14 +63,6 @@ EventTargetInterface DedicatedWorkerGlobalScope::eventTargetInterface() const
     return DedicatedWorkerGlobalScopeEventTargetInterfaceType;
 }
 
-void DedicatedWorkerGlobalScope::postMessage(RefPtr<SerializedScriptValue>&& message, MessagePort* port, ExceptionCode& ec)
-{
-    MessagePortArray ports;
-    if (port)
-        ports.append(port);
-    postMessage(WTFMove(message), &ports, ec);
-}
-
 void DedicatedWorkerGlobalScope::postMessage(RefPtr<SerializedScriptValue>&& message, const MessagePortArray* ports, ExceptionCode& ec)
 {
     // Disentangle the port in preparation for sending it to the remote context.
index 6f4d774..4cc5f7e 100644 (file)
@@ -54,8 +54,6 @@ namespace WebCore {
         EventTargetInterface eventTargetInterface() const override;
 
         void postMessage(RefPtr<SerializedScriptValue>&&, const MessagePortArray*, ExceptionCode&);
-        // Needed for Objective-C bindings (see bug 28774).
-        void postMessage(RefPtr<SerializedScriptValue>&&, MessagePort*, ExceptionCode&);
 
         DedicatedWorkerThread& thread();
 
index 9d62bbe..306d247 100644 (file)
@@ -107,14 +107,6 @@ Worker::~Worker()
     m_contextProxy->workerObjectDestroyed();
 }
 
-void Worker::postMessage(RefPtr<SerializedScriptValue>&& message, MessagePort* port, ExceptionCode& ec)
-{
-    MessagePortArray ports;
-    if (port)
-        ports.append(port);
-    postMessage(WTFMove(message), &ports, ec);
-}
-
 void Worker::postMessage(RefPtr<SerializedScriptValue>&& message, const MessagePortArray* ports, ExceptionCode& ec)
 {
     // Disentangle the port in preparation for sending it to the remote context.
index 7829693..d1b2445 100644 (file)
@@ -56,8 +56,6 @@ namespace WebCore {
         EventTargetInterface eventTargetInterface() const override { return WorkerEventTargetInterfaceType; }
 
         void postMessage(RefPtr<SerializedScriptValue>&& message, const MessagePortArray*, ExceptionCode&);
-        // Needed for Objective-C bindings (see bug 28774).
-        void postMessage(RefPtr<SerializedScriptValue>&& message, MessagePort*, ExceptionCode&);
 
         void terminate();