Changeset 150311 in webkit
- Timestamp:
- May 17, 2013 5:16:19 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r150310 r150311 1 2013-05-17 Christophe Dumez <ch.dumez@sisa.samsung.com> 2 3 Get rid of Custom code for Audio global constructor 4 https://bugs.webkit.org/show_bug.cgi?id=116343 5 6 Reviewed by Geoffrey Garen. 7 8 Remove custom code for Audio global constructor. It is no longer needed 9 now that the the bindings generator no longer require custom code for 10 named constructors and now that [EnabledAtRuntime] extended attribute is 11 supported for global constructors. 12 13 HTMLAudioElement global constructors are now automatically generated. 14 15 No new tests, no behavior change for layout tests. 16 17 * bindings/js/JSDOMWindowCustom.cpp: 18 * html/HTMLAudioElement.idl: 19 * page/DOMWindow.idl: 20 1 21 2013-05-17 Alexey Proskuryakov <ap@apple.com> 2 22 -
trunk/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp
r150283 r150311 534 534 } 535 535 536 #if ENABLE(VIDEO)537 JSValue JSDOMWindow::audio(ExecState* exec) const538 {539 if (!MediaPlayer::isAvailable())540 return jsUndefined();541 return getDOMConstructor<JSHTMLAudioElementNamedConstructor>(exec, this);542 }543 #endif544 545 536 // Custom functions 546 537 -
trunk/Source/WebCore/html/HTMLAudioElement.idl
r149796 r150311 25 25 26 26 [ 27 NoInterfaceObject,27 EnabledAtRuntime, 28 28 Conditional=VIDEO, 29 29 NamedConstructor=Audio([Default=NullString] optional DOMString src) -
trunk/Source/WebCore/page/DOMWindow.idl
r150283 r150311 323 323 // Additional constructors. 324 324 [CustomGetter, CustomConstructor] attribute HTMLImageElementNamedConstructor Image; // Usable with new operator 325 [CustomGetter, Conditional=VIDEO] attribute HTMLAudioElementNamedConstructor Audio; // Usable with the new operator326 [Conditional=VIDEO] attribute HTMLAudioElementConstructor HTMLAudioElement;327 325 // Mozilla has a separate XMLDocument object for XML documents. 328 326 // We just use Document for this.
Note: See TracChangeset
for help on using the changeset viewer.