Diff
Modified: trunk/LayoutTests/ChangeLog (205087 => 205088)
--- trunk/LayoutTests/ChangeLog 2016-08-28 00:11:49 UTC (rev 205087)
+++ trunk/LayoutTests/ChangeLog 2016-08-28 00:12:38 UTC (rev 205088)
@@ -1,3 +1,14 @@
+2016-08-27 Sam Weinig <[email protected]>
+
+ Remove more custom _javascript_ bindings
+ https://bugs.webkit.org/show_bug.cgi?id=161293
+
+ Reviewed by Darin Adler.
+
+ * webaudio/audionode-expected.txt:
+ * webaudio/audionode.html:
+ Update test for correct behavior of the constructor.
+
2016-08-27 Joseph Pecoraro <[email protected]>
Race between creating/deleting a database in test
Modified: trunk/LayoutTests/webaudio/audionode-expected.txt (205087 => 205088)
--- trunk/LayoutTests/webaudio/audionode-expected.txt 2016-08-28 00:11:49 UTC (rev 205087)
+++ trunk/LayoutTests/webaudio/audionode-expected.txt 2016-08-28 00:12:38 UTC (rev 205088)
@@ -11,7 +11,7 @@
PASS connect() exception thrown for illegal input index.
PASS audioNode.connect(context.destination) succeeded.
PASS exception thrown when connecting to other context's node.
-PASS exception thrown when creating audio context with too many arguments.
+PASS exception should not be thrown when creating audio context with too many arguments.
PASS AudioNode is an EventTarget
PASS successfullyParsed is true
Modified: trunk/LayoutTests/webaudio/audionode.html (205087 => 205088)
--- trunk/LayoutTests/webaudio/audionode.html 2016-08-28 00:11:49 UTC (rev 205087)
+++ trunk/LayoutTests/webaudio/audionode.html 2016-08-28 00:12:38 UTC (rev 205088)
@@ -92,9 +92,9 @@
// Create a new context with too many arguments
try {
context2 = new webkitAudioContext(0, 0);
- testFailed("exception should be thrown when creating audio context with too many arguments.");
+ testPassed("exception should not be thrown when creating audio context with too many arguments.");
} catch(e) {
- testPassed("exception thrown when creating audio context with too many arguments.");
+ testFailed("exception thrown when creating audio context with too many arguments.");
}
// Ensure it is an EventTarget
Modified: trunk/Source/WebCore/CMakeLists.txt (205087 => 205088)
--- trunk/Source/WebCore/CMakeLists.txt 2016-08-28 00:11:49 UTC (rev 205087)
+++ trunk/Source/WebCore/CMakeLists.txt 2016-08-28 00:12:38 UTC (rev 205088)
@@ -1112,7 +1112,6 @@
bindings/js/IDBBindingUtilities.cpp
bindings/js/JSAnimationTimelineCustom.cpp
bindings/js/JSAttrCustom.cpp
- bindings/js/JSAudioContextCustom.cpp
bindings/js/JSAudioTrackCustom.cpp
bindings/js/JSAudioTrackListCustom.cpp
bindings/js/JSBlobCustom.cpp
@@ -1141,7 +1140,6 @@
bindings/js/JSCustomSQLStatementErrorCallback.cpp
bindings/js/JSCustomXPathNSResolver.cpp
bindings/js/JSDOMBinding.cpp
- bindings/js/JSDOMFormDataCustom.cpp
bindings/js/JSDOMGlobalObject.cpp
bindings/js/JSDOMGlobalObjectTask.cpp
bindings/js/JSDOMMimeTypeArrayCustom.cpp
@@ -1244,7 +1242,6 @@
bindings/js/JSWebGL2RenderingContextCustom.cpp
bindings/js/JSWebGLRenderingContextBaseCustom.cpp
bindings/js/JSWebGLRenderingContextCustom.cpp
- bindings/js/JSWebKitPointCustom.cpp
bindings/js/JSWebKitSubtleCryptoCustom.cpp
bindings/js/JSWorkerCustom.cpp
bindings/js/JSWorkerGlobalScopeBase.cpp
Modified: trunk/Source/WebCore/ChangeLog (205087 => 205088)
--- trunk/Source/WebCore/ChangeLog 2016-08-28 00:11:49 UTC (rev 205087)
+++ trunk/Source/WebCore/ChangeLog 2016-08-28 00:12:38 UTC (rev 205088)
@@ -1,3 +1,48 @@
+2016-08-27 Sam Weinig <[email protected]>
+
+ Remove more custom _javascript_ bindings
+ https://bugs.webkit.org/show_bug.cgi?id=161293
+
+ Reviewed by Darin Adler.
+
+ Remove custom bindings for AudioContext, DOMFormData, MediaSession and WebKitPoint.
+
+ * Modules/mediasession/MediaSession.cpp:
+ (WebCore::MediaSession::MediaSession):
+ * Modules/mediasession/MediaSession.h:
+ Change to take Document explicitly, since that is what it
+ expecting.
+
+ * Modules/webaudio/AudioContext.cpp:
+ (WebCore::AudioContext::create):
+ * Modules/webaudio/AudioContext.h:
+ Remove unused ExceptionCode parameter.
+
+ * Modules/webaudio/AudioContext.idl:
+ * html/DOMFormData.idl:
+ * html/HTMLFormElement.idl:
+ * page/WebKitPoint.idl:
+ Switch to use the generated constructor.
+
+ * CMakeLists.txt:
+ * WebCore.xcodeproj/project.pbxproj:
+ * bindings/js/JSBindingsAllInOne.cpp:
+ Remove files.
+
+ * bindings/js/JSAudioContextCustom.cpp: Removed.
+ * bindings/js/JSDOMFormDataCustom.cpp: Removed.
+ * bindings/js/JSMediaSessionCustom.cpp: Removed.
+ * bindings/js/JSWebKitPointCustom.cpp: Removed.
+ Remove in favor of generated variants.
+
+ * bindings/js/JSHTMLInputElementCustom.h: Removed.
+ Remove unused header.
+
+ * page/WebKitPoint.h:
+ (WebCore::WebKitPoint::create):
+ (WebCore::WebKitPoint::WebKitPoint):
+ Move NaN replacement into the implementation and out of the bindings.
+
2016-08-27 Ryosuke Niwa <[email protected]>
Add adopted callback for custom elements
Modified: trunk/Source/WebCore/Modules/mediasession/MediaSession.cpp (205087 => 205088)
--- trunk/Source/WebCore/Modules/mediasession/MediaSession.cpp 2016-08-28 00:11:49 UTC (rev 205087)
+++ trunk/Source/WebCore/Modules/mediasession/MediaSession.cpp 2016-08-28 00:12:38 UTC (rev 205088)
@@ -37,8 +37,8 @@
namespace WebCore {
-MediaSession::MediaSession(ScriptExecutionContext& context, Kind kind)
- : m_document(downcast<Document>(context))
+MediaSession::MediaSession(Document& document, Kind kind)
+ : m_document(document)
, m_kind(kind)
{
// 4. Media Sessions
Modified: trunk/Source/WebCore/Modules/mediasession/MediaSession.h (205087 => 205088)
--- trunk/Source/WebCore/Modules/mediasession/MediaSession.h 2016-08-28 00:11:49 UTC (rev 205087)
+++ trunk/Source/WebCore/Modules/mediasession/MediaSession.h 2016-08-28 00:12:38 UTC (rev 205088)
@@ -41,9 +41,9 @@
enum class Kind { Content, Transient, TransientSolo, Ambient };
enum class State { Idle, Active, Interrupted };
- static Ref<MediaSession> create(ScriptExecutionContext& context, Kind kind)
+ static Ref<MediaSession> create(Document& document, Kind kind)
{
- return adoptRef(*new MediaSession(context, kind));
+ return adoptRef(*new MediaSession(document, kind));
}
~MediaSession();
@@ -76,7 +76,7 @@
private:
friend class HTMLMediaElement;
- MediaSession(ScriptExecutionContext&, const String&);
+ MediaSession(Document&, const String&);
void addMediaElement(HTMLMediaElement&);
void removeMediaElement(HTMLMediaElement&);
Modified: trunk/Source/WebCore/Modules/webaudio/AudioContext.cpp (205087 => 205088)
--- trunk/Source/WebCore/Modules/webaudio/AudioContext.cpp 2016-08-28 00:11:49 UTC (rev 205087)
+++ trunk/Source/WebCore/Modules/webaudio/AudioContext.cpp 2016-08-28 00:12:38 UTC (rev 205088)
@@ -114,10 +114,8 @@
const unsigned MaxHardwareContexts = 4;
unsigned AudioContext::s_hardwareContextCount = 0;
-RefPtr<AudioContext> AudioContext::create(Document& document, ExceptionCode& ec)
+RefPtr<AudioContext> AudioContext::create(Document& document)
{
- UNUSED_PARAM(ec);
-
ASSERT(isMainThread());
if (s_hardwareContextCount >= MaxHardwareContexts)
return nullptr;
Modified: trunk/Source/WebCore/Modules/webaudio/AudioContext.h (205087 => 205088)
--- trunk/Source/WebCore/Modules/webaudio/AudioContext.h 2016-08-28 00:11:49 UTC (rev 205087)
+++ trunk/Source/WebCore/Modules/webaudio/AudioContext.h 2016-08-28 00:12:38 UTC (rev 205088)
@@ -77,7 +77,7 @@
class AudioContext : public ActiveDOMObject, public ThreadSafeRefCounted<AudioContext>, public EventTargetWithInlineData, public MediaCanStartListener, public MediaProducer, private PlatformMediaSessionClient {
public:
// Create an AudioContext for rendering to the audio hardware.
- static RefPtr<AudioContext> create(Document&, ExceptionCode&);
+ static RefPtr<AudioContext> create(Document&);
virtual ~AudioContext();
Modified: trunk/Source/WebCore/Modules/webaudio/AudioContext.idl (205087 => 205088)
--- trunk/Source/WebCore/Modules/webaudio/AudioContext.idl 2016-08-28 00:11:49 UTC (rev 205087)
+++ trunk/Source/WebCore/Modules/webaudio/AudioContext.idl 2016-08-28 00:12:38 UTC (rev 205088)
@@ -33,7 +33,8 @@
[
ActiveDOMObject,
Conditional=WEB_AUDIO,
- CustomConstructor,
+ Constructor,
+ ConstructorCallWith=Document,
EnabledBySetting=WebAudio,
ExportMacro=WEBCORE_EXPORT,
InterfaceName=webkitAudioContext,
Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (205087 => 205088)
--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj 2016-08-28 00:11:49 UTC (rev 205087)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj 2016-08-28 00:12:38 UTC (rev 205088)
@@ -193,7 +193,6 @@
077AF14018F4AE400001ED61 /* SerializedPlatformRepresentation.h in Headers */ = {isa = PBXBuildFile; fileRef = 077AF13E18F4AE400001ED61 /* SerializedPlatformRepresentation.h */; settings = {ATTRIBUTES = (Private, ); }; };
077AF14318F4B1BB0001ED61 /* SerializedPlatformRepresentationMac.h in Headers */ = {isa = PBXBuildFile; fileRef = 077AF14118F4B1BB0001ED61 /* SerializedPlatformRepresentationMac.h */; };
077AF14418F4B1BB0001ED61 /* SerializedPlatformRepresentationMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 077AF14218F4B1BB0001ED61 /* SerializedPlatformRepresentationMac.mm */; };
- 077B640F1B8F5D6B003E9AD5 /* JSMediaSessionCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 077B640E1B8F5375003E9AD5 /* JSMediaSessionCustom.cpp */; };
077B64121B94F12E003E9AD5 /* MediaPlaybackTargetPickerMock.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 077B64101B94F12E003E9AD5 /* MediaPlaybackTargetPickerMock.cpp */; };
077B64131B94F12E003E9AD5 /* MediaPlaybackTargetPickerMock.h in Headers */ = {isa = PBXBuildFile; fileRef = 077B64111B94F12E003E9AD5 /* MediaPlaybackTargetPickerMock.h */; settings = {ATTRIBUTES = (Private, ); }; };
077B64161B95F703003E9AD5 /* MediaPlaybackTargetMock.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 077B64141B95F703003E9AD5 /* MediaPlaybackTargetMock.cpp */; };
@@ -1234,7 +1233,6 @@
2DE70023192FE82A00B0975C /* DisplayRefreshMonitorMac.h in Headers */ = {isa = PBXBuildFile; fileRef = 2DE70022192FE82A00B0975C /* DisplayRefreshMonitorMac.h */; };
2E0888D41148848A00AF4265 /* JSDOMFormData.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2E0888D21148848A00AF4265 /* JSDOMFormData.cpp */; };
2E0888D51148848A00AF4265 /* JSDOMFormData.h in Headers */ = {isa = PBXBuildFile; fileRef = 2E0888D31148848A00AF4265 /* JSDOMFormData.h */; };
- 2E0888E6114884E200AF4265 /* JSDOMFormDataCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2E0888E5114884E200AF4265 /* JSDOMFormDataCustom.cpp */; };
2E19516B1B6598D200DF6EEF /* WheelEventDeltaFilter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2E19516A1B6598D200DF6EEF /* WheelEventDeltaFilter.cpp */; };
2E2D99CD10E2BBDA00496337 /* JSBlob.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2E2D99CB10E2BBDA00496337 /* JSBlob.cpp */; };
2E2D99CE10E2BBDA00496337 /* JSBlob.h in Headers */ = {isa = PBXBuildFile; fileRef = 2E2D99CC10E2BBDA00496337 /* JSBlob.h */; settings = {ATTRIBUTES = (Private, ); }; };
@@ -4992,7 +4990,6 @@
BC2441C40E8B65D00055320F /* ScrollView.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC2441C30E8B65D00055320F /* ScrollView.cpp */; };
BC274B2F140EBEB200EADFA6 /* CSSBorderImageSliceValue.h in Headers */ = {isa = PBXBuildFile; fileRef = BC274B2E140EBEB200EADFA6 /* CSSBorderImageSliceValue.h */; };
BC274B31140EBED800EADFA6 /* CSSBorderImageSliceValue.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC274B30140EBED800EADFA6 /* CSSBorderImageSliceValue.cpp */; };
- BC275B7911C5D1C300C9206C /* JSWebKitPointCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC275B7811C5D1C300C9206C /* JSWebKitPointCustom.cpp */; };
BC29935D17A1DD5800BCE880 /* ColorInputType.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC29935C17A1DD5800BCE880 /* ColorInputType.cpp */; };
BC2CBF4E140F1ABD003879BE /* JSWebGLContextEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = BC2CBF4B140F1A65003879BE /* JSWebGLContextEvent.h */; };
BC2CBF7B140F1D58003879BE /* JSWebGLContextEvent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC2CBF7A140F1D58003879BE /* JSWebGLContextEvent.cpp */; };
@@ -5985,7 +5982,6 @@
E1A643FD0EC097A000779668 /* WorkerScriptController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1A643FC0EC097A000779668 /* WorkerScriptController.cpp */; };
E1A8E56617552B2A007488E7 /* CFURLExtras.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1A8E56417552B2A007488E7 /* CFURLExtras.cpp */; };
E1A8E56717552B2A007488E7 /* CFURLExtras.h in Headers */ = {isa = PBXBuildFile; fileRef = E1A8E56517552B2A007488E7 /* CFURLExtras.h */; settings = {ATTRIBUTES = (Private, ); }; };
- E1AD14231295EA7F00ACA989 /* JSHTMLInputElementCustom.h in Headers */ = {isa = PBXBuildFile; fileRef = E1AD14221295EA7F00ACA989 /* JSHTMLInputElementCustom.h */; };
E1ADECBF0E76ACF1004A1A5E /* MessagePort.h in Headers */ = {isa = PBXBuildFile; fileRef = E1ADECBD0E76ACF1004A1A5E /* MessagePort.h */; settings = {ATTRIBUTES = (Private, ); }; };
E1ADECC00E76ACF1004A1A5E /* MessagePort.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1ADECBE0E76ACF1004A1A5E /* MessagePort.cpp */; };
E1ADECCE0E76AD8B004A1A5E /* MessageChannel.h in Headers */ = {isa = PBXBuildFile; fileRef = E1ADECCC0E76AD8B004A1A5E /* MessageChannel.h */; };
@@ -6594,7 +6590,6 @@
FDEA6243152102E200479DF0 /* JSOscillatorNode.h in Headers */ = {isa = PBXBuildFile; fileRef = FDEA6241152102E200479DF0 /* JSOscillatorNode.h */; };
FDEA6246152102FC00479DF0 /* JSPeriodicWave.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FDEA6244152102FC00479DF0 /* JSPeriodicWave.cpp */; };
FDEA6247152102FC00479DF0 /* JSPeriodicWave.h in Headers */ = {isa = PBXBuildFile; fileRef = FDEA6245152102FC00479DF0 /* JSPeriodicWave.h */; };
- FDEAAAF412B02EE400DCF33B /* JSAudioContextCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FDEAAAF012B02EE400DCF33B /* JSAudioContextCustom.cpp */; };
FDF09DC81399B62200688E5B /* JSBiquadFilterNode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FDF09DC61399B62200688E5B /* JSBiquadFilterNode.cpp */; };
FDF09DC91399B62200688E5B /* JSBiquadFilterNode.h in Headers */ = {isa = PBXBuildFile; fileRef = FDF09DC71399B62200688E5B /* JSBiquadFilterNode.h */; };
FDF6BAF8134A4C9800822920 /* JSOfflineAudioCompletionEvent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FDF6BAF6134A4C9800822920 /* JSOfflineAudioCompletionEvent.cpp */; };
@@ -6789,8 +6784,8 @@
0704A4051D6DE9F10086DCDB /* OverconstrainedError.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OverconstrainedError.h; sourceTree = "<group>"; };
0704A4091D6DFC690086DCDB /* JSOverconstrainedError.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSOverconstrainedError.cpp; sourceTree = "<group>"; };
0704A40A1D6DFC690086DCDB /* JSOverconstrainedError.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSOverconstrainedError.h; sourceTree = "<group>"; };
- 0704A4131D6F39FB0086DCDB /* JSOverconstrainedErrorEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JSOverconstrainedErrorEvent.cpp; path = JSOverconstrainedErrorEvent.cpp; sourceTree = "<group>"; };
- 0704A4141D6F39FB0086DCDB /* JSOverconstrainedErrorEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JSOverconstrainedErrorEvent.h; path = JSOverconstrainedErrorEvent.h; sourceTree = "<group>"; };
+ 0704A4131D6F39FB0086DCDB /* JSOverconstrainedErrorEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSOverconstrainedErrorEvent.cpp; sourceTree = "<group>"; };
+ 0704A4141D6F39FB0086DCDB /* JSOverconstrainedErrorEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSOverconstrainedErrorEvent.h; sourceTree = "<group>"; };
0705851C17FDB23C005F2BCB /* MediaTrackConstraints.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = MediaTrackConstraints.idl; sourceTree = "<group>"; };
0705851D17FDC140005F2BCB /* MediaTrackConstraint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MediaTrackConstraint.h; sourceTree = "<group>"; };
0705851E17FDC140005F2BCB /* MediaTrackConstraint.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = MediaTrackConstraint.idl; sourceTree = "<group>"; };
@@ -6980,7 +6975,6 @@
077AF13E18F4AE400001ED61 /* SerializedPlatformRepresentation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SerializedPlatformRepresentation.h; sourceTree = "<group>"; };
077AF14118F4B1BB0001ED61 /* SerializedPlatformRepresentationMac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SerializedPlatformRepresentationMac.h; sourceTree = "<group>"; };
077AF14218F4B1BB0001ED61 /* SerializedPlatformRepresentationMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = SerializedPlatformRepresentationMac.mm; sourceTree = "<group>"; };
- 077B640E1B8F5375003E9AD5 /* JSMediaSessionCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSMediaSessionCustom.cpp; sourceTree = "<group>"; };
077B64101B94F12E003E9AD5 /* MediaPlaybackTargetPickerMock.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MediaPlaybackTargetPickerMock.cpp; sourceTree = "<group>"; };
077B64111B94F12E003E9AD5 /* MediaPlaybackTargetPickerMock.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MediaPlaybackTargetPickerMock.h; sourceTree = "<group>"; };
077B64141B95F703003E9AD5 /* MediaPlaybackTargetMock.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MediaPlaybackTargetMock.cpp; sourceTree = "<group>"; };
@@ -8106,7 +8100,6 @@
2E0888C3114883A900AF4265 /* DOMFormData.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = DOMFormData.idl; sourceTree = "<group>"; };
2E0888D21148848A00AF4265 /* JSDOMFormData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMFormData.cpp; sourceTree = "<group>"; };
2E0888D31148848A00AF4265 /* JSDOMFormData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDOMFormData.h; sourceTree = "<group>"; };
- 2E0888E5114884E200AF4265 /* JSDOMFormDataCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMFormDataCustom.cpp; sourceTree = "<group>"; };
2E19516A1B6598D200DF6EEF /* WheelEventDeltaFilter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WheelEventDeltaFilter.cpp; sourceTree = "<group>"; };
2E2D99CB10E2BBDA00496337 /* JSBlob.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSBlob.cpp; sourceTree = "<group>"; };
2E2D99CC10E2BBDA00496337 /* JSBlob.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSBlob.h; sourceTree = "<group>"; };
@@ -12393,7 +12386,6 @@
BC2441C30E8B65D00055320F /* ScrollView.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ScrollView.cpp; sourceTree = "<group>"; };
BC274B2E140EBEB200EADFA6 /* CSSBorderImageSliceValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CSSBorderImageSliceValue.h; sourceTree = "<group>"; };
BC274B30140EBED800EADFA6 /* CSSBorderImageSliceValue.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CSSBorderImageSliceValue.cpp; sourceTree = "<group>"; };
- BC275B7811C5D1C300C9206C /* JSWebKitPointCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSWebKitPointCustom.cpp; sourceTree = "<group>"; };
BC29935C17A1DD5800BCE880 /* ColorInputType.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ColorInputType.cpp; sourceTree = "<group>"; };
BC2CBF4B140F1A65003879BE /* JSWebGLContextEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSWebGLContextEvent.h; sourceTree = "<group>"; };
BC2CBF7A140F1D58003879BE /* JSWebGLContextEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSWebGLContextEvent.cpp; sourceTree = "<group>"; };
@@ -13522,7 +13514,6 @@
E1AB1EBB14E9E37A00449E13 /* FileError.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = FileError.idl; sourceTree = "<group>"; };
E1AB1EBC14E9E39700449E13 /* FileException.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = FileException.idl; sourceTree = "<group>"; };
E1AB1EBD14E9E3A800449E13 /* FileReaderSync.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = FileReaderSync.idl; sourceTree = "<group>"; };
- E1AD14221295EA7F00ACA989 /* JSHTMLInputElementCustom.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSHTMLInputElementCustom.h; sourceTree = "<group>"; };
E1ADECBD0E76ACF1004A1A5E /* MessagePort.h */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = MessagePort.h; sourceTree = "<group>"; };
E1ADECBE0E76ACF1004A1A5E /* MessagePort.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MessagePort.cpp; sourceTree = "<group>"; };
E1ADECC60E76AD1F004A1A5E /* MessagePort.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = MessagePort.idl; sourceTree = "<group>"; };
@@ -14207,7 +14198,6 @@
FDEA6241152102E200479DF0 /* JSOscillatorNode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSOscillatorNode.h; sourceTree = "<group>"; };
FDEA6244152102FC00479DF0 /* JSPeriodicWave.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSPeriodicWave.cpp; sourceTree = "<group>"; };
FDEA6245152102FC00479DF0 /* JSPeriodicWave.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSPeriodicWave.h; sourceTree = "<group>"; };
- FDEAAAF012B02EE400DCF33B /* JSAudioContextCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSAudioContextCustom.cpp; sourceTree = "<group>"; };
FDF09DC61399B62200688E5B /* JSBiquadFilterNode.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSBiquadFilterNode.cpp; sourceTree = "<group>"; };
FDF09DC71399B62200688E5B /* JSBiquadFilterNode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSBiquadFilterNode.h; sourceTree = "<group>"; };
FDF6BAF6134A4C9800822920 /* JSOfflineAudioCompletionEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSOfflineAudioCompletionEvent.cpp; sourceTree = "<group>"; };
@@ -20946,7 +20936,6 @@
1AE96A771D1A04D300B86768 /* JSApplePayShippingContactSelectedEventCustom.cpp */,
1AE96A781D1A04D300B86768 /* JSApplePayShippingMethodSelectedEventCustom.cpp */,
BC2ED6BB0C6BD2F000920BFF /* JSAttrCustom.cpp */,
- FDEAAAF012B02EE400DCF33B /* JSAudioContextCustom.cpp */,
BE6DF70E171CA2DA00DD52B8 /* JSAudioTrackCustom.cpp */,
BE6DF710171CA2DA00DD52B8 /* JSAudioTrackListCustom.cpp */,
8931DE5A14C44C44000DC9D2 /* JSBlobCustom.cpp */,
@@ -20975,7 +20964,6 @@
ADDA94BF19686F8000453029 /* JSDocumentCustom.h */,
7C33F3601B4A050400502CAF /* JSDocumentFragmentCustom.cpp */,
7C33F35C1B4A04CE00502CAF /* JSDocumentTypeCustom.cpp */,
- 2E0888E5114884E200AF4265 /* JSDOMFormDataCustom.cpp */,
A9C6E6460D7465CA006442E9 /* JSDOMMimeTypeArrayCustom.cpp */,
A9C6E64A0D7465E7006442E9 /* JSDOMPluginArrayCustom.cpp */,
A9C6E64B0D7465E7006442E9 /* JSDOMPluginCustom.cpp */,
@@ -21004,7 +20992,6 @@
BC2ED7A40C6C0F3600920BFF /* JSHTMLFrameElementCustom.cpp */,
BCD41ABA0C060DE800C0E446 /* JSHTMLFrameSetElementCustom.cpp */,
BCC438770E886CC700533DD5 /* JSHTMLInputElementCustom.cpp */,
- E1AD14221295EA7F00ACA989 /* JSHTMLInputElementCustom.h */,
CDF65CCC145B6AFE00C4C7AA /* JSHTMLMediaElementCustom.cpp */,
BC305CA30C0781BB00CD20F0 /* JSHTMLObjectElementCustom.cpp */,
448AD27A0A4813790023D179 /* JSHTMLOptionsCollectionCustom.cpp */,
@@ -21022,7 +21009,6 @@
BCE1C43F0D9830F4003B02F2 /* JSLocationCustom.cpp */,
1B88DD121D5AD3B200E3B7A4 /* JSMediaDevicesCustom.cpp */,
AD726FE716D9F204003A4E6D /* JSMediaListCustom.h */,
- 077B640E1B8F5375003E9AD5 /* JSMediaSessionCustom.cpp */,
07C59B6D17F794F6000FBCBB /* JSMediaStreamTrackCustom.cpp */,
07C1C0E61BFB90A700BD2256 /* JSMediaTrackSupportedConstraintsCustom.cpp */,
E1A5F99A0E7EAA2500AF85EA /* JSMessageChannelCustom.cpp */,
@@ -21063,7 +21049,6 @@
D3F3D3591A69A3B00059FC2B /* JSWebGL2RenderingContextCustom.cpp */,
D3F3D35A1A69A3B00059FC2B /* JSWebGLRenderingContextBaseCustom.cpp */,
49EED14C1051971A00099FAB /* JSWebGLRenderingContextCustom.cpp */,
- BC275B7811C5D1C300C9206C /* JSWebKitPointCustom.cpp */,
E1FF8F661807460800132674 /* JSWebKitSubtleCryptoCustom.cpp */,
E1CA5CBB0E8CDCAF00E8EF90 /* JSWorkerCustom.cpp */,
E18258AB0EF3CD7000933242 /* JSWorkerGlobalScopeCustom.cpp */,
@@ -24911,7 +24896,6 @@
BC4918C90BFEA050009D6316 /* JSHTMLIFrameElement.h in Headers */,
1AE2AA980A1CDD2D00B42B25 /* JSHTMLImageElement.h in Headers */,
A80E7E970A1A83E3007FB8C5 /* JSHTMLInputElement.h in Headers */,
- E1AD14231295EA7F00ACA989 /* JSHTMLInputElementCustom.h in Headers */,
A6148A7912E41E3B0044A784 /* JSHTMLKeygenElement.h in Headers */,
1AE2AB220A1CE63B00B42B25 /* JSHTMLLabelElement.h in Headers */,
1AE2AB240A1CE63B00B42B25 /* JSHTMLLegendElement.h in Headers */,
@@ -28327,7 +28311,6 @@
FDF7E9C313AC21DB00A51EAC /* JSAudioBufferCallback.cpp in Sources */,
FDA15E9F12B03EE1003A583A /* JSAudioBufferSourceNode.cpp in Sources */,
FDA15EA512B03EE1003A583A /* JSAudioContext.cpp in Sources */,
- FDEAAAF412B02EE400DCF33B /* JSAudioContextCustom.cpp in Sources */,
FDA15EA712B03EE1003A583A /* JSAudioDestinationNode.cpp in Sources */,
FDA15EAD12B03EE1003A583A /* JSAudioListener.cpp in Sources */,
FDA15EAF12B03EE1003A583A /* JSAudioNode.cpp in Sources */,
@@ -28432,7 +28415,6 @@
FD67773B195CB1E60072E0D3 /* JSDOMCSSNamespace.cpp in Sources */,
40ECAE8116B8B68A00C36103 /* JSDOMError.cpp in Sources */,
2E0888D41148848A00AF4265 /* JSDOMFormData.cpp in Sources */,
- 2E0888E6114884E200AF4265 /* JSDOMFormDataCustom.cpp in Sources */,
E1C36CBD0EB08062007410BC /* JSDOMGlobalObject.cpp in Sources */,
7C2BDD3D17C7F98C0038FF15 /* JSDOMGlobalObjectTask.cpp in Sources */,
65DF31F709D1CC60000BE325 /* JSDOMImplementation.cpp in Sources */,
@@ -28648,7 +28630,6 @@
7C5343FC17B74B63004232F0 /* JSMediaQueryListListener.cpp in Sources */,
C9026B651B1CF5FE001D99A7 /* JSMediaRemoteControls.cpp in Sources */,
C9DADBCB1B1D3B97001F17D8 /* JSMediaSession.cpp in Sources */,
- 077B640F1B8F5D6B003E9AD5 /* JSMediaSessionCustom.cpp in Sources */,
CD9DE17417AAC74C00EA386D /* JSMediaSource.cpp in Sources */,
07277E4C17D018CC0015534D /* JSMediaStream.cpp in Sources */,
07277E4E17D018CC0015534D /* JSMediaStreamAudioDestinationNode.cpp in Sources */,
@@ -29005,7 +28986,6 @@
7CC69940191EC5F500AF2270 /* JSWebKitNamespace.cpp in Sources */,
0FDA7C261883333200C954B5 /* JSWebKitPlaybackTargetAvailabilityEvent.cpp in Sources */,
494BD79D0F55C94C00747828 /* JSWebKitPoint.cpp in Sources */,
- BC275B7911C5D1C300C9206C /* JSWebKitPointCustom.cpp in Sources */,
570A99DA1D417408004EC630 /* JSWebKitSubtleCrypto.cpp in Sources */,
5709E8CE1D413D5B003244AC /* JSWebKitSubtleCryptoCustom.cpp in Sources */,
31C0FF3F0E4CEFAC007D6FE5 /* JSWebKitTransitionEvent.cpp in Sources */,
Deleted: trunk/Source/WebCore/bindings/js/JSAudioContextCustom.cpp (205087 => 205088)
--- trunk/Source/WebCore/bindings/js/JSAudioContextCustom.cpp 2016-08-28 00:11:49 UTC (rev 205087)
+++ trunk/Source/WebCore/bindings/js/JSAudioContextCustom.cpp 2016-08-28 00:12:38 UTC (rev 205088)
@@ -1,79 +0,0 @@
-/*
- * Copyright (C) 2010, Google 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.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. 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 INC. 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.
- */
-
-#include "config.h"
-
-#if ENABLE(WEB_AUDIO)
-
-#include "AudioContext.h"
-
-#include "AudioBuffer.h"
-#include "Document.h"
-#include "JSAudioBuffer.h"
-#include "JSAudioContext.h"
-#include "JSDOMBinding.h"
-#include "JSDOMPromise.h"
-#include "JSOfflineAudioContext.h"
-#include "OfflineAudioContext.h"
-#include <runtime/ArrayBuffer.h>
-#include <runtime/Error.h>
-#include <runtime/JSArrayBuffer.h>
-
-using namespace JSC;
-
-namespace WebCore {
-
-EncodedJSValue JSC_HOST_CALL constructJSAudioContext(ExecState& exec)
-{
- DOMConstructorObject* jsConstructor = jsCast<DOMConstructorObject*>(exec.callee());
- ASSERT(jsConstructor);
-
- ScriptExecutionContext* scriptExecutionContext = jsConstructor->scriptExecutionContext();
- if (!scriptExecutionContext)
- return throwConstructorScriptExecutionContextUnavailableError(exec, "AudioContext");
- ASSERT(scriptExecutionContext->isDocument());
-
- Document& document = downcast<Document>(*scriptExecutionContext);
-
- RefPtr<AudioContext> audioContext;
-
- if (!exec.argumentCount()) {
- // Constructor for default AudioContext which talks to audio hardware.
- ExceptionCode ec = 0;
- audioContext = AudioContext::create(document, ec);
- if (ec) {
- setDOMException(&exec, ec);
- return JSValue::encode(JSValue());
- }
- if (!audioContext)
- return throwVMError(&exec, createSyntaxError(&exec, "audio resources unavailable for AudioContext construction"));
- } else
- return throwVMError(&exec, createSyntaxError(&exec, "Illegal AudioContext constructor"));
-
- return JSValue::encode(CREATE_DOM_WRAPPER(jsConstructor->globalObject(), AudioContext, audioContext.releaseNonNull()));
-}
-
-} // namespace WebCore
-
-#endif // ENABLE(WEB_AUDIO)
Modified: trunk/Source/WebCore/bindings/js/JSBindingsAllInOne.cpp (205087 => 205088)
--- trunk/Source/WebCore/bindings/js/JSBindingsAllInOne.cpp 2016-08-28 00:11:49 UTC (rev 205087)
+++ trunk/Source/WebCore/bindings/js/JSBindingsAllInOne.cpp 2016-08-28 00:12:38 UTC (rev 205088)
@@ -49,7 +49,6 @@
#include "JSCustomSQLStatementErrorCallback.cpp"
#include "JSCustomXPathNSResolver.cpp"
#include "JSDOMBinding.cpp"
-#include "JSDOMFormDataCustom.cpp"
#include "JSDOMGlobalObject.cpp"
#include "JSDOMGlobalObjectTask.cpp"
#include "JSDOMMimeTypeArrayCustom.cpp"
@@ -136,7 +135,6 @@
#include "JSTreeWalkerCustom.cpp"
#include "JSVideoTrackCustom.cpp"
#include "JSVideoTrackListCustom.cpp"
-#include "JSWebKitPointCustom.cpp"
#include "JSWorkerCustom.cpp"
#include "JSWorkerGlobalScopeBase.cpp"
#include "JSWorkerGlobalScopeCustom.cpp"
Deleted: trunk/Source/WebCore/bindings/js/JSDOMFormDataCustom.cpp (205087 => 205088)
--- trunk/Source/WebCore/bindings/js/JSDOMFormDataCustom.cpp 2016-08-28 00:11:49 UTC (rev 205087)
+++ trunk/Source/WebCore/bindings/js/JSDOMFormDataCustom.cpp 2016-08-28 00:12:38 UTC (rev 205088)
@@ -1,58 +0,0 @@
-/*
- * Copyright (C) 2010 Google 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:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * 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.
- * * Neither the name of Google Inc. 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 THE COPYRIGHT HOLDERS AND 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 THE COPYRIGHT
- * OWNER OR 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.
- */
-
-#include "config.h"
-#include "JSDOMFormData.h"
-
-#include "DOMFormData.h"
-#include "HTMLFormElement.h"
-#include "JSBlob.h"
-#include "JSHTMLFormElement.h"
-#include <runtime/Error.h>
-
-using namespace JSC;
-
-namespace WebCore {
-
-static HTMLFormElement* toHTMLFormElementOrNull(JSC::JSValue value)
-{
- return value.inherits(JSHTMLFormElement::info()) ? &jsCast<JSHTMLFormElement*>(asObject(value))->wrapped() : nullptr;
-}
-
-EncodedJSValue JSC_HOST_CALL constructJSDOMFormData(ExecState& exec)
-{
- DOMConstructorObject* jsConstructor = jsCast<DOMConstructorObject*>(exec.callee());
- ASSERT(jsConstructor);
- HTMLFormElement* form = toHTMLFormElementOrNull(exec.argument(0));
- auto domFormData = DOMFormData::create(form);
- return JSValue::encode(toJSNewlyCreated(&exec, jsConstructor->globalObject(), WTFMove(domFormData)));
-}
-
-} // namespace WebCore
Deleted: trunk/Source/WebCore/bindings/js/JSHTMLInputElementCustom.h (205087 => 205088)
--- trunk/Source/WebCore/bindings/js/JSHTMLInputElementCustom.h 2016-08-28 00:11:49 UTC (rev 205087)
+++ trunk/Source/WebCore/bindings/js/JSHTMLInputElementCustom.h 2016-08-28 00:12:38 UTC (rev 205088)
@@ -1,31 +0,0 @@
-/*
- * Copyright (C) 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.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``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 INC. OR
- * 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 JSHTMLInputElementCustom_h
-#define JSHTMLInputElementCustom_h
-
-#include "JSHTMLInputElement.h"
-
-#endif // JSHTMLInputElementCustom_h
Deleted: trunk/Source/WebCore/bindings/js/JSMediaSessionCustom.cpp (205087 => 205088)
--- trunk/Source/WebCore/bindings/js/JSMediaSessionCustom.cpp 2016-08-28 00:11:49 UTC (rev 205087)
+++ trunk/Source/WebCore/bindings/js/JSMediaSessionCustom.cpp 2016-08-28 00:12:38 UTC (rev 205088)
@@ -1,67 +0,0 @@
-/*
- * Copyright (C) 2015 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.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``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 INC. OR
- * 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.
- */
-
-#include "config.h"
-#include "JSMediaSession.h"
-
-#if ENABLE(MEDIA_SESSION)
-
-#include "ExceptionCode.h"
-#include "JSDOMBinding.h"
-#include "MediaSession.h"
-#include <runtime/Error.h>
-#include <runtime/JSString.h>
-#include <wtf/GetPtr.h>
-
-using namespace JSC;
-
-namespace WebCore {
-
-EncodedJSValue JSC_HOST_CALL constructJSMediaSession(ExecState& exec)
-{
- auto* castedThis = jsCast<DOMConstructorObject*>(exec.callee());
- ASSERT(castedThis);
-
- auto* context = castedThis->scriptExecutionContext();
- if (!context)
- return throwConstructorScriptExecutionContextUnavailableError(exec, "MediaSession");
-
- String kind;
- if (exec.argumentCount() > 0) {
- JSString* kindString = exec.uncheckedArgument(0).toString(&exec);
- if (UNLIKELY(exec.hadException()))
- return JSValue::encode(jsUndefined());
- kind = kindString->value(&exec);
- if (kind != "content" && kind != "transient" && kind != "transient-solo" && kind != "ambient")
- return throwArgumentMustBeEnumError(exec, 0, "kind", "MediaSession", nullptr, "\"content\", \"transient\", \"transient-solo\", \"ambient\"");
- } else
- kind = "content";
-
- return JSValue::encode(toJSNewlyCreated(&exec, castedThis->globalObject(), MediaSession::create(*context, kind)));
-}
-
-} // namespace WebCore
-
-#endif
Deleted: trunk/Source/WebCore/bindings/js/JSWebKitPointCustom.cpp (205087 => 205088)
--- trunk/Source/WebCore/bindings/js/JSWebKitPointCustom.cpp 2016-08-28 00:11:49 UTC (rev 205087)
+++ trunk/Source/WebCore/bindings/js/JSWebKitPointCustom.cpp 2016-08-28 00:12:38 UTC (rev 205088)
@@ -1,52 +0,0 @@
-/*
- * Copyright (C) 2009, 2010 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.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``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 INC. OR
- * 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.
- */
-
-#include "config.h"
-#include "JSWebKitPoint.h"
-
-#include "JSDOMBinding.h"
-
-using namespace JSC;
-
-namespace WebCore {
-
-EncodedJSValue JSC_HOST_CALL constructJSWebKitPoint(ExecState& exec)
-{
- DOMConstructorObject* jsConstructor = jsCast<DOMConstructorObject*>(exec.callee());
-
- float x = 0;
- float y = 0;
- if (exec.argumentCount() >= 2) {
- x = static_cast<float>(exec.uncheckedArgument(0).toNumber(&exec));
- y = static_cast<float>(exec.uncheckedArgument(1).toNumber(&exec));
- if (std::isnan(x))
- x = 0;
- if (std::isnan(y))
- y = 0;
- }
- return JSValue::encode(asObject(toJSNewlyCreated(&exec, jsConstructor->globalObject(), WebKitPoint::create(x, y))));
-}
-
-} // namespace WebCore
Modified: trunk/Source/WebCore/html/DOMFormData.idl (205087 => 205088)
--- trunk/Source/WebCore/html/DOMFormData.idl 2016-08-28 00:11:49 UTC (rev 205087)
+++ trunk/Source/WebCore/html/DOMFormData.idl 2016-08-28 00:12:38 UTC (rev 205088)
@@ -29,7 +29,7 @@
*/
[
- CustomConstructor(optional HTMLFormElement form),
+ Constructor(optional HTMLFormElement? form),
JSGenerateToNativeObject,
JSGenerateToJSObject,
InterfaceName=FormData,
Modified: trunk/Source/WebCore/html/HTMLFormElement.idl (205087 => 205088)
--- trunk/Source/WebCore/html/HTMLFormElement.idl 2016-08-28 00:11:49 UTC (rev 205087)
+++ trunk/Source/WebCore/html/HTMLFormElement.idl 2016-08-28 00:12:38 UTC (rev 205088)
@@ -21,6 +21,7 @@
[
CustomNamedGetter,
OverrideBuiltins,
+ JSGenerateToNativeObject,
] interface HTMLFormElement : HTMLElement {
[Reflect=accept_charset] attribute DOMString acceptCharset;
[Reflect, URL] attribute USVString action;
Modified: trunk/Source/WebCore/page/WebKitPoint.h (205087 => 205088)
--- trunk/Source/WebCore/page/WebKitPoint.h 2016-08-28 00:11:49 UTC (rev 205087)
+++ trunk/Source/WebCore/page/WebKitPoint.h 2016-08-28 00:12:38 UTC (rev 205088)
@@ -30,33 +30,37 @@
namespace WebCore {
- class WebKitPoint : public RefCounted<WebKitPoint> {
- public:
+class WebKitPoint : public RefCounted<WebKitPoint> {
+public:
+ static Ref<WebKitPoint> create()
+ {
+ return adoptRef(*new WebKitPoint);
+ }
+ static Ref<WebKitPoint> create(float x, float y)
+ {
+ return adoptRef(*new WebKitPoint(x, y));
+ }
- static Ref<WebKitPoint> create()
- {
- return adoptRef(*new WebKitPoint);
- }
- static Ref<WebKitPoint> create(float x, float y)
- {
- return adoptRef(*new WebKitPoint(x, y));
- }
+ float x() const { return m_x; }
+ float y() const { return m_y; }
+
+ void setX(float x) { m_x = x; }
+ void setY(float y) { m_y = y; }
- float x() const { return m_x; }
- float y() const { return m_y; }
-
- void setX(float x) { m_x = x; }
- void setY(float y) { m_y = y; }
+private:
+ WebKitPoint(float x, float y)
+ : m_x(std::isnan(x) ? 0 : x)
+ , m_y(std::isnan(y) ? 0 : y)
+ {
+ }
- private:
- WebKitPoint(float x=0, float y=0)
- : m_x(x)
- , m_y(y)
- {
- }
+ WebKitPoint()
+ {
+ }
- float m_x, m_y;
- };
+ float m_x { 0 };
+ float m_y { 0 };
+};
} // namespace WebCore
Modified: trunk/Source/WebCore/page/WebKitPoint.idl (205087 => 205088)
--- trunk/Source/WebCore/page/WebKitPoint.idl 2016-08-28 00:11:49 UTC (rev 205087)
+++ trunk/Source/WebCore/page/WebKitPoint.idl 2016-08-28 00:12:38 UTC (rev 205088)
@@ -24,11 +24,9 @@
*/
[
- CustomConstructor,
- CustomConstructor(unrestricted float x, unrestricted float y),
+ Constructor(optional unrestricted float x = 0, optional unrestricted float y = 0),
ImplementationLacksVTable
] interface WebKitPoint {
attribute unrestricted float x;
attribute unrestricted float y;
};
-