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

Issue 106423005: Only 'form associated' elements have a potential form owner. (Closed)

Created:
7 years ago by sof
Modified:
7 years ago
CC:
blink-reviews, watchdog-blink-watchlist_google.com, dglazkov+blink, arv+blink, adamk+blink_chromium.org, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Only 'form associated' elements have a potential form owner. The spec tells us that only certain elements have the notion of a form owner, http://www.whatwg.org/specs/web-apps/current-work/#form-associated-element http://www.whatwg.org/specs/web-apps/current-work/#form-owner Implement that selective notion of 'form owner' over elements. Internally, make use of a more precise form owner notion over elements to slightly simplify form lookups (RadioNodeList + current form selection in a frame.) R=arv@chromium.org,tkent@chromium.org BUG=324828 TEST=fast/forms/form-associated-element Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163697 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163738

Patch Set 1 #

Total comments: 4

Patch Set 2 : Virtualize formOwner() + supply missing test #

Patch Set 3 : Rebase #

Patch Set 4 : Use 'error' instead of 'click' events when testing form ownership #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -28 lines) Patch
A LayoutTests/fast/forms/form-associated-element.html View 1 2 3 1 chunk +70 lines, -0 lines 0 comments Download
A LayoutTests/fast/forms/form-associated-element-expected.txt View 1 2 3 1 chunk +58 lines, -0 lines 0 comments Download
M Source/core/editing/FrameSelection.cpp View 2 chunks +10 lines, -4 lines 0 comments Download
M Source/core/html/HTMLElement.h View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M Source/core/html/HTMLElement.cpp View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M Source/core/html/HTMLFormControlElement.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/html/HTMLFormControlElement.cpp View 1 2 chunks +5 lines, -5 lines 0 comments Download
M Source/core/html/HTMLImageElement.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/html/HTMLImageElement.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/html/HTMLLabelElement.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/html/HTMLLabelElement.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLLabelElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLObjectElement.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/html/HTMLObjectElement.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/RadioNodeList.cpp View 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
sof
Please take a look when you next have a moment. [This is the 3rd & ...
7 years ago (2013-12-10 14:50:10 UTC) #1
sof
https://codereview.chromium.org/106423005/diff/1/Source/core/html/HTMLLabelElement.h File Source/core/html/HTMLLabelElement.h (left): https://codereview.chromium.org/106423005/diff/1/Source/core/html/HTMLLabelElement.h#oldcode37 Source/core/html/HTMLLabelElement.h:37: HTMLFormElement* form() const; The removal of this method would ...
7 years ago (2013-12-10 17:26:05 UTC) #2
arv (Not doing code reviews)
LGTM https://codereview.chromium.org/106423005/diff/1/Source/core/editing/FrameSelection.cpp File Source/core/editing/FrameSelection.cpp (right): https://codereview.chromium.org/106423005/diff/1/Source/core/editing/FrameSelection.cpp#newcode1743 Source/core/editing/FrameSelection.cpp:1743: HTMLFormElement* owner = toHTMLElement(element)->formOwner(); You could do: if ...
7 years ago (2013-12-10 20:37:19 UTC) #3
sof
On 2013/12/10 20:37:19, arv wrote: > LGTM > > https://codereview.chromium.org/106423005/diff/1/Source/core/editing/FrameSelection.cpp > File Source/core/editing/FrameSelection.cpp (right): > ...
7 years ago (2013-12-10 21:04:53 UTC) #4
adamk
On 2013/12/10 21:04:53, sof wrote: > On 2013/12/10 20:37:19, arv wrote: > > LGTM > ...
7 years ago (2013-12-10 21:11:00 UTC) #5
sof
On 2013/12/10 21:11:00, adamk wrote: > On 2013/12/10 21:04:53, sof wrote: > > On 2013/12/10 ...
7 years ago (2013-12-10 21:24:32 UTC) #6
tkent
Please investigate test failures. https://codereview.chromium.org/106423005/diff/1/Source/core/html/HTMLElement.cpp File Source/core/html/HTMLElement.cpp (right): https://codereview.chromium.org/106423005/diff/1/Source/core/html/HTMLElement.cpp#newcode745 Source/core/html/HTMLElement.cpp:745: HTMLFormElement* HTMLElement::formOwner() const This function ...
7 years ago (2013-12-10 23:19:27 UTC) #7
sof
On 2013/12/10 23:19:27, tkent wrote: > Please investigate test failures. > See comment made when ...
7 years ago (2013-12-11 07:08:25 UTC) #8
sof
Thanks for balking at how the methods were structured; I'd watched myself blind at their ...
7 years ago (2013-12-11 07:55:03 UTC) #9
tkent
On 2013/12/11 07:08:25, sof wrote: > On 2013/12/10 23:19:27, tkent wrote: > > Please investigate ...
7 years ago (2013-12-11 08:52:12 UTC) #10
tkent
The patch looks great. I'd say LGTM if try bots are green.
7 years ago (2013-12-11 08:53:32 UTC) #11
sof
On 2013/12/11 08:52:12, tkent wrote: > On 2013/12/11 07:08:25, sof wrote: > > On 2013/12/10 ...
7 years ago (2013-12-11 08:54:20 UTC) #12
tkent
lgtm
7 years ago (2013-12-11 09:28:04 UTC) #13
sof
On 2013/12/11 09:28:04, tkent wrote: > lgtm Excellent, thanks :) Green again post-rebase.
7 years ago (2013-12-11 09:30:56 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/106423005/40001
7 years ago (2013-12-11 09:31:19 UTC) #15
commit-bot: I haz the power
Change committed as 163697
7 years ago (2013-12-11 10:39:21 UTC) #16
Justin Novosad
On 2013/12/11 10:39:21, I haz the power (commit-bot) wrote: > Change committed as 163697 This ...
7 years ago (2013-12-11 16:33:13 UTC) #17
Justin Novosad
Reverted with r163697 Failures: http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=fast%2Fforms%2Fform-associated-element.html
7 years ago (2013-12-11 16:45:03 UTC) #18
sof
On 2013/12/11 16:45:03, junov wrote: > Reverted with r163697 > > Failures: > http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=fast%252Fforms%252Fform-associated-element.html ok, ...
7 years ago (2013-12-11 16:54:02 UTC) #19
sof
I switched the test over to using 'error' instead of 'click' events to test scoping ...
7 years ago (2013-12-11 20:52:06 UTC) #20
tkent
lgtm
7 years ago (2013-12-11 22:47:23 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/106423005/60001
7 years ago (2013-12-11 22:48:36 UTC) #22
commit-bot: I haz the power
7 years ago (2013-12-12 00:15:18 UTC) #23
Message was sent while issue was closed.
Change committed as 163738

Powered by Google App Engine
This is Rietveld 408576698