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

Issue 2463693002: INPUT element: Updating 'step' attribute should adjust the last value. (Closed)

Created:
4 years, 1 month ago by tkent
Modified:
4 years, 1 month ago
Reviewers:
keishi
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

INPUT element: Updating 'step' attribute should adjust the last value. Bug: If - 'step' attribute is updated, - we adjust the value, and - the value is not dirty, we adjusted the default value instead of the last value. Implementation: We didn't store the last value if the value is not dirty, and compute the value on the fly. With this CL, we always store the current value to HTMLInputElement::m_valueIfDirty though we stored only a dirty value. * When |value| attribute is updated, we update m_valueIfDirty as well. * Remove special handling of null m_valueIfDirty Because setValue(null0string) doesn't clear hasDirtyValue() flag, this CL introduces setNonDirtyValue() like HTMLTextAreaElement::setNonDirtyValue(). * Make HTMLInputElement::value() clearer. BUG=633074 Committed: https://crrev.com/9763e857c8822745fb03e460e1bafdb638b95d71 Cr-Commit-Position: refs/heads/master@{#428663}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -42 lines) Patch
M third_party/WebKit/LayoutTests/fast/forms/range/range-set-attribute.html View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/range/range-set-attribute-expected.txt View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLInputElement.h View 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLInputElement.cpp View 11 chunks +61 lines, -36 lines 0 comments Download
M third_party/WebKit/Source/core/html/forms/InputType.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/forms/RangeInputType.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 18 (13 generated)
tkent
keishi@, would you review this please?
4 years, 1 month ago (2016-10-31 04:28:52 UTC) #11
keishi
LGTM
4 years, 1 month ago (2016-10-31 07:08:55 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/2463693002/20001
4 years, 1 month ago (2016-10-31 07:13:59 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:20001)
4 years, 1 month ago (2016-10-31 07:18:30 UTC) #16
commit-bot: I haz the power
4 years, 1 month ago (2016-10-31 07:20:23 UTC) #18
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/9763e857c8822745fb03e460e1bafdb638b95d71
Cr-Commit-Position: refs/heads/master@{#428663}

Powered by Google App Engine
This is Rietveld 408576698