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

Issue 17381010: Introduce toHTMLFormControlElement, and use it. (Closed)

Created:
7 years, 6 months ago by tkent
Modified:
7 years, 6 months ago
Reviewers:
keishi
CC:
blink-reviews, aboxhall, eae+blinkwatch, dmazzoni, adamk+blink_chromium.org, Nate Chapin, gavinp+loader_chromium.org
Visibility:
Public.

Description

Introduce toHTMLFormControlElement, and use it. Note for 'alias'-related changes in HTMLFormElement: We had unnecessary cast from Node to HTMLFormControlElement. m_elementAliases can contain HTMLImageElement and HTMLObjectElement in addition to HTMLFormControlElement. A node was cast to HTMLFormControlElement wrongly, but it was harmless because nodes stored in m_elementAliases are used as Node*. Note for the HTMLSelectElement.h change: HTMLKeyGenElement::reset() wants to call HTMLSelectElement::reset(), and it was realized by a cast to HTMLFormControlElement, of which reset() is public. Replacing the cast to toHTMLFormControlElement doesn't work because both of toHTMLFormControlElement(Node*) and toHTMLFormControlElement(FormAssociatedElement*) match to an HTMLSelectElement argument. The public reset() makes the code simpler. BUG=none TEST=none; no behavior changes. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152706

Patch Set 1 #

Patch Set 2 : toHTMLFormControlElement #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -56 lines) Patch
M Source/WebKit/chromium/src/WebFormControlElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/WebKit/chromium/src/WebFormElement.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/WebKit/chromium/src/WebPasswordFormUtils.cpp View 1 chunk +5 lines, -5 lines 0 comments Download
M Source/WebKit/chromium/src/WebSearchableFormData.cpp View 5 chunks +19 lines, -18 lines 0 comments Download
M Source/core/accessibility/AccessibilityNodeObject.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/FrameSelection.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLFieldSetElement.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLFormControlElement.h View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/html/HTMLFormControlElement.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLFormElement.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/html/HTMLFormElement.cpp View 1 2 11 chunks +16 lines, -16 lines 0 comments Download
M Source/core/html/HTMLKeygenElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLLegendElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLSelectElement.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/RadioNodeList.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/FormSubmission.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
tkent
7 years, 6 months ago (2013-06-19 03:35:40 UTC) #1
keishi
lgtm
7 years, 6 months ago (2013-06-19 05:07:02 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/17381010/5001
7 years, 6 months ago (2013-06-19 05:49:47 UTC) #3
commit-bot: I haz the power
Failed to apply patch for Source/core/html/HTMLFormElement.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 6 months ago (2013-06-19 05:49:57 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/17381010/3003
7 years, 6 months ago (2013-06-19 06:00:45 UTC) #5
commit-bot: I haz the power
7 years, 6 months ago (2013-06-19 07:21:38 UTC) #6
Message was sent while issue was closed.
Change committed as 152706

Powered by Google App Engine
This is Rietveld 408576698