RESOLVED FIXED 51791
Eliminate HTMLInputElement::m_deprecatedTypeNumber, other input refactoring and renaming
https://bugs.webkit.org/show_bug.cgi?id=51791
Summary Eliminate HTMLInputElement::m_deprecatedTypeNumber, other input refactoring a...
Darin Adler
Reported 2011-01-01 09:39:29 PST
Eliminate HTMLInputElement::m_deprecatedTypeNumber, other input refactoring and renaming
Attachments
Patch (136.00 KB, patch)
2011-01-01 10:21 PST, Darin Adler
no flags
Patch (136.02 KB, patch)
2011-01-01 23:09 PST, Darin Adler
no flags
Patch (140.18 KB, patch)
2011-01-02 20:20 PST, Darin Adler
tkent: review+
Darin Adler
Comment 1 2011-01-01 10:21:58 PST
Darin Adler
Comment 2 2011-01-01 23:09:53 PST
WebKit Review Bot
Comment 3 2011-01-01 23:29:32 PST
WebKit Review Bot
Comment 4 2011-01-01 23:45:07 PST
Dimitri Glazkov (Google)
Comment 5 2011-01-02 08:33:56 PST
Comment on attachment 77770 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=77770&action=review This is awesome, long collective work of factoring this out finally coming to a close. Almost wish we landed this patch in 2010 :) > WebCore/html/HTMLInputElement.cpp:604 > + if (renderer() && renderer()->isRenderImage()) Seems like this could be a flag on the InputType? > WebCore/html/HTMLInputElement.cpp:-1394 > -bool HTMLInputElement::defaultChecked() const > -{ > - return fastHasAttribute(checkedAttr); > -} > - The EWS says that it's used it in WebKit/chromium/src/WebSearchableFormData.cpp. Can you change the code there to just query the attribute? > WebCore/html/InputType.h:75 > + // Type query functions (try not to use these; bad factoring) Can you explain a bit more here, maybe indicate future intent of refactoring?
Darin Adler
Comment 6 2011-01-02 12:04:08 PST
(In reply to comment #5) > > WebCore/html/HTMLInputElement.cpp:604 > > + if (renderer() && renderer()->isRenderImage()) > > Seems like this could be a flag on the InputType? I made an altAttributeChanged function. With that in place, HTMLInputElement doesn't even need to include RenderImage.h. > > WebCore/html/HTMLInputElement.cpp:-1394 > > -bool HTMLInputElement::defaultChecked() const > > -{ > > - return fastHasAttribute(checkedAttr); > > -} > > - > > The EWS says that it's used it in WebKit/chromium/src/WebSearchableFormData.cpp. Can you change the code there to just query the attribute? Done. > > WebCore/html/InputType.h:75 > > + // Type query functions (try not to use these; bad factoring) > > Can you explain a bit more here, maybe indicate future intent of refactoring? Will write a better comment.
Darin Adler
Comment 7 2011-01-02 20:20:06 PST
Kent Tamura
Comment 8 2011-01-02 20:45:11 PST
Comment on attachment 77789 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=77789&action=review Great! > WebCore/html/BaseTextInputType.h:43 > +private: nit: Should have a blank line before private: > WebCore/html/ImageInputType.cpp:100 > + image->updateAltText(); nit: wrong indentation.
Darin Adler
Comment 9 2011-01-03 09:03:42 PST
(In reply to comment #8) > > WebCore/html/BaseTextInputType.h:43 > > +private: > > nit: Should have a blank line before private: Thanks. Fixed. > > WebCore/html/ImageInputType.cpp:100 > > + image->updateAltText(); > > nit: wrong indentation. Fixed.
Darin Adler
Comment 10 2011-01-03 09:21:54 PST
WebKit Review Bot
Comment 11 2011-01-03 09:28:29 PST
http://trac.webkit.org/changeset/74895 might have broken Qt Linux Release minimal
Daniel Bates
Comment 12 2011-01-03 10:21:20 PST
Landed in changeset 74899 <http://trac.webkit.org/changeset/74899> the portion of the patch for file WebKit/chromium/src/WebSearchableFormData.cpp. For some reason only the change log corresponding to this change was landed.
Daniel Bates
Comment 13 2011-01-03 10:24:17 PST
For historical preservation, Csaba Osztrogonac landed the Qt build fix in changeset 74900 <http://trac.webkit.org/changeset/74900>. From briefly looking at the Qt build files, I'm unclear why the Qt Linux Release Minimal bot is the only bot that complains about the missing ExceptionCode.h.
Darin Adler
Comment 14 2011-01-03 10:44:02 PST
(In reply to comment #13) > For historical preservation, Csaba Osztrogonac landed the Qt build fix in changeset 74900 <http://trac.webkit.org/changeset/74900>. > > From briefly looking at the Qt build files, I'm unclear why the Qt Linux Release Minimal bot is the only bot that complains about the missing ExceptionCode.h. I presume that in other configurations some other header is including ExceptionCode.h.
Darin Adler
Comment 15 2011-01-03 10:44:43 PST
(In reply to comment #12) > Landed in changeset 74899 <http://trac.webkit.org/changeset/74899> the portion of the patch for file WebKit/chromium/src/WebSearchableFormData.cpp. For some reason only the change log corresponding to this change was landed. Strange. I landed using "webkit-patch land" and I believe the change was in my tree at that time. It was the same computer where I earlier used "webkit-patch upload".
Note You need to log in before you can comment on or make changes to this bug.