RESOLVED FIXED 32260
DOMHTMLInputElement needs getter to match setAutofilled
https://bugs.webkit.org/show_bug.cgi?id=32260
Summary DOMHTMLInputElement needs getter to match setAutofilled
John Sullivan
Reported 2009-12-07 17:40:24 PST
DOMHTMLInputElement includes a setter, setAutofilled, for which there is no corresponding getter. This getter would be convenient in some code I'm working on.
Attachments
Patch to add isAutofilled to Mac and Windows WebKit (1.62 KB, patch)
2009-12-07 17:41 PST, John Sullivan
sullivan: review-
Patch to add isAutofilled to Mac and Windows WebKit (4.00 KB, patch)
2009-12-07 17:46 PST, John Sullivan
adachan: review+
John Sullivan
Comment 1 2009-12-07 17:41:31 PST
Created attachment 44453 [details] Patch to add isAutofilled to Mac and Windows WebKit
John Sullivan
Comment 2 2009-12-07 17:43:35 PST
Comment on attachment 44453 [details] Patch to add isAutofilled to Mac and Windows WebKit D'oh! That was the wrong patch. Please ignore.
John Sullivan
Comment 3 2009-12-07 17:46:00 PST
Created attachment 44454 [details] Patch to add isAutofilled to Mac and Windows WebKit
WebKit Review Bot
Comment 4 2009-12-07 17:50:35 PST
style-queue ran check-webkit-style on attachment 44454 [details] without any errors.
Ada Chan
Comment 5 2009-12-07 17:57:07 PST
Comment on attachment 44454 [details] Patch to add isAutofilled to Mac and Windows WebKit > +HRESULT STDMETHODCALLTYPE DOMHTMLInputElement::isAutofilled( > + /* [retval][out] */ BOOL* result) > +{ > + ASSERT(m_element && m_element->hasTagName(inputTag)); Maybe separate the ASSERT into two lines? > + HTMLInputElement* inputElement = static_cast<HTMLInputElement*>(m_element); > + *result = inputElement->isAutofilled() ? TRUE : FALSE; > + return S_OK; > +} > + r=me
John Sullivan
Comment 6 2009-12-08 07:09:02 PST
Fixed in r51850.
John Sullivan
Comment 7 2009-12-08 07:51:40 PST
Oops, I forgot to split apart the assertion as suggested in the review. I'll do that as a separate patch.
Note You need to log in before you can comment on or make changes to this bug.