[webkit-reviews] review denied: [Bug 96683] Add min and max input field values to Chromium API : [Attachment 163982] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 13 17:48:27 PDT 2012


Kent Tamura <tkent at chromium.org> has denied Anthony Berent
<aberent at chromium.org>'s request for review:
Bug 96683: Add min and max input field values to Chromium API
https://bugs.webkit.org/show_bug.cgi?id=96683

Attachment 163982: Patch
https://bugs.webkit.org/attachment.cgi?id=163982&action=review

------- Additional Comments from Kent Tamura <tkent at chromium.org>
View in context: https://bugs.webkit.org/attachment.cgi?id=163982&action=review


> Source/WebKit/chromium/ChangeLog:8
> +	   Required to correctly bound values in native widgets used, for
example, for date entry in Chrome on Android.

I'm not sure this should be done in WebTextInputInfo.  Can we obtain them from
WebInputElement? Can we expose WebCore/platform/DateTimeChooser.h via WebKit
API?

> Source/WebKit/chromium/public/WebTextInputInfo.h:61
> +    double min;
> +
> +    // The maximum value of the field (only meaningful for numbers, ranges,
> +    // and date or time based fields).
> +    double max;
> +

min and max should be initialized in the constructor.
Also, we should have "step" value.

> Source/WebKit/chromium/tests/WebViewTest.cpp:377
> +    EXPECT_EQ((double)1000*24*60*60, info.max);
> +    EXPECT_EQ((double)-1000*24*60*60*2, info.min);

Do not use C-style cast.  In this case, 1000.0 * 24 * 60 * 60 works without the
cast.


More information about the webkit-reviews mailing list