WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
60262
Eliminate WebCore/dom/InputElement.{cpp,h}
https://bugs.webkit.org/show_bug.cgi?id=60262
Summary
Eliminate WebCore/dom/InputElement.{cpp,h}
Kent Tamura
Reported
2011-05-05 04:36:07 PDT
InputElement is not needed anymore because WML was removed.
Attachments
Try
(88.55 KB, patch)
2011-05-05 04:40 PDT
,
Kent Tamura
no flags
Details
Formatted Diff
Diff
Try 2
(92.01 KB, patch)
2011-05-05 06:58 PDT
,
Kent Tamura
no flags
Details
Formatted Diff
Diff
Patch
(97.45 KB, patch)
2011-05-05 13:55 PDT
,
Kent Tamura
no flags
Details
Formatted Diff
Diff
Patch 2
(97.27 KB, patch)
2011-05-05 14:54 PDT
,
Kent Tamura
no flags
Details
Formatted Diff
Diff
Patch 3
(97.68 KB, patch)
2011-05-05 21:47 PDT
,
Kent Tamura
no flags
Details
Formatted Diff
Diff
Patch for landing
(97.92 KB, patch)
2011-05-06 19:27 PDT
,
Kent Tamura
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Kent Tamura
Comment 1
2011-05-05 04:40:04 PDT
Created
attachment 92403
[details]
Try
WebKit Review Bot
Comment 2
2011-05-05 04:42:15 PDT
Attachment 92403
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/CMakeLists.txt', u'Source/W..." exit_code: 1 Source/WebCore/html/HTMLInputElement.cpp:1021: Should have only a single space after a punctuation in a comment. [whitespace/comments] [5] Total errors found: 1 in 17 files If any of these errors are false positives, please file a bug against check-webkit-style.
Early Warning System Bot
Comment 3
2011-05-05 05:00:33 PDT
Attachment 92403
[details]
did not build on qt: Build output:
http://queues.webkit.org/results/8551863
Build Bot
Comment 4
2011-05-05 05:12:01 PDT
Attachment 92403
[details]
did not build on win: Build output:
http://queues.webkit.org/results/8554884
Kent Tamura
Comment 5
2011-05-05 06:58:31 PDT
Created
attachment 92412
[details]
Try 2
Dimitri Glazkov (Google)
Comment 6
2011-05-05 08:10:09 PDT
This looks awesome! Yay! Can't wait to see the patch that's ready for review.
Collabora GTK+ EWS bot
Comment 7
2011-05-05 10:52:10 PDT
Attachment 92412
[details]
did not build on gtk: Build output:
http://queues.webkit.org/results/8571466
Alexey Proskuryakov
Comment 8
2011-05-05 11:09:15 PDT
Awesome!
Kent Tamura
Comment 9
2011-05-05 13:55:13 PDT
Created
attachment 92460
[details]
Patch
Kent Tamura
Comment 10
2011-05-05 14:54:13 PDT
Created
attachment 92476
[details]
Patch 2 Rebase
Kent Tamura
Comment 11
2011-05-05 21:47:28 PDT
Created
attachment 92538
[details]
Patch 3 GTK build fix
Ryosuke Niwa
Comment 12
2011-05-06 12:39:59 PDT
Comment on
attachment 92538
[details]
Patch 3 View in context:
https://bugs.webkit.org/attachment.cgi?id=92538&action=review
> Source/WebCore/html/HTMLInputElement.cpp:518 > + m_value = sanitizeValue(fastGetAttribute(valueAttr));
Nit: Two spaces after =.
> Source/WebCore/html/HTMLInputElement.cpp:649 > + int maxLength = attr->isNull() ? maximumLength : attr->value().toInt(); > + if (maxLength <= 0 || maxLength > maximumLength) > + maxLength = maximumLength; > + int oldMaxLength = m_maxLength; > + m_maxLength = maxLength; > + if (oldMaxLength != maxLength) > + updateValueIfNeeded();
I would have preferred to keep this in a helper function.
> Source/WebCore/html/HTMLInputElement.cpp:655 > + if (renderer()) > + renderer()->setNeedsLayoutAndPrefWidthsRecalc();
Maybe we need to call setNeedsStyleRecalc here as well because we could have a style rule that matches size attribute such as input[size=5]. Of course, that would be a separate patch.
> Source/WebCore/html/HTMLInputElement.cpp:1519 > +static inline const AtomicString& formatCodes() > +{ > + DEFINE_STATIC_LOCAL(AtomicString, codes, ("AaNnXxMm")); > + return codes; > +}
This entire section needs to be cleaned up at some point :(
Kent Tamura
Comment 13
2011-05-06 19:25:52 PDT
Comment on
attachment 92538
[details]
Patch 3 View in context:
https://bugs.webkit.org/attachment.cgi?id=92538&action=review
>> Source/WebCore/html/HTMLInputElement.cpp:518 >> + m_value = sanitizeValue(fastGetAttribute(valueAttr)); > > Nit: Two spaces after =.
Fixed.
>> Source/WebCore/html/HTMLInputElement.cpp:649 >> + updateValueIfNeeded(); > > I would have preferred to keep this in a helper function.
ok, I revived parseMaxLengthAttribute().
Kent Tamura
Comment 14
2011-05-06 19:27:20 PDT
Created
attachment 92678
[details]
Patch for landing
WebKit Commit Bot
Comment 15
2011-05-06 21:24:26 PDT
Comment on
attachment 92678
[details]
Patch for landing Clearing flags on attachment: 92678 Committed
r85998
: <
http://trac.webkit.org/changeset/85998
>
WebKit Commit Bot
Comment 16
2011-05-06 21:24:34 PDT
All reviewed patches have been landed. Closing bug.
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