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

Issue 2537133005: New interface and function for form association (Closed)

Created:
4 years ago by yurak
Modified:
4 years ago
Reviewers:
tkent
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, dominicc (has gone to gerrit)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

I'm planning on moving all form associated code out of HTMLElementFactory and out of the constructors of HTML elements. New interface to be extended by form associated elements which has a function to hold all form association code. New function in HTMLElement.h to check if an HTMLElement is form associated or not. HTMLConstructionSite is the only place where a form is passed into HTMLElementFactory::createHTMLElement. BUG=672359 Committed: https://crrev.com/d1277589fc7407df208a562986341c49c298b752 Cr-Commit-Position: refs/heads/master@{#436548}

Patch Set 1 #

Patch Set 2 : HTMLConstructorSite #

Patch Set 3 : HTMLConstructorSite #

Patch Set 4 : Add interface to ListedElement and HTMLImageElement #

Total comments: 4

Patch Set 5 : Add interface to HTMLObjectElement #

Patch Set 6 : FormAssociated interface added to HTMLFormControlElement #

Total comments: 1

Patch Set 7 : Added to BUILD.gn #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -5 lines) Patch
M third_party/WebKit/Source/core/html/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/core/html/FormAssociated.h View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLElement.h View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFormControlElement.h View 1 2 3 4 5 3 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLImageElement.h View 1 2 3 4 5 3 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLImageElement.cpp View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLObjectElement.h View 1 2 3 4 5 3 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLObjectElement.cpp View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp View 1 2 3 4 3 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 20 (9 generated)
yurak
PTL
4 years ago (2016-12-02 05:47:57 UTC) #4
tkent
We already have core/html/FormAssociatedElement.h, which is not an Element subclass, but an interface. Can you ...
4 years ago (2016-12-02 06:00:09 UTC) #6
yurak
On 2016/12/02 at 06:00:09, tkent wrote: > We already have core/html/FormAssociatedElement.h, which is not an ...
4 years ago (2016-12-02 07:34:40 UTC) #7
tkent
On 2016/12/02 at 07:34:40, yurak wrote: > On 2016/12/02 at 06:00:09, tkent wrote: > > ...
4 years ago (2016-12-02 07:55:53 UTC) #8
yurak
Added FormAssociated interface to HTMLImageElement and ListedElement. PTL :)
4 years ago (2016-12-05 01:20:38 UTC) #9
tkent
https://codereview.chromium.org/2537133005/diff/60001/third_party/WebKit/Source/core/html/FormAssociated.h File third_party/WebKit/Source/core/html/FormAssociated.h (right): https://codereview.chromium.org/2537133005/diff/60001/third_party/WebKit/Source/core/html/FormAssociated.h#newcode12 third_party/WebKit/Source/core/html/FormAssociated.h:12: // Contains code to associate form with a form ...
4 years ago (2016-12-05 01:53:51 UTC) #10
yurak
PTL. FormAssociated interface added to HTMLImageElement, HTMLObjectElement, and HTMLFormControlElement. I'll move the form association code ...
4 years ago (2016-12-06 06:56:57 UTC) #11
tkent
lgtm https://codereview.chromium.org/2537133005/diff/100001/third_party/WebKit/Source/core/html/FormAssociated.h File third_party/WebKit/Source/core/html/FormAssociated.h (right): https://codereview.chromium.org/2537133005/diff/100001/third_party/WebKit/Source/core/html/FormAssociated.h#newcode1 third_party/WebKit/Source/core/html/FormAssociated.h:1: // Copyright 2016 The Chromium Authors. All rights ...
4 years ago (2016-12-06 07:00:16 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2537133005/120001
4 years ago (2016-12-06 07:36:05 UTC) #15
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years ago (2016-12-06 09:15:01 UTC) #17
commit-bot: I haz the power
4 years ago (2016-12-06 09:16:57 UTC) #19
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/d1277589fc7407df208a562986341c49c298b752
Cr-Commit-Position: refs/heads/master@{#436548}

Powered by Google App Engine
This is Rietveld 408576698