WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
67175
Get rid of toInputElement()
https://bugs.webkit.org/show_bug.cgi?id=67175
Summary
Get rid of toInputElement()
Ryosuke Niwa
Reported
2011-08-29 18:48:43 PDT
Yet another left over from WML :(
Attachments
work in progress
(18.85 KB, patch)
2011-08-30 11:22 PDT
,
Ryosuke Niwa
webkit-ews
: commit-queue-
Details
Formatted Diff
Diff
work in progress 2
(20.77 KB, patch)
2011-08-30 13:03 PDT
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
Patch
(33.38 KB, patch)
2011-08-30 14:30 PDT
,
Ryosuke Niwa
darin
: review+
webkit.review.bot
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Ryosuke Niwa
Comment 1
2011-08-30 11:22:34 PDT
Created
attachment 105656
[details]
work in progress It's clear to me that we need some sort of a helper function.
Early Warning System Bot
Comment 2
2011-08-30 11:48:50 PDT
Comment on
attachment 105656
[details]
work in progress
Attachment 105656
[details]
did not pass qt-ews (qt): Output:
http://queues.webkit.org/results/9566459
Gyuyoung Kim
Comment 3
2011-08-30 11:52:11 PDT
Comment on
attachment 105656
[details]
work in progress
Attachment 105656
[details]
did not pass efl-ews (efl): Output:
http://queues.webkit.org/results/9564521
WebKit Review Bot
Comment 4
2011-08-30 12:07:12 PDT
Comment on
attachment 105656
[details]
work in progress
Attachment 105656
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/9567495
Ryosuke Niwa
Comment 5
2011-08-30 13:03:19 PDT
Created
attachment 105677
[details]
work in progress 2
Ryosuke Niwa
Comment 6
2011-08-30 14:30:11 PDT
Created
attachment 105698
[details]
Patch
Darin Adler
Comment 7
2011-08-30 14:45:10 PDT
Comment on
attachment 105698
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=105698&action=review
> Source/WebCore/html/shadow/TextControlInnerElements.cpp:137 > + if (toHTMLInputElement(host)->maxResults() < 0) > + return decorationId; > + if (toHTMLInputElement(host)->maxResults() > 0) > + return resultsId;
Seems a little weak to call maxResults twice here. But maybe it’s just an inlined accessor and so no additional performance cost.
Ryosuke Niwa
Comment 8
2011-08-30 16:03:46 PDT
(In reply to
comment #7
)
> (From update of
attachment 105698
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=105698&action=review
> > > Source/WebCore/html/shadow/TextControlInnerElements.cpp:137 > > + if (toHTMLInputElement(host)->maxResults() < 0) > > + return decorationId; > > + if (toHTMLInputElement(host)->maxResults() > 0) > > + return resultsId; > > Seems a little weak to call maxResults twice here. But maybe it’s just an inlined accessor and so no additional performance cost.
Huh, I didn't realize that. Will fix before landing it.
Ryosuke Niwa
Comment 9
2011-08-30 16:28:00 PDT
Comment on
attachment 105698
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=105698&action=review
> Source/WebCore/html/HTMLInputElement.h:362 > + return static_cast<const HTMLInputElement*>(node);
Oops, I somehow have const here :( Will fix also.
WebKit Review Bot
Comment 10
2011-08-30 16:30:09 PDT
Comment on
attachment 105698
[details]
Patch
Attachment 105698
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/9565603
Ryosuke Niwa
Comment 11
2011-08-30 18:19:21 PDT
Committed
r94142
: <
http://trac.webkit.org/changeset/94142
>
Ryosuke Niwa
Comment 12
2011-08-30 21:46:31 PDT
HTMLIsIndexElement inherits from HTMLInputElement. Given that, I'm not sure if this refactoring is a good idea. For one, hasTagName is much slower, but also explicitly checking for the tag name might be more error-prone.
Ryosuke Niwa
Comment 13
2011-08-30 21:47:09 PDT
The patch was reverted in
http://trac.webkit.org/changeset/94149
.
Collabora GTK+ EWS bot
Comment 14
2011-08-31 04:11:02 PDT
Comment on
attachment 105698
[details]
Patch
Attachment 105698
[details]
did not pass gtk-ews (gtk): Output:
http://queues.webkit.org/results/9566719
Darin Adler
Comment 15
2011-08-31 10:12:11 PDT
Sorry for leading you astray, Ryosuke. I still don't like the virtual function so much, but we can probably live with this.
WebKit Review Bot
Comment 16
2011-08-31 18:54:18 PDT
Comment on
attachment 105698
[details]
Patch
Attachment 105698
[details]
did not pass cr-mac-ews (chromium): Output:
http://queues.webkit.org/results/9580034
WebKit Review Bot
Comment 17
2011-08-31 20:05:11 PDT
Comment on
attachment 105698
[details]
Patch
Attachment 105698
[details]
did not pass cr-mac-ews (chromium): Output:
http://queues.webkit.org/results/9578194
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