Changeset 107483 in webkit


Ignore:
Timestamp:
Feb 11, 2012 10:51:53 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

HTML 5: Support click() method on HTMLElement.
https://bugs.webkit.org/show_bug.cgi?id=27880

Patch by Arko Saha <arko@motorola.com> on 2012-02-11
Reviewed by Timothy Hatcher.

Source/WebCore:

Test: fast/dom/click-method-on-html-element.html

  • bindings/objc/PublicDOMInterfaces.h: Added click() method in DOMHTMLElement

with availability macro AVAILABLE_AFTER_WEBKIT_VERSION_5_1.

  • html/HTMLButtonElement.idl: Moved click() method under LANGUAGE_OBJECTIVE_C.
  • html/HTMLElement.idl: Added click() IDL method.
  • html/HTMLInputElement.idl: Moved click() method under LANGUAGE_OBJECTIVE_C.

LayoutTests:

  • fast/dom/click-method-on-html-element-expected.txt: Added.
  • fast/dom/click-method-on-html-element.html: Added.
Location:
trunk
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r107479 r107483  
     12012-02-11   Arko Saha  <arko@motorola.com>
     2
     3        HTML 5: Support click() method on HTMLElement.
     4        https://bugs.webkit.org/show_bug.cgi?id=27880
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        * fast/dom/click-method-on-html-element-expected.txt: Added.
     9        * fast/dom/click-method-on-html-element.html: Added.
     10
    1112012-02-11  Andreas Kling  <awesomekling@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r107482 r107483  
     12012-02-11   Arko Saha  <arko@motorola.com>
     2
     3        HTML 5: Support click() method on HTMLElement.
     4        https://bugs.webkit.org/show_bug.cgi?id=27880
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        Test: fast/dom/click-method-on-html-element.html
     9
     10        * bindings/objc/PublicDOMInterfaces.h: Added click() method in DOMHTMLElement
     11        with availability macro AVAILABLE_AFTER_WEBKIT_VERSION_5_1.
     12        * html/HTMLButtonElement.idl: Moved click() method under LANGUAGE_OBJECTIVE_C.
     13        * html/HTMLElement.idl: Added click() IDL method.
     14        * html/HTMLInputElement.idl: Moved click() method under LANGUAGE_OBJECTIVE_C.
     15
    1162012-02-11  Martin Robinson  <mrobinson@igalia.com>
    217
  • trunk/Source/WebCore/bindings/objc/PublicDOMInterfaces.h

    r107459 r107483  
    487487@property(readonly, copy) NSString *titleDisplayString AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;
    488488@property int tabIndex;
     489- (void)click AVAILABLE_AFTER_WEBKIT_VERSION_5_1;
    489490@end
    490491
  • trunk/Source/WebCore/html/HTMLButtonElement.idl

    r107459 r107483  
    4545        void setCustomValidity(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error);
    4646
     47#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
    4748        void click();
     49#endif
    4850
    4951        readonly attribute NodeList labels;
  • trunk/Source/WebCore/html/HTMLElement.idl

    r107304 r107483  
    8989        readonly attribute DOMString titleDisplayString;
    9090#endif
     91
     92        void click();
    9193    };
    9294
  • trunk/Source/WebCore/html/HTMLInputElement.idl

    r107459 r107483  
    7676        void setCustomValidity(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error);
    7777        void select();
     78
     79#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
    7880        void click();
     81#endif
    7982
    8083#if !defined(LANGUAGE_JAVASCRIPT) || !LANGUAGE_JAVASCRIPT
Note: See TracChangeset for help on using the changeset viewer.