Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(726)

Issue 137833018: Remove form control related virtual methods from Element (Closed)

Created:
6 years, 10 months ago by rwlbuis
Modified:
6 years, 10 months ago
Reviewers:
tkent, Inactive, aklein
CC:
blink-reviews, dglazkov+blink, sof, eae+blinkwatch, adamk+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Remove form control related virtual methods from Element As the FIXME says, these are only used by form controls. That is, setChangedSinceLastFormControlChangeEvent can be removed from Element as-is. The other two can also be removed but only after adding some cast code to Document.setFocusedElement. Based on http://trac.webkit.org/changeset/150711 by Andreas Kling. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166216

Patch Set 1 #

Patch Set 2 : Align with matching WebKit r150711 #

Patch Set 3 : Remove hopefully unneeded HTMLOptGroupElement.foemControlType #

Total comments: 2

Patch Set 4 : Add HTMLFormControlElement.setFocus as suggested #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -27 lines) Patch
M Source/core/dom/Document.cpp View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M Source/core/dom/Element.h View 1 1 chunk +0 lines, -7 lines 0 comments Download
M Source/core/html/HTMLFormControlElement.h View 1 2 3 3 chunks +6 lines, -4 lines 0 comments Download
M Source/core/html/HTMLFormControlElement.cpp View 1 2 3 2 chunks +8 lines, -5 lines 0 comments Download
M Source/core/html/HTMLOptGroupElement.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/html/HTMLOptGroupElement.cpp View 1 2 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
rwlbuis
I did a first patch for this, removing three virtuals. Then I checked WebKit and ...
6 years, 10 months ago (2014-01-30 00:58:30 UTC) #1
Inactive
lgtm
6 years, 10 months ago (2014-01-30 01:21:33 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/137833018/40001
6 years, 10 months ago (2014-01-30 01:21:45 UTC) #3
tkent
https://codereview.chromium.org/137833018/diff/40001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/137833018/diff/40001/Source/core/dom/Document.cpp#newcode3366 Source/core/dom/Document.cpp:3366: if (oldFocusedElement->isFormControlElement()) { I don't like this change. It ...
6 years, 10 months ago (2014-01-30 01:38:50 UTC) #4
Inactive
On 2014/01/30 01:38:50, tkent wrote: > https://codereview.chromium.org/137833018/diff/40001/Source/core/dom/Document.cpp > File Source/core/dom/Document.cpp (right): > > https://codereview.chromium.org/137833018/diff/40001/Source/core/dom/Document.cpp#newcode3366 > ...
6 years, 10 months ago (2014-01-30 01:40:29 UTC) #5
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 01:45:18 UTC) #6
Inactive
https://codereview.chromium.org/137833018/diff/40001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/137833018/diff/40001/Source/core/dom/Document.cpp#newcode3366 Source/core/dom/Document.cpp:3366: if (oldFocusedElement->isFormControlElement()) { On 2014/01/30 01:38:50, tkent wrote: > ...
6 years, 10 months ago (2014-01-30 01:57:22 UTC) #7
rwlbuis
The new patch now implements the setFocus logic in HTMLFormControlElement, which does seem to give ...
6 years, 10 months ago (2014-01-30 20:16:08 UTC) #8
tkent
lgtm This looks nice. Thanks!
6 years, 10 months ago (2014-01-31 00:09:21 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/137833018/60001
6 years, 10 months ago (2014-01-31 00:09:42 UTC) #10
commit-bot: I haz the power
Retried try job too often on linux_blink for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink&number=10101
6 years, 10 months ago (2014-01-31 03:27:20 UTC) #11
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-31 03:27:20 UTC) #12
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-31 03:27:23 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/137833018/60001
6 years, 10 months ago (2014-01-31 03:28:29 UTC) #14
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=24856
6 years, 10 months ago (2014-01-31 07:43:03 UTC) #15
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-31 07:43:08 UTC) #16
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-31 07:43:11 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/137833018/60001
6 years, 10 months ago (2014-01-31 08:06:40 UTC) #18
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=24938
6 years, 10 months ago (2014-01-31 11:32:40 UTC) #19
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-31 11:32:42 UTC) #20
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-31 11:32:49 UTC) #21
rwlbuis
The CQ bit was checked by rob.buis@samsung.com
6 years, 10 months ago (2014-01-31 13:48:56 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/137833018/60001
6 years, 10 months ago (2014-01-31 13:51:24 UTC) #23
commit-bot: I haz the power
Change committed as 166216
6 years, 10 months ago (2014-01-31 14:32:49 UTC) #24
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-31 14:32:51 UTC) #25
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-31 14:32:52 UTC) #26
commit-bot: I haz the power
6 years, 10 months ago (2014-01-31 14:32:54 UTC) #27
Message was sent while issue was closed.
CQ bit was unchecked on CL. Ignoring.

Powered by Google App Engine
This is Rietveld 408576698