Bug 160477 - Drop custom bindings code for HTMLSelectElement.remove()
Summary: Drop custom bindings code for HTMLSelectElement.remove()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Bindings (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: WebExposed
Depends on: 160394
Blocks:
  Show dependency treegraph
 
Reported: 2016-08-02 16:30 PDT by Chris Dumez
Modified: 2016-08-02 19:57 PDT (History)
6 users (show)

See Also:


Attachments
Patch (3.20 KB, patch)
2016-08-02 16:51 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (3.09 KB, patch)
2016-08-02 16:57 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2016-08-02 16:30:16 PDT
Drop custom bindings code for HTMLSelectElement.remove() and use overloading instead.
Comment 1 Chris Dumez 2016-08-02 16:45:00 PDT
Bindings look like:
EncodedJSValue JSC_HOST_CALL jsHTMLSelectElementPrototypeFunctionRemove(ExecState* state)
{
    size_t argsCount = std::min<size_t>(1, state->argumentCount());
    if (argsCount == 0) {
        return jsHTMLSelectElementPrototypeFunctionRemove1(state);
    }
    if (argsCount == 1) {
        JSValue distinguishingArg = state->uncheckedArgument(0);
        if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits(JSHTMLOptionElement::info()))
            return jsHTMLSelectElementPrototypeFunctionRemove3(state);
        if (distinguishingArg.isNumber())
            return jsHTMLSelectElementPrototypeFunctionRemove2(state);
        return jsHTMLSelectElementPrototypeFunctionRemove2(state);
    }
    return throwVMTypeError(state);
}
Comment 2 Chris Dumez 2016-08-02 16:51:21 PDT
Created attachment 285162 [details]
Patch
Comment 3 Chris Dumez 2016-08-02 16:57:53 PDT
Created attachment 285164 [details]
Patch
Comment 4 WebKit Commit Bot 2016-08-02 19:57:41 PDT
Comment on attachment 285164 [details]
Patch

Clearing flags on attachment: 285164

Committed r204064: <http://trac.webkit.org/changeset/204064>
Comment 5 WebKit Commit Bot 2016-08-02 19:57:46 PDT
All reviewed patches have been landed.  Closing bug.