Summary: | Add capability for ChromeClient implementations to refer 'accept' attribute value of an INPUT element | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Kent Tamura <tkent> | ||||
Component: | Forms | Assignee: | Kent Tamura <tkent> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
URL: | http://www.whatwg.org/specs/web-apps/current-work/multipage/number-state.html#attr-input-accept | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 19264, 32473 | ||||||
Attachments: |
|
Description
Kent Tamura
2009-12-11 06:39:31 PST
Created attachment 44685 [details]
Proposed patch
style-queue ran check-webkit-style on attachment 44685 [details] without any errors.
Comment on attachment 44685 [details] Proposed patch > +++ b/WebCore/rendering/RenderFileUploadControl.cpp ... > +String RenderFileUploadControl::acceptTypes() > +{ > + HTMLInputElement* input = static_cast<HTMLInputElement*>(node()); > + return input->accept(); > +} nit: no need for the input variable, just do: return static_cast<HTMLInputElement*>(node())->accept(); Otherwise, R=me (In reply to comment #3) Thank you for reviewing. > nit: no need for the input variable, just do: > > return static_cast<HTMLInputElement*>(node())->accept(); > > Otherwise, R=me Fixed it, and commit manually as r52003. |