Changeset 109067 in webkit


Ignore:
Timestamp:
Feb 27, 2012 8:17:32 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[Forms] Make order of attribute/method in HTMLInputElement.idl as same as specification
https://bugs.webkit.org/show_bug.cgi?id=79622

For ease of maintainability, this patch reorders attributes and methods declaration
matching with specification.

Patch by Yoshifumi Inoue <yosin@chromium.org> on 2012-02-27
Reviewed by Adam Barth.

No new tests. No behavior change.

  • html/HTMLInputElement.idl: Reorder and remove obsolete comments.
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r109065 r109067  
     12012-02-27  Yoshifumi Inoue  <yosin@chromium.org>
     2
     3        [Forms] Make order of attribute/method in HTMLInputElement.idl as same as specification
     4        https://bugs.webkit.org/show_bug.cgi?id=79622
     5
     6        For ease of maintainability, this patch reorders attributes and methods declaration
     7        matching with specification.
     8
     9        Reviewed by Adam Barth.
     10
     11        No new tests. No behavior change.
     12
     13        * html/HTMLInputElement.idl: Reorder and remove obsolete comments.
     14
    1152012-02-27  Luke Macpherson   <macpherson@chromium.org>
    216
  • trunk/Source/WebCore/html/HTMLInputElement.idl

    r107483 r109067  
    2222
    2323    interface HTMLInputElement : HTMLElement {
    24         attribute [TreatNullAs=NullString] DOMString defaultValue;
     24        attribute [Reflect] DOMString accept;
     25        attribute [Reflect] DOMString alt;
     26        attribute [Reflect] DOMString autocomplete;
     27        attribute [Reflect] boolean autofocus;
    2528        attribute [Reflect=checked] boolean defaultChecked;
     29        attribute boolean checked;
    2630        attribute [Reflect] DOMString dirName;
     31        attribute [Reflect] boolean disabled;
    2732        readonly attribute HTMLFormElement form;
     33        readonly attribute FileList files;
    2834        attribute [Reflect, URL] DOMString formAction;
    2935        attribute [TreatNullAs=NullString] DOMString formEnctype;
     
    3137        attribute [Reflect] boolean formNoValidate;
    3238        attribute [Reflect] DOMString formTarget;
    33         readonly attribute ValidityState validity;
    34         attribute [Reflect] DOMString accept;
    35         attribute [Reflect] DOMString align;
    36         attribute [Reflect] DOMString alt;
    37         attribute boolean checked;
    38         attribute [Reflect] boolean disabled;
    39         attribute [Reflect] boolean autofocus;
    40         attribute [Reflect] DOMString autocomplete;
     39        attribute boolean indeterminate;
    4140        readonly attribute [Conditional=DATALIST] HTMLElement list;
    4241        attribute [Reflect] DOMString max;
     
    4443        attribute [Reflect] DOMString min;
    4544        attribute [Reflect] boolean multiple;
    46         attribute [Conditional=DIRECTORY_UPLOAD, Reflect] boolean webkitdirectory;
    4745        attribute [Reflect] DOMString name;
    4846        attribute [Reflect] DOMString pattern;
     
    5149        attribute [Reflect] boolean required;
    5250#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
    53         attribute [Reflect] DOMString accessKey;
    5451        attribute [ObjCImplementedAsUnsignedLong] DOMString size; // DOM level 2 changed this to a long, but ObjC API is a string
    5552#else
     
    5956        attribute [Reflect] DOMString step;
    6057        attribute [TreatNullAs=NullString] DOMString type; // readonly dropped as part of DOM level 2
    61         attribute [Reflect] DOMString useMap;
     58        attribute [TreatNullAs=NullString] DOMString defaultValue;
    6259        attribute [TreatNullAs=NullString] DOMString value;
    6360#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
     
    6562#endif
    6663        attribute double valueAsNumber setter raises(DOMException);
    67         readonly attribute [Conditional=DATALIST] HTMLOptionElement selectedOption;
    68         attribute [Reflect] boolean incremental;
    6964
    7065        void stepUp(in [Optional] long n) raises(DOMException);
     
    7267
    7368        readonly attribute boolean willValidate;
     69        readonly attribute ValidityState validity;
    7470        readonly attribute DOMString validationMessage;
    7571        boolean checkValidity();
    7672        void setCustomValidity(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error);
     73
     74        readonly attribute NodeList labels;
     75
    7776        void select();
     77        attribute [Custom] long selectionStart;
     78        attribute [Custom] long selectionEnd;
     79        attribute [Custom] DOMString selectionDirection;
     80#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
     81        [Custom] void setSelectionRange(in long start, in long end);
     82#else
     83        [Custom] void setSelectionRange(in [Optional=DefaultIsUndefined] long start,
     84                                        in [Optional=DefaultIsUndefined] long end,
     85                                        in [Optional] DOMString direction);
     86#endif
     87
     88        // Non-standard attributes
     89        attribute [Reflect] DOMString align;
     90        attribute [Conditional=DIRECTORY_UPLOAD, Reflect] boolean webkitdirectory;
     91        attribute [Reflect] DOMString useMap;
     92        readonly attribute [Conditional=DATALIST] HTMLOptionElement selectedOption;
     93        attribute [Reflect] boolean incremental;
     94        attribute [Conditional=INPUT_SPEECH, Reflect, V8EnabledAtRuntime] boolean webkitSpeech;
     95        attribute [Conditional=INPUT_SPEECH, Reflect, V8EnabledAtRuntime] boolean webkitGrammar;
     96        attribute [Conditional=INPUT_SPEECH, NotEnumerable] EventListener onwebkitspeechchange;
     97
     98#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
     99        attribute [Reflect] DOMString accessKey;
     100#endif
    78101
    79102#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
     
    85108#endif
    86109
    87         // WinIE extension:
    88         attribute boolean indeterminate;
    89 
    90         attribute [Custom] long selectionStart;
    91         attribute [Custom] long selectionEnd;
    92         attribute [Custom] DOMString selectionDirection;
    93 
    94110#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
    95         [Custom] void setSelectionRange(in long start, in long end);
    96 #else
    97         [Custom] void setSelectionRange(in [Optional=DefaultIsUndefined] long start,
    98                                         in [Optional=DefaultIsUndefined] long end,
    99                                         in [Optional] DOMString direction);
    100 #endif
    101 
    102 #if defined(LANGUAGE_OBJECTIVE_C)
    103111        // Objective-C extension:
    104112        readonly attribute DOMString altDisplayString;
     
    106114#endif
    107115
    108         readonly attribute FileList files;
    109         readonly attribute NodeList labels;
    110 
    111         attribute [Conditional=INPUT_SPEECH, Reflect, V8EnabledAtRuntime] boolean webkitSpeech;
    112         attribute [Conditional=INPUT_SPEECH, Reflect, V8EnabledAtRuntime] boolean webkitGrammar;
    113         attribute [Conditional=INPUT_SPEECH, NotEnumerable] EventListener onwebkitspeechchange;
    114116    };
    115 
    116117}
Note: See TracChangeset for help on using the changeset viewer.