[Webkit-unassigned] [Bug 45491] when empty, clicking "down" on outer-spin-button returns "max value"
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Nov 24 22:25:23 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=45491
Kent Tamura <tkent at chromium.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #74830|review? |review-
Flag| |
--- Comment #14 from Kent Tamura <tkent at chromium.org> 2010-11-24 22:25:23 PST ---
(From update of attachment 74830)
View in context: https://bugs.webkit.org/attachment.cgi?id=74830&action=review
quick review.
> JavaScriptCore/ChangeLog:7
> + when empty, clicking "down" on outer-spin-button returns "max value"
> + https://bugs.webkit.org/show_bug.cgi?id=45491
> +
Write why we need this wtf/ change please.
> JavaScriptCore/wtf/DateMath.h:89
> +// Returns the offsets for UTC and DST.
> +int32_t calculateUTCOffset();
> +double calculateDSTOffset(double ms, double utcOffset);
The return values are unclear. Milliseconds, seconds, minutes, or hours?
> LayoutTests/fast/forms/script-tests/input-stepup-stepdown-from-renderer.js:28
> + if (typeof optionalStepCount != "undefined")
> + if (optionalStepCount < 0)
> + for (var i = 0; i < -optionalStepCount; i++)
> + sendKey('Down');
> + else
> + for (var i = 0; i < optionalStepCount; i++)
> + sendKey('Up');
> + else
If you follow WebKit C++ style in JavaScript code, we should add {} for multiple-line if-clause / else-clause.
> WebCore/ChangeLog:7
> + when empty, clicking "down" on outer-spin-button returns "max value"
> + https://bugs.webkit.org/show_bug.cgi?id=45491
> +
Please write what behavior change we have.
> WebCore/html/HTMLInputElement.h:270
> + virtual bool isRangeControl() const { return deprecatedInputType() == RANGE; }
Do not use deprecatedInputType() in new code.
> WebCore/html/InputType.h:92
> + virtual double defaultValue() const;
The name "defaultValue" is not good. The functions of InputType are usually synchronized with HTMLInputElement, and HTMLInputElement already has defaultValue().
> WebCore/html/RangeInputType.cpp:165
> - String lastStringValue = element()->value();
> - element()->stepUp(stepMagnification, ec);
> - if (lastStringValue != element()->value())
> - element()->dispatchFormControlChangeEvent();
> + // Using stepUpFromRenderer() since it is a kind of stepUp() operation
> + element()->stepUpFromRenderer(stepMagnification);
Is this change related to this bug?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list