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

Issue 224963005: Refactoring: Removing variable m_shouldSubmit from HTMLFormElement.cpp (Closed)

Created:
6 years, 8 months ago by harpreet.sk
Modified:
6 years, 8 months ago
Reviewers:
tkent, keishi
CC:
blink-reviews, dglazkov+blink, adamk+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Refactoring: Removing variable m_shouldSubmit from HTMLFormElement.cpp Variable "m_shouldSubmit" is only set to true if the condition dispatchEvent(Event::createCancelableBubble(EventTypeNames::submit)) returns true in api prepareForSubmission. And on becoming true it just submit the form. Rest everywhere m_shouldSubmit is false. So this patch removes the variable m_shouldSubmit completely and change the return type of HTMLFormElement::prepareForSubmission from bool to void. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171008

Patch Set 1 #

Patch Set 2 : Changing return type of HTMLFormElement::prepareForSubmission from bool to void #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -15 lines) Patch
M Source/core/html/HTMLFormElement.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/html/HTMLFormElement.cpp View 1 3 chunks +3 lines, -13 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
harpreet.sk
Please take a look.
6 years, 8 months ago (2014-04-04 10:54:38 UTC) #1
tkent
Why do you think m_shouldSubmit is unused?
6 years, 8 months ago (2014-04-07 01:35:55 UTC) #2
harpreet.sk
On 2014/04/07 01:35:55, tkent wrote: > Why do you think m_shouldSubmit is unused? m_shouldSubmit is ...
6 years, 8 months ago (2014-04-07 07:23:58 UTC) #3
tkent
On 2014/04/07 07:23:58, harpreet.sk wrote: > On 2014/04/07 01:35:55, tkent wrote: > > Why do ...
6 years, 8 months ago (2014-04-07 07:49:15 UTC) #4
harpreet.sk
On 2014/04/07 07:49:15, tkent wrote: > The CL description should explain it. > > Now ...
6 years, 8 months ago (2014-04-07 11:02:02 UTC) #5
tkent
lgtm
6 years, 8 months ago (2014-04-08 00:04:36 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/harpreet.sk@samsung.com/224963005/20001
6 years, 8 months ago (2014-04-08 00:04:43 UTC) #7
commit-bot: I haz the power
6 years, 8 months ago (2014-04-08 01:11:39 UTC) #8
Message was sent while issue was closed.
Change committed as 171008

Powered by Google App Engine
This is Rietveld 408576698