Diff
Modified: trunk/LayoutTests/ChangeLog (115703 => 115704)
--- trunk/LayoutTests/ChangeLog 2012-05-01 02:51:27 UTC (rev 115703)
+++ trunk/LayoutTests/ChangeLog 2012-05-01 02:53:15 UTC (rev 115704)
@@ -1,3 +1,14 @@
+2012-04-30 Keishi Hattori <[email protected]>
+
+ datalist: Inconsistent behavior of HTMLInputElement::list
+ https://bugs.webkit.org/show_bug.cgi?id=84351
+
+ Reviewed by Kent Tamura.
+
+ * fast/forms/datalist/input-list-expected.txt:
+ * fast/forms/datalist/input-list.html: Added tests for all input types.
+ * platform/chromium/fast/forms/datalist/input-list-expected.txt: Added.
+
2012-04-30 Koji Ishii <[email protected]>
REGRESSION: editing/inserting/insert-bg-font.html fails on Lion
Modified: trunk/LayoutTests/fast/forms/datalist/input-list-expected.txt (115703 => 115704)
--- trunk/LayoutTests/fast/forms/datalist/input-list-expected.txt 2012-05-01 02:51:27 UTC (rev 115703)
+++ trunk/LayoutTests/fast/forms/datalist/input-list-expected.txt 2012-05-01 02:53:15 UTC (rev 115704)
@@ -6,10 +6,31 @@
PASS input.list is null
PASS input.list is null
PASS input.list is null
-PASS input.list is document.getElementById("dl1")
-PASS input.list is null
PASS datalist.className is "former"
+PASS document.getElementById("text").list is document.getElementById("dl1")
+PASS document.getElementById("search").list is document.getElementById("dl1")
+PASS document.getElementById("url").list is document.getElementById("dl1")
+PASS document.getElementById("telephone").list is document.getElementById("dl1")
+PASS document.getElementById("email").list is document.getElementById("dl1")
+PASS document.getElementById("datetime").list is document.getElementById("dl1")
+PASS document.getElementById("date").list is document.getElementById("dl1")
+PASS document.getElementById("month").list is document.getElementById("dl1")
+PASS document.getElementById("week").list is document.getElementById("dl1")
+PASS document.getElementById("time").list is document.getElementById("dl1")
+PASS document.getElementById("datetime-local").list is document.getElementById("dl1")
+PASS document.getElementById("number").list is document.getElementById("dl1")
+PASS document.getElementById("range").list is document.getElementById("dl1")
+PASS document.getElementById("color").list is document.getElementById("dl1")
+PASS document.getElementById("hidden").list is null
+PASS document.getElementById("password").list is null
+PASS document.getElementById("checkbox").list is null
+PASS document.getElementById("radio").list is null
+PASS document.getElementById("file").list is null
+PASS document.getElementById("submit").list is null
+PASS document.getElementById("image").list is null
+PASS document.getElementById("reset").list is null
+PASS document.getElementById("button").list is null
PASS successfullyParsed is true
TEST COMPLETE
-
+
Modified: trunk/LayoutTests/fast/forms/datalist/input-list.html (115703 => 115704)
--- trunk/LayoutTests/fast/forms/datalist/input-list.html 2012-05-01 02:51:27 UTC (rev 115703)
+++ trunk/LayoutTests/fast/forms/datalist/input-list.html 2012-05-01 02:53:15 UTC (rev 115704)
@@ -7,18 +7,41 @@
<p id="description"></p>
<div id="console"></div>
-<!-- No list attribute -->
-<input type="text" id="i1">
-<!-- Empty list -->
-<input type="text" id="i2" list="">
-<!-- Non-existent ID -->
-<input type="text" id="i3" list="nonexist">
-<!-- Normal case -->
-<input type="text" id="i4" list="dl1">
-<!-- Unsupported type -->
-<input type="password" id="i5" list="dl1">
-<!-- ID confilict -->
-<Input type="text" id="i6" list="dl2">
+<div style="display:none">
+ <!-- No list attribute -->
+ <input type="text" id="i1">
+ <!-- Empty list -->
+ <input type="text" id="i2" list="">
+ <!-- Non-existent ID -->
+ <input type="text" id="i3" list="nonexist">
+ <!-- ID confilict -->
+ <input type="text" id="i4" list="dl2">
+ <!-- supported type -->
+ <input type="text" id="text" list="dl1">
+ <input type="search" id="search" list="dl1">
+ <input type="url" id="url" list="dl1">
+ <input type="telephone" id="telephone" list="dl1">
+ <input type="email" id="email" list="dl1">
+ <input type="datetime" id="datetime" list="dl1">
+ <input type="date" id="date" list="dl1">
+ <input type="month" id="month" list="dl1">
+ <input type="week" id="week" list="dl1">
+ <input type="time" id="time" list="dl1">
+ <input type="datetime-local" id="datetime-local" list="dl1">
+ <input type="number" id="number" list="dl1">
+ <input type="range" id="range" list="dl1">
+ <input type="color" id="color" list="dl1">
+ <!-- Unsupported type -->
+ <input type="hidden" id="hidden" list="dl1">
+ <input type="password" id="password" list="dl1">
+ <input type="checkbox" id="checkbox" list="dl1">
+ <input type="radio" id="radio" list="dl1">
+ <input type="file" id="file" list="dl1">
+ <input type="submit" id="submit" list="dl1">
+ <input type="image" id="image" list="dl1">
+ <input type="reset" id="reset" list="dl1">
+ <input type="button" id="button" list="dl1">
+</div>
<datalist id="dl1">
<option>value1</option>
@@ -43,14 +66,34 @@
input = document.getElementById('i3');
shouldBeNull('input.list');
-input = document.getElementById('i4');
-shouldBe('input.list', 'document.getElementById("dl1")');
+var datalist = document.getElementById('i4').list;
+shouldBe('datalist.className', '"former"');
-input = document.getElementById('i5');
-shouldBeNull('input.list');
+shouldBe('document.getElementById("text").list', 'document.getElementById("dl1")');
+shouldBe('document.getElementById("search").list', 'document.getElementById("dl1")');
+shouldBe('document.getElementById("url").list', 'document.getElementById("dl1")');
+shouldBe('document.getElementById("telephone").list', 'document.getElementById("dl1")');
+shouldBe('document.getElementById("email").list', 'document.getElementById("dl1")');
+shouldBe('document.getElementById("datetime").list', 'document.getElementById("dl1")');
+shouldBe('document.getElementById("date").list', 'document.getElementById("dl1")');
+shouldBe('document.getElementById("month").list', 'document.getElementById("dl1")');
+shouldBe('document.getElementById("week").list', 'document.getElementById("dl1")');
+shouldBe('document.getElementById("time").list', 'document.getElementById("dl1")');
+shouldBe('document.getElementById("datetime-local").list', 'document.getElementById("dl1")');
+shouldBe('document.getElementById("number").list', 'document.getElementById("dl1")');
+shouldBe('document.getElementById("range").list', 'document.getElementById("dl1")');
+shouldBe('document.getElementById("color").list', 'document.getElementById("dl1")');
-var datalist = document.getElementById('i6').list;
-shouldBe('datalist.className', '"former"');
+shouldBeNull('document.getElementById("hidden").list');
+shouldBeNull('document.getElementById("password").list');
+shouldBeNull('document.getElementById("checkbox").list');
+shouldBeNull('document.getElementById("radio").list');
+shouldBeNull('document.getElementById("file").list');
+shouldBeNull('document.getElementById("submit").list');
+shouldBeNull('document.getElementById("image").list');
+shouldBeNull('document.getElementById("reset").list');
+shouldBeNull('document.getElementById("button").list');
+
</script>
<script src=""
</body>
Added: trunk/LayoutTests/platform/chromium/fast/forms/datalist/input-list-expected.txt (0 => 115704)
--- trunk/LayoutTests/platform/chromium/fast/forms/datalist/input-list-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/chromium/fast/forms/datalist/input-list-expected.txt 2012-05-01 02:53:15 UTC (rev 115704)
@@ -0,0 +1,36 @@
+Test for the list attribute.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS input.list is null
+PASS input.list is null
+PASS input.list is null
+PASS datalist.className is "former"
+PASS document.getElementById("text").list is document.getElementById("dl1")
+PASS document.getElementById("search").list is document.getElementById("dl1")
+PASS document.getElementById("url").list is document.getElementById("dl1")
+PASS document.getElementById("telephone").list is document.getElementById("dl1")
+FAIL document.getElementById("email").list should be [object HTMLDataListElement]. Was null.
+PASS document.getElementById("datetime").list is document.getElementById("dl1")
+FAIL document.getElementById("date").list should be [object HTMLDataListElement]. Was null.
+PASS document.getElementById("month").list is document.getElementById("dl1")
+PASS document.getElementById("week").list is document.getElementById("dl1")
+PASS document.getElementById("time").list is document.getElementById("dl1")
+PASS document.getElementById("datetime-local").list is document.getElementById("dl1")
+PASS document.getElementById("number").list is document.getElementById("dl1")
+FAIL document.getElementById("range").list should be [object HTMLDataListElement]. Was null.
+FAIL document.getElementById("color").list should be [object HTMLDataListElement]. Was null.
+PASS document.getElementById("hidden").list is null
+PASS document.getElementById("password").list is null
+PASS document.getElementById("checkbox").list is null
+PASS document.getElementById("radio").list is null
+PASS document.getElementById("file").list is null
+PASS document.getElementById("submit").list is null
+PASS document.getElementById("image").list is null
+PASS document.getElementById("reset").list is null
+PASS document.getElementById("button").list is null
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Modified: trunk/Source/WebCore/ChangeLog (115703 => 115704)
--- trunk/Source/WebCore/ChangeLog 2012-05-01 02:51:27 UTC (rev 115703)
+++ trunk/Source/WebCore/ChangeLog 2012-05-01 02:53:15 UTC (rev 115704)
@@ -1,3 +1,49 @@
+2012-04-30 Keishi Hattori <[email protected]>
+
+ datalist: Inconsistent behavior of HTMLInputElement::list
+ https://bugs.webkit.org/show_bug.cgi?id=84351
+
+ Each platform will have a different set of input types that support the datalist UI.
+ This patch makes shouldRespectListAttribute ask the RenderTheme if it supports datalist UI for that input type.
+ Thus making it possible to do feature detection with JS.
+
+ Reviewed by Kent Tamura.
+
+ * WebCore.gypi: Added RenderThemeChromiumCommon.{cpp,h}
+ * html/ColorInputType.cpp:
+ (WebCore::ColorInputType::shouldRespectListAttribute):
+ (WebCore):
+ * html/ColorInputType.h:
+ (ColorInputType):
+ * html/InputType.cpp:
+ (WebCore::InputType::themeSupportsDataListUI): Static method used by TextFieldInputType, RangeInputType, and ColorInputType.
+ (WebCore):
+ * html/InputType.h:
+ (InputType):
+ * html/RangeInputType.cpp:
+ (WebCore::RangeInputType::shouldRespectListAttribute):
+ * html/TextFieldInputType.cpp:
+ (WebCore::TextFieldInputType::shouldRespectListAttribute):
+ * rendering/RenderTheme.h:
+ (RenderTheme):
+ (WebCore::RenderTheme::supportsDataListUI): Returns true if the platform can show the datalist suggestions for a given input type.
+ * rendering/RenderThemeChromiumCommon.cpp: Added.
+ (WebCore):
+ (WebCore::RenderThemeChromiumCommon::supportsDataListUI):
+ * rendering/RenderThemeChromiumCommon.h: Added.
+ (WebCore):
+ (RenderThemeChromiumCommon):
+ * rendering/RenderThemeChromiumMac.h:
+ (RenderThemeChromiumMac):
+ * rendering/RenderThemeChromiumMac.mm:
+ (WebCore::RenderThemeChromiumMac::supportsDataListUI):
+ (WebCore):
+ * rendering/RenderThemeChromiumSkia.cpp:
+ (WebCore::RenderThemeChromiumMac::supportsDataListUI):
+ (WebCore):
+ * rendering/RenderThemeChromiumSkia.h:
+ (RenderThemeChromiumSkia):
+
2012-04-30 Levi Weintraub <[email protected]>
RenderObject incorrectly lists maximalOutlineSize as a LayoutUnit
Modified: trunk/Source/WebCore/WebCore.gypi (115703 => 115704)
--- trunk/Source/WebCore/WebCore.gypi 2012-05-01 02:51:27 UTC (rev 115703)
+++ trunk/Source/WebCore/WebCore.gypi 2012-05-01 02:53:15 UTC (rev 115704)
@@ -4863,6 +4863,8 @@
'rendering/RenderTheme.h',
'rendering/RenderThemeChromiumAndroid.cpp',
'rendering/RenderThemeChromiumAndroid.h',
+ 'rendering/RenderThemeChromiumCommon.cpp',
+ 'rendering/RenderThemeChromiumCommon.h',
'rendering/RenderThemeChromiumLinux.cpp',
'rendering/RenderThemeChromiumLinux.h',
'rendering/RenderThemeChromiumMac.h',
Modified: trunk/Source/WebCore/html/ColorInputType.cpp (115703 => 115704)
--- trunk/Source/WebCore/html/ColorInputType.cpp 2012-05-01 02:51:27 UTC (rev 115703)
+++ trunk/Source/WebCore/html/ColorInputType.cpp 2012-05-01 02:53:15 UTC (rev 115704)
@@ -155,6 +155,11 @@
endColorChooser();
}
+bool ColorInputType::shouldRespectListAttribute()
+{
+ return InputType::themeSupportsDataListUI(this);
+}
+
void ColorInputType::didChooseColor(const Color& color)
{
if (element()->disabled() || element()->readOnly() || color == valueAsColor())
Modified: trunk/Source/WebCore/html/ColorInputType.h (115703 => 115704)
--- trunk/Source/WebCore/html/ColorInputType.h 2012-05-01 02:51:27 UTC (rev 115703)
+++ trunk/Source/WebCore/html/ColorInputType.h 2012-05-01 02:53:15 UTC (rev 115704)
@@ -58,6 +58,7 @@
virtual void setValue(const String&, bool valueChanged, TextFieldEventBehavior) OVERRIDE;
virtual void handleDOMActivateEvent(Event*) OVERRIDE;
virtual void detach() OVERRIDE;
+ virtual bool shouldRespectListAttribute() OVERRIDE;
Color valueAsColor() const;
void endColorChooser();
Modified: trunk/Source/WebCore/html/InputType.cpp (115703 => 115704)
--- trunk/Source/WebCore/html/InputType.cpp 2012-05-01 02:51:27 UTC (rev 115703)
+++ trunk/Source/WebCore/html/InputType.cpp 2012-05-01 02:53:15 UTC (rev 115704)
@@ -54,6 +54,7 @@
#include "RangeInputType.h"
#include "RegularExpression.h"
#include "RenderObject.h"
+#include "RenderTheme.h"
#include "ResetInputType.h"
#include "RuntimeEnabledFeatures.h"
#include "SearchInputType.h"
@@ -140,6 +141,13 @@
{
}
+bool InputType::themeSupportsDataListUI(InputType* type)
+{
+ Document* document = type->element()->document();
+ RefPtr<RenderTheme> theme = document->page() ? document->page()->theme() : RenderTheme::defaultTheme();
+ return theme->supportsDataListUI(type->formControlType());
+}
+
bool InputType::isTextField() const
{
return false;
Modified: trunk/Source/WebCore/html/InputType.h (115703 => 115704)
--- trunk/Source/WebCore/html/InputType.h 2012-05-01 02:51:27 UTC (rev 115703)
+++ trunk/Source/WebCore/html/InputType.h 2012-05-01 02:53:15 UTC (rev 115704)
@@ -80,6 +80,8 @@
static PassOwnPtr<InputType> createText(HTMLInputElement*);
virtual ~InputType();
+ static bool themeSupportsDataListUI(InputType*);
+
virtual const AtomicString& formControlType() const = 0;
virtual bool canChangeFromAnotherType() const;
Modified: trunk/Source/WebCore/html/RangeInputType.cpp (115703 => 115704)
--- trunk/Source/WebCore/html/RangeInputType.cpp 2012-05-01 02:51:27 UTC (rev 115703)
+++ trunk/Source/WebCore/html/RangeInputType.cpp 2012-05-01 02:53:15 UTC (rev 115704)
@@ -313,7 +313,7 @@
bool RangeInputType::shouldRespectListAttribute()
{
- return true;
+ return InputType::themeSupportsDataListUI(this);
}
} // namespace WebCore
Modified: trunk/Source/WebCore/html/TextFieldInputType.cpp (115703 => 115704)
--- trunk/Source/WebCore/html/TextFieldInputType.cpp 2012-05-01 02:51:27 UTC (rev 115703)
+++ trunk/Source/WebCore/html/TextFieldInputType.cpp 2012-05-01 02:53:15 UTC (rev 115704)
@@ -385,7 +385,7 @@
bool TextFieldInputType::shouldRespectListAttribute()
{
- return true;
+ return InputType::themeSupportsDataListUI(this);
}
void TextFieldInputType::updatePlaceholderText()
Modified: trunk/Source/WebCore/rendering/RenderTheme.h (115703 => 115704)
--- trunk/Source/WebCore/rendering/RenderTheme.h 2012-05-01 02:51:27 UTC (rev 115703)
+++ trunk/Source/WebCore/rendering/RenderTheme.h 2012-05-01 02:53:15 UTC (rev 115704)
@@ -131,6 +131,9 @@
// A method asking if the theme's controls actually care about redrawing when hovered.
virtual bool supportsHover(const RenderStyle*) const { return false; }
+ // A method asking if the platform is able to show datalist suggestions for a given input type.
+ virtual bool supportsDataListUI(const AtomicString&) const { return false; }
+
// Text selection colors.
Color activeSelectionBackgroundColor() const;
Color inactiveSelectionBackgroundColor() const;
Added: trunk/Source/WebCore/rendering/RenderThemeChromiumCommon.cpp (0 => 115704)
--- trunk/Source/WebCore/rendering/RenderThemeChromiumCommon.cpp (rev 0)
+++ trunk/Source/WebCore/rendering/RenderThemeChromiumCommon.cpp 2012-05-01 02:53:15 UTC (rev 115704)
@@ -0,0 +1,40 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "RenderThemeChromiumCommon.h"
+
+#include "InputType.h"
+
+namespace WebCore {
+
+bool RenderThemeChromiumCommon::supportsDataListUI(const AtomicString& type)
+{
+ // FIXME: We still need to support email, datetime, date, month, week, time, datetime-local, range, color.
+ return type == InputTypeNames::text() || type == InputTypeNames::search() || type == InputTypeNames::url()
+ || type == InputTypeNames::telephone() || type == InputTypeNames::number();
+}
+
+}
Added: trunk/Source/WebCore/rendering/RenderThemeChromiumCommon.h (0 => 115704)
--- trunk/Source/WebCore/rendering/RenderThemeChromiumCommon.h (rev 0)
+++ trunk/Source/WebCore/rendering/RenderThemeChromiumCommon.h 2012-05-01 02:53:15 UTC (rev 115704)
@@ -0,0 +1,41 @@
+/*
+ * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+
+#ifndef RenderThemeChromiumCommon_h
+#define RenderThemeChromiumCommon_h
+
+#include <wtf/text/AtomicString.h>
+
+namespace WebCore {
+
+class RenderThemeChromiumCommon {
+public:
+ static bool supportsDataListUI(const AtomicString& type);
+};
+
+}
+
+#endif // RenderThemeChromiumCommon_h
Modified: trunk/Source/WebCore/rendering/RenderThemeChromiumMac.h (115703 => 115704)
--- trunk/Source/WebCore/rendering/RenderThemeChromiumMac.h 2012-05-01 02:51:27 UTC (rev 115703)
+++ trunk/Source/WebCore/rendering/RenderThemeChromiumMac.h 2012-05-01 02:53:15 UTC (rev 115704)
@@ -24,6 +24,7 @@
#ifndef RenderThemeChromiumMac_h
#define RenderThemeChromiumMac_h
+#import "RenderThemeChromiumCommon.h"
#import "RenderThemeMac.h"
namespace WebCore {
@@ -32,6 +33,8 @@
public:
static PassRefPtr<RenderTheme> create();
+ virtual bool supportsDataListUI(const AtomicString& type) const OVERRIDE;
+
protected:
virtual bool paintTextField(RenderObject*, const PaintInfo&, const IntRect&);
#if ENABLE(VIDEO)
Modified: trunk/Source/WebCore/rendering/RenderThemeChromiumMac.mm (115703 => 115704)
--- trunk/Source/WebCore/rendering/RenderThemeChromiumMac.mm 2012-05-01 02:51:27 UTC (rev 115703)
+++ trunk/Source/WebCore/rendering/RenderThemeChromiumMac.mm 2012-05-01 02:53:15 UTC (rev 115704)
@@ -71,6 +71,11 @@
return adoptRef(new RenderThemeChromiumMac);
}
+bool RenderThemeChromiumMac::supportsDataListUI(const AtomicString& type) const
+{
+ return RenderThemeChromiumCommon::supportsDataListUI(type);
+}
+
bool RenderThemeChromiumMac::usesTestModeFocusRingColor() const
{
return PlatformSupport::layoutTestMode();
Modified: trunk/Source/WebCore/rendering/RenderThemeChromiumSkia.cpp (115703 => 115704)
--- trunk/Source/WebCore/rendering/RenderThemeChromiumSkia.cpp 2012-05-01 02:51:27 UTC (rev 115703)
+++ trunk/Source/WebCore/rendering/RenderThemeChromiumSkia.cpp 2012-05-01 02:53:15 UTC (rev 115704)
@@ -125,6 +125,11 @@
return false;
}
+bool RenderThemeChromiumSkia::supportsDataListUI(const AtomicString& type) const
+{
+ return RenderThemeChromiumCommon::supportsDataListUI(type);
+}
+
Color RenderThemeChromiumSkia::platformActiveSelectionBackgroundColor() const
{
return Color(0x1e, 0x90, 0xff);
Modified: trunk/Source/WebCore/rendering/RenderThemeChromiumSkia.h (115703 => 115704)
--- trunk/Source/WebCore/rendering/RenderThemeChromiumSkia.h 2012-05-01 02:51:27 UTC (rev 115703)
+++ trunk/Source/WebCore/rendering/RenderThemeChromiumSkia.h 2012-05-01 02:53:15 UTC (rev 115704)
@@ -29,6 +29,7 @@
#define RenderThemeChromiumSkia_h
#include "RenderTheme.h"
+#include "RenderThemeChromiumCommon.h"
namespace WebCore {
@@ -51,6 +52,8 @@
// A method asking if the theme is able to draw the focus ring.
virtual bool supportsFocusRing(const RenderStyle*) const;
+ virtual bool supportsDataListUI(const AtomicString& type) const OVERRIDE;
+
// The platform selection color.
virtual Color platformActiveSelectionBackgroundColor() const;
virtual Color platformInactiveSelectionBackgroundColor() const;