WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
67251
Chromium defines its own toHTMLInputElement in DOMUtilitiesPrivate.h
https://bugs.webkit.org/show_bug.cgi?id=67251
Summary
Chromium defines its own toHTMLInputElement in DOMUtilitiesPrivate.h
Ryosuke Niwa
Reported
2011-08-30 18:47:28 PDT
Apparently chromium defines its own toHTMLInputElement in DOMUtilitiesPrivate.h, and this caused compilation to fail after I landed
http://trac.webkit.org/changeset/94142
. Error messages: Source/WebKit/chromium/src/EditorClientImpl.cpp: In member function ‘virtual void WebKit::EditorClientImpl::textFieldDidEndEditing(WebCore::Element*)’: Source/WebKit/chromium/src/EditorClientImpl.cpp:657: error: call of overloaded ‘toHTMLInputElement(WebCore::Element*&)’ is ambiguous Source/WebKit/chromium/src/DOMUtilitiesPrivate.h:49: note: candidates are: WebCore::HTMLInputElement* WebKit::toHTMLInputElement(WebCore::Node*) Source/WebCore/html/HTMLInputElement.h:359: note: WebCore::HTMLInputElement* WebCore::toHTMLInputElement(WebCore::Node*) Source/WebKit/chromium/src/EditorClientImpl.cpp: In member function ‘virtual bool WebKit::EditorClientImpl::doTextFieldCommandFromEvent(WebCore::Element*, WebCore::KeyboardEvent*)’: Source/WebKit/chromium/src/EditorClientImpl.cpp:679: error: call of overloaded ‘toHTMLInputElement(WebCore::Element*&)’ is ambiguous Source/WebKit/chromium/src/DOMUtilitiesPrivate.h:49: note: candidates are: WebCore::HTMLInputElement* WebKit::toHTMLInputElement(WebCore::Node*) It's very error-prone for each port to define utility functions that act on WebCore objects like this. At least, we shouldn't have WebCore::toHTMLInputElement and WebKit::toHTMLInputElement that have two different behaviors (the latter returns null when the node's tagName isn't inputTag).
Attachments
Add attachment
proposed patch, testcase, etc.
Darin Fisher (:fishd, Google)
Comment 1
2011-08-30 22:22:46 PDT
It seems like we should be able to kill WebKit::toHTMLInputElement. If you want to just rename the functions in DOMUtilitiesPrivate.h as a stop-gap measure, that would be fine.
Stephen Chenney
Comment 2
2013-04-11 15:12:48 PDT
https://code.google.com/p/chromium/issues/detail?id=230618
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug