Changeset 87274 in webkit


Ignore:
Timestamp:
May 24, 2011 11:03:09 PM (13 years ago)
Author:
tkent@chromium.org
Message:

2011-05-24 Keishi Hattori <keishi@webkit.org>

Reviewed by Kent Tamura.

Disable textfield implementation of <input type=color>. Add INPUT_COLOR feature flag. Add input color sanitizer.
https://bugs.webkit.org/show_bug.cgi?id=61273

  • configure.ac: Added INPUT_COLOR feature flag.

2011-05-24 Keishi Hattori <keishi@webkit.org>

Reviewed by Kent Tamura.

Disable textfield implementation of <input type=color>. Add INPUT_COLOR feature flag. Add input color sanitizer.
https://bugs.webkit.org/show_bug.cgi?id=61273

  • fast/forms/ValidityState-typeMismatch-color-expected.txt: Removed.
  • fast/forms/ValidityState-typeMismatch-color.html: Removed.
  • fast/forms/color/input-value-sanitization-color-expected.txt: Added.
  • fast/forms/color/input-value-sanitization-color.html: Added. Tests sanitization algorithm for input type=color.
  • fast/forms/input-type-change3-expected.txt:
  • fast/forms/input-widths-expected.txt:
  • fast/forms/input-widths.html: Removed type=color because it is no loger a text input type.
  • fast/forms/script-tests/ValidityState-patternMismatch-unsupported.js: Changed to range input type.
  • fast/forms/script-tests/ValidityState-typeMismatch-color.js: Removed.
  • fast/forms/script-tests/input-type-change3.js:
  • platform/gtk/Skipped: Skip fast/forms/color.
  • platform/mac/Skipped: Skip fast/forms/color.
  • platform/qt/Skipped: Skip fast/forms/color.
  • platform/win/Skipped: Skip fast/forms/color.

2011-05-24 Keishi Hattori <keishi@webkit.org>

Reviewed by Kent Tamura.

Disable textfield implementation of <input type=color>. Add INPUT_COLOR feature flag. Add input color sanitizer.
https://bugs.webkit.org/show_bug.cgi?id=61273

  • Configurations/FeatureDefines.xcconfig: Added COLOR_INPUT feature flag.

2011-05-24 Keishi Hattori <keishi@webkit.org>

Reviewed by Kent Tamura.

Disable textfield implementation of <input type=color>. Add INPUT_COLOR feature flag. Add input color sanitizer.
https://bugs.webkit.org/show_bug.cgi?id=61273

Test: fast/forms/color/input-value-sanitization-color.html

  • Configurations/FeatureDefines.xcconfig: Added COLOR_INPUT feature flag.
  • GNUmakefile.am: Added COLOR_INPUT feature flag.
  • features.pri: Added COLOR_INPUT feature flag.
  • html/ColorInputType.cpp: Wrapped with COLOR_INPUT feature flag. (WebCore::ColorInputType::isColorControl): Added. (WebCore::ColorInputType::fallbackValue): Added. Fallback value defined in spec. (WebCore::ColorInputType::sanitizeValue): Added. Sanitize value string as defined in spec.
  • html/ColorInputType.h: Wrapped with COLOR_INPUT feature flag. (WebCore::ColorInputType::ColorInputType): Changed to inherit BaseButtonInputType.
  • html/InputType.cpp: (WebCore::InputType::isColorControl): Added.
  • html/InputType.h:

2011-05-24 Keishi Hattori <keishi@webkit.org>

Reviewed by Kent Tamura.

Disable textfield implementation of <input type=color>. Add INPUT_COLOR feature flag. Add input color sanitizer.
https://bugs.webkit.org/show_bug.cgi?id=61273

  • features.gypi: Added INPUT_COLOR feature flag.

2011-05-24 Keishi Hattori <keishi@webkit.org>

Reviewed by Kent Tamura.

Disable input color. Add INPUT_COLOR feature flag. Implement input color sanitizer.
https://bugs.webkit.org/show_bug.cgi?id=61273

  • Configurations/FeatureDefines.xcconfig: Added INPUT_COLOR feature flag.

2011-05-24 Keishi Hattori <keishi@webkit.org>

Reviewed by Kent Tamura.

Disable textfield implementation of <input type=color>. Add INPUT_COLOR feature flag. Add input color sanitizer.
https://bugs.webkit.org/show_bug.cgi?id=61273

  • Configurations/FeatureDefines.xcconfig: Added INPUT_COLOR feature flag.

2011-05-24 Keishi Hattori <keishi@webkit.org>

Reviewed by Kent Tamura.

Disable textfield implementation of <input type=color>. Add INPUT_COLOR feature flag. Add input color sanitizer.
https://bugs.webkit.org/show_bug.cgi?id=61273

  • Scripts/build-webkit: Added INPUT_COLOR feature flag.

2011-05-24 Keishi Hattori <keishi@webkit.org>

Reviewed by Kent Tamura.

Disable input color. Add INPUT_COLOR feature flag. Implement input color sanitizer.
https://bugs.webkit.org/show_bug.cgi?id=61273

  • win/tools/vsprops/FeatureDefines.vsprops: Added INPUT_COLOR feature flag.
  • win/tools/vsprops/FeatureDefinesCairo.vsprops: Added INPUT_COLOR feature flag.
Location:
trunk
Files:
3 added
3 deleted
33 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r87189 r87274  
     12011-05-24  Keishi Hattori  <keishi@webkit.org>
     2
     3        Reviewed by Kent Tamura.
     4
     5        Disable textfield implementation of <input type=color>. Add INPUT_COLOR feature flag. Add input color sanitizer.
     6        https://bugs.webkit.org/show_bug.cgi?id=61273
     7
     8        * configure.ac: Added INPUT_COLOR feature flag.
     9
    1102011-05-24  Jay Civelli  <jcivelli@chromium.org>
    211
  • trunk/LayoutTests/ChangeLog

    r87273 r87274  
     12011-05-24  Keishi Hattori  <keishi@webkit.org>
     2
     3        Reviewed by Kent Tamura.
     4
     5        Disable textfield implementation of <input type=color>. Add INPUT_COLOR feature flag. Add input color sanitizer.
     6        https://bugs.webkit.org/show_bug.cgi?id=61273
     7
     8        * fast/forms/ValidityState-typeMismatch-color-expected.txt: Removed.
     9        * fast/forms/ValidityState-typeMismatch-color.html: Removed.
     10        * fast/forms/color/input-value-sanitization-color-expected.txt: Added.
     11        * fast/forms/color/input-value-sanitization-color.html: Added. Tests
     12        sanitization algorithm for input type=color.
     13        * fast/forms/input-type-change3-expected.txt:
     14        * fast/forms/input-widths-expected.txt:
     15        * fast/forms/input-widths.html: Removed type=color because it
     16        is no loger a text input type.
     17        * fast/forms/script-tests/ValidityState-patternMismatch-unsupported.js: Changed to range input type.
     18        * fast/forms/script-tests/ValidityState-typeMismatch-color.js: Removed.
     19        * fast/forms/script-tests/input-type-change3.js:
     20        * platform/gtk/Skipped: Skip fast/forms/color.
     21        * platform/mac/Skipped: Skip fast/forms/color.
     22        * platform/qt/Skipped: Skip fast/forms/color.
     23        * platform/win/Skipped: Skip fast/forms/color.
     24
    1252011-05-24  Csaba Osztrogonác  <ossy@webkit.org>
    226
  • trunk/LayoutTests/fast/forms/input-type-change3-expected.txt

    r82534 r87274  
    1414PASS input.type for " button " is correctly "text".
    1515PASS input.type for "checkbox" is correctly "checkbox".
    16 PASS input.type for "color" is correctly "color".
    1716PASS input.type for "date" is correctly "date".
    1817PASS input.type for "datetime" is correctly "datetime".
  • trunk/LayoutTests/fast/forms/input-widths-expected.txt

    r76567 r87274  
    66PASS document.getElementById("tel").offsetWidth is baseWidth
    77PASS document.getElementById("url").offsetWidth is baseWidth
    8 PASS document.getElementById("color").offsetWidth is baseWidth
    98PASS document.getElementById("date").offsetWidth is baseWidth
    109PASS document.getElementById("datetime").offsetWidth is baseWidth
  • trunk/LayoutTests/fast/forms/input-widths.html

    r76567 r87274  
    3939
    4040// The folloiwng types should be removed when dedicated UIs are implemented.
    41 shouldBe('document.getElementById("color").offsetWidth', 'baseWidth');
    4241shouldBe('document.getElementById("date").offsetWidth', 'baseWidth');
    4342shouldBe('document.getElementById("datetime").offsetWidth', 'baseWidth');
  • trunk/LayoutTests/fast/forms/script-tests/ValidityState-patternMismatch-unsupported.js

    r48552 r87274  
    22
    33var input = document.createElement('input');
    4 input.type = 'color';
    5 input.pattern = '#[0-9A-F]{6}';  // Restrict to capital letters
    6 input.value = '#0099ff';
     4input.type = 'range';
     5input.pattern = '[0-9]';  // Restrict to single digit
     6input.value = '11';
    77
    8 // pattern doesn't work for type=color
     8// pattern doesn't work for type=range
    99shouldBe('input.validity.patternMismatch', 'false');
    1010
  • trunk/LayoutTests/fast/forms/script-tests/input-type-change3.js

    r82534 r87274  
    2828check(" button ", "text");
    2929check("checkbox", "checkbox");
    30 check("color", "color");
    3130check("date", "date");
    3231check("datetime", "datetime");
  • trunk/LayoutTests/platform/gtk/Skipped

    r87207 r87274  
    277277# StorageTracker is not enabled.
    278278storage/domstorage/localstorage/storagetracker
     279
     280# Color input is not yet enabled.
     281fast/forms/color
    279282
    280283# Speech input is not yet enabled.
  • trunk/LayoutTests/platform/mac/Skipped

    r87029 r87274  
    198198http/tests/multipart/policy-ignore-crash.php
    199199
     200# Color input is not yet enabled.
     201fast/forms/color
     202
    200203# Speech input is not yet enabled.
    201204fast/speech
  • trunk/LayoutTests/platform/qt/Skipped

    r87248 r87274  
    19741974fast/forms/input-number-large-padding.html
    19751975
     1976# Color input is not yet enabled.
     1977fast/forms/color
     1978
    19761979# Speech input is not yet enabled.
    19771980fast/speech
  • trunk/LayoutTests/platform/win/Skipped

    r87205 r87274  
    10621062fast/forms/input-spinbutton-capturing.html
    10631063
     1064# Color input is not yet enabled.
     1065fast/forms/color
     1066
    10641067# Speech input is not yet enabled.
    10651068fast/speech
  • trunk/Source/JavaScriptCore/ChangeLog

    r87269 r87274  
     12011-05-24  Keishi Hattori  <keishi@webkit.org>
     2
     3        Reviewed by Kent Tamura.
     4
     5        Disable textfield implementation of <input type=color>. Add INPUT_COLOR feature flag. Add input color sanitizer.
     6        https://bugs.webkit.org/show_bug.cgi?id=61273
     7
     8        * Configurations/FeatureDefines.xcconfig: Added COLOR_INPUT feature flag.
     9
    1102011-05-24  Kevin Ollivier  <kevino@theolliviers.com>
    211
  • trunk/Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig

    r87213 r87274  
    8686
    8787ENABLE_INDEXED_DATABASE = ;
     88ENABLE_INPUT_COLOR = ;
    8889ENABLE_INPUT_SPEECH = ;
    8990ENABLE_JAVASCRIPT_DEBUGGER = ENABLE_JAVASCRIPT_DEBUGGER;
     
    135136ENABLE_XSLT = ENABLE_XSLT;
    136137
    137 FEATURE_DEFINES = $(ENABLE_LINK_PREFETCH) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_WEBGL) $(ENABLE_3D_RENDERING) $(ENABLE_ANIMATION_API) $(ENABLE_BLOB) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CLIENT_BASED_GEOLOCATION) $(ENABLE_DATABASE) $(ENABLE_DATALIST) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DIRECTORY_UPLOAD) $(ENABLE_DOM_STORAGE) $(ENABLE_EVENTSOURCE) $(ENABLE_FILTERS) $(ENABLE_FILE_SYSTEM) $(ENABLE_FULLSCREEN_API) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INPUT_SPEECH) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_MATHML) $(ENABLE_METER_TAG) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_PAGE_VISIBILITY_API) $(ENABLE_PROGRESS_TAG) $(ENABLE_REGISTER_PROTOCOL_HANDLER) $(ENABLE_QUOTA) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WORKERS) $(ENABLE_XHTMLMP) $(ENABLE_XPATH) $(ENABLE_XSLT);
     138FEATURE_DEFINES = $(ENABLE_LINK_PREFETCH) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_WEBGL) $(ENABLE_3D_RENDERING) $(ENABLE_ANIMATION_API) $(ENABLE_BLOB) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CLIENT_BASED_GEOLOCATION) $(ENABLE_DATABASE) $(ENABLE_DATALIST) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DIRECTORY_UPLOAD) $(ENABLE_DOM_STORAGE) $(ENABLE_EVENTSOURCE) $(ENABLE_FILTERS) $(ENABLE_FILE_SYSTEM) $(ENABLE_FULLSCREEN_API) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INPUT_COLOR) $(ENABLE_INPUT_SPEECH) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_MATHML) $(ENABLE_METER_TAG) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_PAGE_VISIBILITY_API) $(ENABLE_PROGRESS_TAG) $(ENABLE_REGISTER_PROTOCOL_HANDLER) $(ENABLE_QUOTA) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WORKERS) $(ENABLE_XHTMLMP) $(ENABLE_XPATH) $(ENABLE_XSLT);
  • trunk/Source/WebCore/ChangeLog

    r87268 r87274  
     12011-05-24  Keishi Hattori  <keishi@webkit.org>
     2
     3        Reviewed by Kent Tamura.
     4
     5        Disable textfield implementation of <input type=color>. Add INPUT_COLOR feature flag. Add input color sanitizer.
     6        https://bugs.webkit.org/show_bug.cgi?id=61273
     7
     8        Test: fast/forms/color/input-value-sanitization-color.html
     9
     10        * Configurations/FeatureDefines.xcconfig: Added COLOR_INPUT feature flag.
     11        * GNUmakefile.am: Added COLOR_INPUT feature flag.
     12        * features.pri: Added COLOR_INPUT feature flag.
     13        * html/ColorInputType.cpp: Wrapped with COLOR_INPUT feature flag.
     14        (WebCore::ColorInputType::isColorControl): Added.
     15        (WebCore::ColorInputType::fallbackValue): Added. Fallback value defined in spec.
     16        (WebCore::ColorInputType::sanitizeValue): Added. Sanitize value string as defined in spec.
     17        * html/ColorInputType.h: Wrapped with COLOR_INPUT feature flag.
     18        (WebCore::ColorInputType::ColorInputType): Changed to inherit BaseButtonInputType.
     19        * html/InputType.cpp:
     20        (WebCore::InputType::isColorControl): Added.
     21        * html/InputType.h:
     22
    1232011-05-24  Steve Lacey  <sjl@chromium.org>
    224
  • trunk/Source/WebCore/Configurations/FeatureDefines.xcconfig

    r87189 r87274  
    8686
    8787ENABLE_INDEXED_DATABASE = ;
     88ENABLE_INPUT_COLOR = ;
    8889ENABLE_INPUT_SPEECH = ;
    8990ENABLE_JAVASCRIPT_DEBUGGER = ENABLE_JAVASCRIPT_DEBUGGER;
     
    135136ENABLE_XSLT = ENABLE_XSLT;
    136137
    137 FEATURE_DEFINES = $(ENABLE_LINK_PREFETCH) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_WEBGL) $(ENABLE_3D_RENDERING) $(ENABLE_ANIMATION_API) $(ENABLE_BLOB) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CLIENT_BASED_GEOLOCATION) $(ENABLE_DATABASE) $(ENABLE_DATALIST) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DIRECTORY_UPLOAD) $(ENABLE_DOM_STORAGE) $(ENABLE_EVENTSOURCE) $(ENABLE_FILTERS) $(ENABLE_FILE_SYSTEM) $(ENABLE_FULLSCREEN_API) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INPUT_SPEECH) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_MATHML) $(ENABLE_METER_TAG) $(ENABLE_MHTML) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_PAGE_VISIBILITY_API) $(ENABLE_PROGRESS_TAG) $(ENABLE_REGISTER_PROTOCOL_HANDLER) $(ENABLE_QUOTA) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WORKERS) $(ENABLE_XHTMLMP) $(ENABLE_XPATH) $(ENABLE_XSLT);
     138FEATURE_DEFINES = $(ENABLE_LINK_PREFETCH) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_WEBGL) $(ENABLE_3D_RENDERING) $(ENABLE_ANIMATION_API) $(ENABLE_BLOB) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CLIENT_BASED_GEOLOCATION) $(ENABLE_DATABASE) $(ENABLE_DATALIST) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DIRECTORY_UPLOAD) $(ENABLE_DOM_STORAGE) $(ENABLE_EVENTSOURCE) $(ENABLE_FILTERS) $(ENABLE_FILE_SYSTEM) $(ENABLE_FULLSCREEN_API) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INPUT_COLOR) $(ENABLE_INPUT_SPEECH) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_MATHML) $(ENABLE_METER_TAG) $(ENABLE_MHTML) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_PAGE_VISIBILITY_API) $(ENABLE_PROGRESS_TAG) $(ENABLE_REGISTER_PROTOCOL_HANDLER) $(ENABLE_QUOTA) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WORKERS) $(ENABLE_XHTMLMP) $(ENABLE_XPATH) $(ENABLE_XSLT);
  • trunk/Source/WebCore/GNUmakefile.am

    r87189 r87274  
    274274
    275275# ----
     276# Color Input API support
     277# ----
     278if ENABLE_INPUT_COLOR
     279FEATURE_DEFINES += ENABLE_INPUT_COLOR=1
     280webcore_cppflags += -DENABLE_INPUT_COLOR=1
     281else
     282webcore_cppflags += -DENABLE_INPUT_COLOR=0
     283endif # END ENABLE_INPUT_COLOR
     284
     285# ----
    276286# Speech Input API support
    277287# ----
  • trunk/Source/WebCore/features.pri

    r87189 r87274  
    7070!contains(DEFINES, ENABLE_BLOB=.): DEFINES += ENABLE_BLOB=1
    7171!contains(DEFINES, ENABLE_NOTIFICATIONS=.): DEFINES += ENABLE_NOTIFICATIONS=1
     72!contains(DEFINES, ENABLE_INPUT_COLOR=.): DEFINES += ENABLE_INPUT_COLOR=0
    7273!contains(DEFINES, ENABLE_INPUT_SPEECH=.): DEFINES += ENABLE_INPUT_SPEECH=0
    7374!contains(DEFINES, ENABLE_INSPECTOR=.): DEFINES += ENABLE_INSPECTOR=1
  • trunk/Source/WebCore/html/ColorInputType.cpp

    r73139 r87274  
    3737#include <wtf/text/WTFString.h>
    3838
     39#if ENABLE(INPUT_COLOR)
     40
    3941namespace WebCore {
    4042
     
    5860}
    5961
     62bool ColorInputType::isColorControl() const
     63{
     64    return true;
     65}
     66
    6067const AtomicString& ColorInputType::formControlType() const
    6168{
    6269    return InputTypeNames::color();
    63 }
    64 
    65 bool ColorInputType::typeMismatchFor(const String& value) const
    66 {
    67     // FIXME: Should not accept an empty value. Remove it when we implement value
    68     // sanitization for type=color.
    69     if (value.isEmpty())
    70         return false;
    71     return !isValidColorString(value);
    72 }
    73 
    74 bool ColorInputType::typeMismatch() const
    75 {
    76     // FIXME: Should return false. We don't implement value sanitization for
    77     // type=color yet.
    78     String value = element()->value();
    79     return !value.isEmpty() && !isValidColorString(value);
    8070}
    8171
     
    8575}
    8676
     77String ColorInputType::fallbackValue()
     78{
     79    return String("#000000");
     80}
     81
     82String ColorInputType::sanitizeValue(const String& proposedValue)
     83{
     84    if (proposedValue.isNull())
     85        return proposedValue;
     86
     87    if (!isValidColorString(proposedValue))
     88        return fallbackValue();
     89
     90    return proposedValue.lower();
     91}
     92
    8793} // namespace WebCore
     94
     95#endif // ENABLE(INPUT_COLOR)
  • trunk/Source/WebCore/html/ColorInputType.h

    r69445 r87274  
    3232#define ColorInputType_h
    3333
    34 #include "TextFieldInputType.h"
     34#include "BaseButtonInputType.h"
     35
     36#if ENABLE(INPUT_COLOR)
    3537
    3638namespace WebCore {
    3739
    38 class ColorInputType : public TextFieldInputType {
     40class ColorInputType : public BaseButtonInputType {
    3941public:
    4042    static PassOwnPtr<InputType> create(HTMLInputElement*);
    4143
    4244private:
    43     ColorInputType(HTMLInputElement* element) : TextFieldInputType(element) { }
     45    ColorInputType(HTMLInputElement* element) : BaseButtonInputType(element) { }
     46    virtual bool isColorControl() const;
    4447    virtual const AtomicString& formControlType() const;
    45     virtual bool typeMismatchFor(const String&) const;
    46     virtual bool typeMismatch() const;
    4748    virtual bool supportsRequired() const;
     49    virtual String fallbackValue();
     50    virtual String sanitizeValue(const String&);
    4851};
    4952
    5053} // namespace WebCore
    5154
    52 #endif // ButtonInputType_h
     55#endif // ENABLE(INPUT_COLOR)
     56
     57#endif // ColorInputType_h
  • trunk/Source/WebCore/html/InputType.cpp

    r85998 r87274  
    8080    map->add(InputTypeNames::button(), ButtonInputType::create);
    8181    map->add(InputTypeNames::checkbox(), CheckboxInputType::create);
     82#if ENABLE(INPUT_COLOR)
    8283    map->add(InputTypeNames::color(), ColorInputType::create);
     84#endif
    8385    map->add(InputTypeNames::date(), DateInputType::create);
    8486    map->add(InputTypeNames::datetime(), DateTimeInputType::create);
     
    636638}
    637639
     640#if ENABLE(INPUT_COLOR)
     641bool InputType::isColorControl() const
     642{
     643    return false;
     644}
     645#endif
     646
    638647bool InputType::shouldRespectHeightAndWidthAttributes()
    639648{
     
    658667}
    659668
     669#if ENABLE(INPUT_COLOR)
    660670const AtomicString& color()
    661671{
     
    663673    return name;
    664674}
     675#endif
    665676
    666677const AtomicString& date()
  • trunk/Source/WebCore/html/InputType.h

    r87067 r87274  
    8989    // scattered code with special cases for various types.
    9090
     91#if ENABLE(INPUT_COLOR)
     92    virtual bool isColorControl() const;
     93#endif // ENABLE(INPUT_COLOR)
    9194    virtual bool isCheckbox() const;
    9295    virtual bool isEmailField() const;
     
    260263const AtomicString& button();
    261264const AtomicString& checkbox();
     265#if ENABLE(INPUT_COLOR)
    262266const AtomicString& color();
     267#endif
    263268const AtomicString& date();
    264269const AtomicString& datetime();
  • trunk/Source/WebKit/chromium/ChangeLog

    r87260 r87274  
     12011-05-24  Keishi Hattori  <keishi@webkit.org>
     2
     3        Reviewed by Kent Tamura.
     4
     5        Disable textfield implementation of <input type=color>. Add INPUT_COLOR feature flag. Add input color sanitizer.
     6        https://bugs.webkit.org/show_bug.cgi?id=61273
     7
     8        * features.gypi: Added INPUT_COLOR feature flag.
     9
    1102011-05-24  Adam Barth  <abarth@webkit.org>
    211
  • trunk/Source/WebKit/chromium/features.gypi

    r87189 r87274  
    6363        'ENABLE_ICONDATABASE=0',
    6464        'ENABLE_INDEXED_DATABASE=1',
     65        'ENABLE_INPUT_COLOR=1',
    6566        'ENABLE_INPUT_SPEECH=1',
    6667        'ENABLE_JAVASCRIPT_DEBUGGER=1',
  • trunk/Source/WebKit/mac/ChangeLog

    r87260 r87274  
     12011-05-24  Keishi Hattori  <keishi@webkit.org>
     2
     3        Reviewed by Kent Tamura.
     4
     5        Disable input color. Add INPUT_COLOR feature flag. Implement input color sanitizer.
     6        https://bugs.webkit.org/show_bug.cgi?id=61273
     7
     8        * Configurations/FeatureDefines.xcconfig: Added INPUT_COLOR feature flag.
     9
    1102011-05-24  Adam Barth  <abarth@webkit.org>
    211
  • trunk/Source/WebKit/mac/Configurations/FeatureDefines.xcconfig

    r87213 r87274  
    8888
    8989ENABLE_INDEXED_DATABASE = ;
     90ENABLE_INPUT_COLOR = ;
    9091ENABLE_INPUT_SPEECH = ;
    9192ENABLE_JAVASCRIPT_DEBUGGER = ENABLE_JAVASCRIPT_DEBUGGER;
     
    136137ENABLE_XSLT = ENABLE_XSLT;
    137138
    138 FEATURE_DEFINES = $(ENABLE_LINK_PREFETCH) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_WEBGL) $(ENABLE_3D_RENDERING) $(ENABLE_ANIMATION_API) $(ENABLE_BLOB) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CLIENT_BASED_GEOLOCATION) $(ENABLE_DATABASE) $(ENABLE_DATALIST) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DIRECTORY_UPLOAD) $(ENABLE_DOM_STORAGE) $(ENABLE_EVENTSOURCE) $(ENABLE_FILTERS) $(ENABLE_FILE_SYSTEM) $(ENABLE_FULLSCREEN_API) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INPUT_SPEECH) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_MATHML) $(ENABLE_METER_TAG) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_PAGE_VISIBILITY_API) $(ENABLE_PROGRESS_TAG) $(ENABLE_REGISTER_PROTOCOL_HANDLER) $(ENABLE_QUOTA) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WORKERS) $(ENABLE_XHTMLMP) $(ENABLE_XPATH) $(ENABLE_XSLT);
     139FEATURE_DEFINES = $(ENABLE_LINK_PREFETCH) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_WEBGL) $(ENABLE_3D_RENDERING) $(ENABLE_ANIMATION_API) $(ENABLE_BLOB) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CLIENT_BASED_GEOLOCATION) $(ENABLE_DATABASE) $(ENABLE_DATALIST) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DIRECTORY_UPLOAD) $(ENABLE_DOM_STORAGE) $(ENABLE_EVENTSOURCE) $(ENABLE_FILTERS) $(ENABLE_FILE_SYSTEM) $(ENABLE_FULLSCREEN_API) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INPUT_COLOR) $(ENABLE_INPUT_SPEECH) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_MATHML) $(ENABLE_METER_TAG) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_PAGE_VISIBILITY_API) $(ENABLE_PROGRESS_TAG) $(ENABLE_REGISTER_PROTOCOL_HANDLER) $(ENABLE_QUOTA) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WORKERS) $(ENABLE_XHTMLMP) $(ENABLE_XPATH) $(ENABLE_XSLT);
  • trunk/Source/WebKit2/ChangeLog

    r87272 r87274  
     12011-05-24  Keishi Hattori  <keishi@webkit.org>
     2
     3        Reviewed by Kent Tamura.
     4
     5        Disable textfield implementation of <input type=color>. Add INPUT_COLOR feature flag. Add input color sanitizer.
     6        https://bugs.webkit.org/show_bug.cgi?id=61273
     7
     8        * Configurations/FeatureDefines.xcconfig: Added INPUT_COLOR feature flag.
     9
    1102011-05-24  Maciej Stachowiak  <mjs@apple.com>
    211
  • trunk/Source/WebKit2/Configurations/FeatureDefines.xcconfig

    r87213 r87274  
    8888
    8989ENABLE_INDEXED_DATABASE = ;
     90ENABLE_INPUT_COLOR = ;
    9091ENABLE_INPUT_SPEECH = ;
    9192ENABLE_JAVASCRIPT_DEBUGGER = ENABLE_JAVASCRIPT_DEBUGGER;
     
    136137ENABLE_XSLT = ENABLE_XSLT;
    137138
    138 FEATURE_DEFINES = $(ENABLE_LINK_PREFETCH) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_WEBGL) $(ENABLE_3D_RENDERING) $(ENABLE_ANIMATION_API) $(ENABLE_BLOB) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CLIENT_BASED_GEOLOCATION) $(ENABLE_DATABASE) $(ENABLE_DATALIST) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DIRECTORY_UPLOAD) $(ENABLE_DOM_STORAGE) $(ENABLE_EVENTSOURCE) $(ENABLE_FILTERS) $(ENABLE_FILE_SYSTEM) $(ENABLE_FULLSCREEN_API) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INPUT_SPEECH) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_MATHML) $(ENABLE_METER_TAG) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_PAGE_VISIBILITY_API) $(ENABLE_PROGRESS_TAG) $(ENABLE_REGISTER_PROTOCOL_HANDLER) $(ENABLE_QUOTA) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WORKERS) $(ENABLE_XHTMLMP) $(ENABLE_XPATH) $(ENABLE_XSLT);
     139FEATURE_DEFINES = $(ENABLE_LINK_PREFETCH) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_WEBGL) $(ENABLE_3D_RENDERING) $(ENABLE_ANIMATION_API) $(ENABLE_BLOB) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CLIENT_BASED_GEOLOCATION) $(ENABLE_DATABASE) $(ENABLE_DATALIST) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DIRECTORY_UPLOAD) $(ENABLE_DOM_STORAGE) $(ENABLE_EVENTSOURCE) $(ENABLE_FILTERS) $(ENABLE_FILE_SYSTEM) $(ENABLE_FULLSCREEN_API) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INPUT_COLOR) $(ENABLE_INPUT_SPEECH) $(ENABLE_JAVASCRIPT_DEBUGGER) $(ENABLE_MATHML) $(ENABLE_METER_TAG) $(ENABLE_NOTIFICATIONS) $(ENABLE_OFFLINE_WEB_APPLICATIONS) $(ENABLE_PAGE_VISIBILITY_API) $(ENABLE_PROGRESS_TAG) $(ENABLE_REGISTER_PROTOCOL_HANDLER) $(ENABLE_QUOTA) $(ENABLE_SHARED_WORKERS) $(ENABLE_SVG) $(ENABLE_SVG_ANIMATION) $(ENABLE_SVG_AS_IMAGE) $(ENABLE_SVG_DOM_OBJC_BINDINGS) $(ENABLE_SVG_FONTS) $(ENABLE_SVG_FOREIGN_OBJECT) $(ENABLE_SVG_USE) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WORKERS) $(ENABLE_XHTMLMP) $(ENABLE_XPATH) $(ENABLE_XSLT);
  • trunk/Tools/ChangeLog

    r87257 r87274  
     12011-05-24  Keishi Hattori  <keishi@webkit.org>
     2
     3        Reviewed by Kent Tamura.
     4
     5        Disable textfield implementation of <input type=color>. Add INPUT_COLOR feature flag. Add input color sanitizer.
     6        https://bugs.webkit.org/show_bug.cgi?id=61273
     7
     8        * Scripts/build-webkit: Added INPUT_COLOR feature flag.
     9
    1102011-05-24  Greg Simon  <gregsimon@chromium.org>
    211
  • trunk/Tools/Scripts/build-webkit

    r87189 r87274  
    8888    $imageResizerSupport,
    8989    $indexedDatabaseSupport,
     90    $inputColorSupport,
    9091    $inputSpeechSupport,
    9192    $javaScriptDebuggerSupport,
     
    195196      define => "ENABLE_INDEXED_DATABASE", default => 0, value => \$indexedDatabaseSupport },
    196197
     198    { option => "input-color", desc => "Color Input support",
     199      define => "ENABLE_INPUT_COLOR", default => 0, value => \$inputColorSupport },
     200
    197201    { option => "input-speech", desc => "Speech Input API support",
    198202      define => "ENABLE_INPUT_SPEECH", default => 0, value => \$inputSpeechSupport },
  • trunk/WebKitLibraries/ChangeLog

    r86369 r87274  
     12011-05-24  Keishi Hattori  <keishi@webkit.org>
     2
     3        Reviewed by Kent Tamura.
     4
     5        Disable input color. Add INPUT_COLOR feature flag. Implement input color sanitizer.
     6        https://bugs.webkit.org/show_bug.cgi?id=61273
     7
     8        * win/tools/vsprops/FeatureDefines.vsprops: Added INPUT_COLOR feature flag.
     9        * win/tools/vsprops/FeatureDefinesCairo.vsprops: Added INPUT_COLOR feature flag.
     10
    1112011-05-12  Jessie Berlin  <jberlin@apple.com>
    212
  • trunk/WebKitLibraries/win/tools/vsprops/FeatureDefines.vsprops

    r85719 r87274  
    1010  <Tool
    1111                Name="VCCLCompilerTool"
    12                 PreprocessorDefinitions="$(ENABLE_3D_CANVAS);$(ENABLE_3D_RENDERING);$(ENABLE_ACCELERATED_2D_CANVAS);$(ENABLE_BLOB);$(ENABLE_CHANNEL_MESSAGING);$(ENABLE_CLIENT_BASED_GEOLOCATION);$(ENABLE_DATABASE);$(ENABLE_DATAGRID);$(ENABLE_DATALIST);$(ENABLE_DATA_TRANSFER_ITEMS);$(ENABLE_DETAILS);$(ENABLE_DEVICE_ORIENTATION);$(ENABLE_DIRECTORY_UPLOAD);$(ENABLE_DOM_STORAGE);$(ENABLE_EVENTSOURCE);$(ENABLE_FILTERS);$(ENABLE_FILE_SYSTEM);$(ENABLE_FULLSCREEN_API);$(ENABLE_GEOLOCATION);$(ENABLE_ICONDATABASE);$(ENABLE_INDEXED_DATABASE);$(ENABLE_INPUT_SPEECH);$(ENABLE_JAVASCRIPT_DEBUGGER);$(ENABLE_LINK_PREFETCH);$(ENABLE_MATHML);$(ENABLE_METER_TAG);$(ENABLE_NOTIFICATIONS);$(ENABLE_OFFLINE_WEB_APPLICATIONS);$(ENABLE_PAGE_VISIBILITY_API);$(ENABLE_PROGRESS_TAG);$(ENABLE_QUOTA);$(ENABLE_REGISTER_PROTOCOL_HANDLER);$(ENABLE_SHARED_WORKERS);$(ENABLE_SVG);$(ENABLE_SVG_ANIMATION);$(ENABLE_SVG_AS_IMAGE);$(ENABLE_SVG_DOM_OBJC_BINDINGS);$(ENABLE_SVG_FONTS);$(ENABLE_SVG_FOREIGN_OBJECT);$(ENABLE_SVG_USE);$(ENABLE_VIDEO);$(ENABLE_MEDIA_STATISTICS);$(ENABLE_WEB_SOCKETS);$(ENABLE_WEB_TIMING);$(ENABLE_WORKERS);$(ENABLE_XHTMLMP);$(ENABLE_XPATH);$(ENABLE_XSLT)"
     12                PreprocessorDefinitions="$(ENABLE_3D_CANVAS);$(ENABLE_3D_RENDERING);$(ENABLE_ACCELERATED_2D_CANVAS);$(ENABLE_BLOB);$(ENABLE_CHANNEL_MESSAGING);$(ENABLE_CLIENT_BASED_GEOLOCATION);$(ENABLE_DATABASE);$(ENABLE_DATAGRID);$(ENABLE_DATALIST);$(ENABLE_DATA_TRANSFER_ITEMS);$(ENABLE_DETAILS);$(ENABLE_DEVICE_ORIENTATION);$(ENABLE_DIRECTORY_UPLOAD);$(ENABLE_DOM_STORAGE);$(ENABLE_EVENTSOURCE);$(ENABLE_FILTERS);$(ENABLE_FILE_SYSTEM);$(ENABLE_FULLSCREEN_API);$(ENABLE_GEOLOCATION);$(ENABLE_ICONDATABASE);$(ENABLE_INDEXED_DATABASE);$(ENABLE_INPUT_COLOR);$(ENABLE_INPUT_SPEECH);$(ENABLE_JAVASCRIPT_DEBUGGER);$(ENABLE_LINK_PREFETCH);$(ENABLE_MATHML);$(ENABLE_METER_TAG);$(ENABLE_NOTIFICATIONS);$(ENABLE_OFFLINE_WEB_APPLICATIONS);$(ENABLE_PAGE_VISIBILITY_API);$(ENABLE_PROGRESS_TAG);$(ENABLE_QUOTA);$(ENABLE_REGISTER_PROTOCOL_HANDLER);$(ENABLE_SHARED_WORKERS);$(ENABLE_SVG);$(ENABLE_SVG_ANIMATION);$(ENABLE_SVG_AS_IMAGE);$(ENABLE_SVG_DOM_OBJC_BINDINGS);$(ENABLE_SVG_FONTS);$(ENABLE_SVG_FOREIGN_OBJECT);$(ENABLE_SVG_USE);$(ENABLE_VIDEO);$(ENABLE_MEDIA_STATISTICS);$(ENABLE_WEB_SOCKETS);$(ENABLE_WEB_TIMING);$(ENABLE_WORKERS);$(ENABLE_XHTMLMP);$(ENABLE_XPATH);$(ENABLE_XSLT)"
    1313        />
    1414  <UserMacro
     
    118118        />
    119119  <UserMacro
     120                Name="ENABLE_INPUT_COLOR"
     121                Value=""
     122                PerformEnvironmentSet="true"
     123        />
     124  <UserMacro
    120125                Name="ENABLE_INPUT_SPEECH"
    121126                Value=""
  • trunk/WebKitLibraries/win/tools/vsprops/FeatureDefinesCairo.vsprops

    r85273 r87274  
    1010  <Tool
    1111                Name="VCCLCompilerTool"
    12                 PreprocessorDefinitions="$(ENABLE_3D_CANVAS);$(ENABLE_3D_RENDERING);$(ENABLE_ACCELERATED_2D_CANVAS);$(ENABLE_BLOB);$(ENABLE_CHANNEL_MESSAGING);$(ENABLE_CLIENT_BASED_GEOLOCATION);$(ENABLE_DATABASE);$(ENABLE_DATAGRID);$(ENABLE_DATALIST);$(ENABLE_DATA_TRANSFER_ITEMS);$(ENABLE_DETAILS);$(ENABLE_DEVICE_ORIENTATION);$(ENABLE_DIRECTORY_UPLOAD);$(ENABLE_DOM_STORAGE);$(ENABLE_EVENTSOURCE);$(ENABLE_FILTERS);$(ENABLE_FILE_SYSTEM);$(ENABLE_FULLSCREEN_API);$(ENABLE_GEOLOCATION);$(ENABLE_ICONDATABASE);$(ENABLE_INDEXED_DATABASE);$(ENABLE_INPUT_SPEECH);$(ENABLE_JAVASCRIPT_DEBUGGER);$(ENABLE_LINK_PREFETCH);$(ENABLE_MATHML);$(ENABLE_METER_TAG);$(ENABLE_NOTIFICATIONS);$(ENABLE_OFFLINE_WEB_APPLICATIONS);$(ENABLE_PAGE_VISIBILITY_API);$(ENABLE_PROGRESS_TAG);$(ENABLE_QUOTA);$(ENABLE_REGISTER_PROTOCOL_HANDLER);$(ENABLE_SHARED_WORKERS);$(ENABLE_SVG);$(ENABLE_SVG_ANIMATION);$(ENABLE_SVG_AS_IMAGE);$(ENABLE_SVG_DOM_OBJC_BINDINGS);$(ENABLE_SVG_FONTS);$(ENABLE_SVG_FOREIGN_OBJECT);$(ENABLE_SVG_USE);$(ENABLE_VIDEO);$(ENABLE_MEDIA_STATISTICS);$(ENABLE_WEB_SOCKETS);$(ENABLE_WEB_TIMING);$(ENABLE_WORKERS);$(ENABLE_XHTMLMP);$(ENABLE_XPATH);$(ENABLE_XSLT)"
     12                PreprocessorDefinitions="$(ENABLE_3D_CANVAS);$(ENABLE_3D_RENDERING);$(ENABLE_ACCELERATED_2D_CANVAS);$(ENABLE_BLOB);$(ENABLE_CHANNEL_MESSAGING);$(ENABLE_CLIENT_BASED_GEOLOCATION);$(ENABLE_DATABASE);$(ENABLE_DATAGRID);$(ENABLE_DATALIST);$(ENABLE_DATA_TRANSFER_ITEMS);$(ENABLE_DETAILS);$(ENABLE_DEVICE_ORIENTATION);$(ENABLE_DIRECTORY_UPLOAD);$(ENABLE_DOM_STORAGE);$(ENABLE_EVENTSOURCE);$(ENABLE_FILTERS);$(ENABLE_FILE_SYSTEM);$(ENABLE_FULLSCREEN_API);$(ENABLE_GEOLOCATION);$(ENABLE_ICONDATABASE);$(ENABLE_INDEXED_DATABASE);$(ENABLE_INPUT_COLOR);$(ENABLE_INPUT_SPEECH);$(ENABLE_JAVASCRIPT_DEBUGGER);$(ENABLE_LINK_PREFETCH);$(ENABLE_MATHML);$(ENABLE_METER_TAG);$(ENABLE_NOTIFICATIONS);$(ENABLE_OFFLINE_WEB_APPLICATIONS);$(ENABLE_PAGE_VISIBILITY_API);$(ENABLE_PROGRESS_TAG);$(ENABLE_QUOTA);$(ENABLE_REGISTER_PROTOCOL_HANDLER);$(ENABLE_SHARED_WORKERS);$(ENABLE_SVG);$(ENABLE_SVG_ANIMATION);$(ENABLE_SVG_AS_IMAGE);$(ENABLE_SVG_DOM_OBJC_BINDINGS);$(ENABLE_SVG_FONTS);$(ENABLE_SVG_FOREIGN_OBJECT);$(ENABLE_SVG_USE);$(ENABLE_VIDEO);$(ENABLE_MEDIA_STATISTICS);$(ENABLE_WEB_SOCKETS);$(ENABLE_WEB_TIMING);$(ENABLE_WORKERS);$(ENABLE_XHTMLMP);$(ENABLE_XPATH);$(ENABLE_XSLT)"
    1313        />
    1414  <UserMacro
     
    118118        />
    119119  <UserMacro
     120                Name="ENABLE_INPUT_COLOR"
     121                Value=""
     122                PerformEnvironmentSet="true"
     123        />
     124  <UserMacro
    120125                Name="ENABLE_INPUT_SPEECH"
    121126                Value=""
  • trunk/configure.ac

    r87189 r87274  
    473473              [],[enable_indexed_database="no"])
    474474AC_MSG_RESULT([$enable_indexed_database])
     475
     476# check whether to enable the color input
     477AC_MSG_CHECKING([whether to enable the color input])
     478AC_ARG_ENABLE(input_color,
     479              AC_HELP_STRING([--enable-input-color],
     480                             [enable the color input [default=no]]),
     481              [],[enable_input_color="no"])
     482AC_MSG_RESULT([$enable_input_color])
    475483
    476484# check whether to enable the speech input API
     
    11091117AM_CONDITIONAL([ENABLE_IMAGE_RESIZER],[test "$enable_image_resizer" = "yes"])
    11101118AM_CONDITIONAL([ENABLE_INDEXED_DATABASE],[test "$enable_indexed_database" = "yes"])
     1119AM_CONDITIONAL([ENABLE_INPUT_COLOR],[test "$enable_input_color" = "yes"])
    11111120AM_CONDITIONAL([ENABLE_INPUT_SPEECH],[test "$enable_input_speech" = "yes"])
    11121121AM_CONDITIONAL([ENABLE_XHTMLMP],[test "$enable_xhtmlmp" = "yes"])
     
    12241233 Opcode stats                                             : $enable_opcode_stats
    12251234 SharedWorkers support                                    : $enable_shared_workers
     1235 Color input support                                      : $enable_input_color
    12261236 Speech input support                                     : $enable_input_speech
    12271237 SVG support                                              : $enable_svg
Note: See TracChangeset for help on using the changeset viewer.