[prev in list] [next in list] [prev in thread] [next in thread] 

List:       webkit-changes
Subject:    [webkit-changes] [50046] trunk
From:       eric () webkit ! org
Date:       2009-10-25 20:16:00
Message-ID: 20091025201604.277C32BB194A () beta ! macosforge ! org
[Download RAW message or body]

[Attachment #2 (text/html)]

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[50046] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: \
verdana,arial,helvetica,sans-serif; font-size: 10pt;  } #msg dl a { font-weight: \
bold} #msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: \
bold; } #msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: \
6px; } #logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em \
0; } #logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg \
h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; } \
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; \
} #logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: \
-1.5em; padding-left: 1.5em; } #logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em \
1em 0 1em; background: white;} #logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid \
#fa0; border-bottom: 1px solid #fa0; background: #fff; } #logmsg table th { \
text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted \
#fa0; } #logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: \
0.2em 0.5em; } #logmsg table thead th { text-align: center; border-bottom: 1px solid \
#fa0; } #logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: \
6px; } #patch { width: 100%; }
#patch h4 {font-family: \
verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
 #patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, \
#patch .copfile {border:1px solid #ccc;margin:10px 0;} #patch ins \
{background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del \
{background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, \
                .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a \
href="http://trac.webkit.org/projects/webkit/changeset/50046">50046</a></dd> \
<dt>Author</dt> <dd>eric@webkit.org</dd> <dt>Date</dt> <dd>2009-10-25 13:15:56 -0700 \
(Sun, 25 Oct 2009)</dd> </dl>

<h3>Log Message</h3>
<pre>2009-10-25  Hironori Bono  &lt;hbono@chromium.org&gt;

        Reviewed by Darin Adler.

        A quick fix for Bug 29103.
        Since String::startsWith() cannot fold non-ASCII characters, this change \
folds the prefix string  and the option string before calling String::startsWith().
        https://bugs.webkit.org/show_bug.cgi?id=29103

        * fast/forms/listbox-typeahead-cyrillic-expected.txt: Added.
        * fast/forms/listbox-typeahead-cyrillic.html: Added.
        * fast/forms/listbox-typeahead-greek-expected.txt: Added.
        * fast/forms/listbox-typeahead-greek.html: Added.
2009-10-25  Hironori Bono  &lt;hbono@chromium.org&gt;

        Reviewed by Darin Adler.

        A quick fix for Bug 29103.
        Since String::startsWith() cannot fold non-ASCII characters, this change \
folds the prefix string  and the option string before calling String::startsWith().
        https://bugs.webkit.org/show_bug.cgi?id=29103

        Tests: fast/forms/listbox-typeahead-cyrillic.html
               fast/forms/listbox-typeahead-greek.html

        * dom/SelectElement.cpp:
        (WebCore::SelectElement::typeAheadFind):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkWebCoreChangeLog">trunk/WebCore/ChangeLog</a></li>
<li><a href="#trunkWebCoredomSelectElementcpp">trunk/WebCore/dom/SelectElement.cpp</a></li>
 </ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastformslistboxtypeaheadcyrillicexpectedtxt">trunk/LayoutTests/fast/forms/listbox-typeahead-cyrillic-expected.txt</a></li>
 <li><a href="#trunkLayoutTestsfastformslistboxtypeaheadcyrillichtml">trunk/LayoutTests/fast/forms/listbox-typeahead-cyrillic.html</a></li>
 <li><a href="#trunkLayoutTestsfastformslistboxtypeaheadgreekexpectedtxt">trunk/LayoutTests/fast/forms/listbox-typeahead-greek-expected.txt</a></li>
 <li><a href="#trunkLayoutTestsfastformslistboxtypeaheadgreekhtml">trunk/LayoutTests/fast/forms/listbox-typeahead-greek.html</a></li>
 </ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (50045 => 50046)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog	2009-10-25 17:28:10 UTC (rev \
                50045)
+++ trunk/LayoutTests/ChangeLog	2009-10-25 20:15:56 UTC (rev 50046)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2009-10-25  Hironori Bono  &lt;hbono@chromium.org&gt;
+
+        Reviewed by Darin Adler.
+
+        A quick fix for Bug 29103.
+        Since String::startsWith() cannot fold non-ASCII characters, this change \
folds the prefix string +        and the option string before calling \
String::startsWith(). +        https://bugs.webkit.org/show_bug.cgi?id=29103
+
+        * fast/forms/listbox-typeahead-cyrillic-expected.txt: Added.
+        * fast/forms/listbox-typeahead-cyrillic.html: Added.
+        * fast/forms/listbox-typeahead-greek-expected.txt: Added.
+        * fast/forms/listbox-typeahead-greek.html: Added.
+
</ins><span class="cx"> 2009-10-25  Sam Weinig  &lt;sam@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Reviewed by Dan Bernstein.
</span></span></pre></div>
<a id="trunkLayoutTestsfastformslistboxtypeaheadcyrillicexpectedtxt"></a>
<div class="addfile"><h4>Added: \
trunk/LayoutTests/fast/forms/listbox-typeahead-cyrillic-expected.txt (0 => \
50046)</h4> <pre class="diff"><span>
<span class="info">--- \
trunk/LayoutTests/fast/forms/listbox-typeahead-cyrillic-expected.txt	                 \
                (rev 0)
+++ trunk/LayoutTests/fast/forms/listbox-typeahead-cyrillic-expected.txt	2009-10-25 \
20:15:56 UTC (rev 50046) </span><span class="lines">@@ -0,0 +1,35 @@
</span><ins>+This test verifies a drop-down menu can refine the selection when we \
send keydown events consisting of Cyrillic characters. +
+
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
</ins></span></pre></div>
<a id="trunkLayoutTestsfastformslistboxtypeaheadcyrillichtml"></a>
<div class="addfile"><h4>Added: \
trunk/LayoutTests/fast/forms/listbox-typeahead-cyrillic.html (0 => 50046)</h4> <pre \
class="diff"><span> <span class="info">--- \
trunk/LayoutTests/fast/forms/listbox-typeahead-cyrillic.html	                        \
                (rev 0)
+++ trunk/LayoutTests/fast/forms/listbox-typeahead-cyrillic.html	2009-10-25 20:15:56 \
UTC (rev 50046) </span><span class="lines">@@ -0,0 +1,71 @@
</span><ins>+&lt;html&gt;
+&lt;head&gt;
+    &lt;title&gt;&lt;/title&gt;
+&lt;/head&gt;
+&lt;body&gt;
+    &lt;p&gt;This test verifies a drop-down menu can refine the selection when we \
send keydown events consisting of Cyrillic characters.&lt;/p&gt; +    &lt;select \
id=&quot;test&quot;&gt; +        &lt;option value=&quot;-1&quot;&gt;should not see \
me&lt;/option&gt; +        &lt;option \
value=&quot;0&quot;&gt;&amp;#x0410;&lt;/option&gt; +        &lt;option \
value=&quot;1&quot;&gt;&amp;#x0410;&amp;#x0411;&lt;/option&gt; +        &lt;option \
value=&quot;2&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&lt;/option&gt; +        \
&lt;option value=&quot;3&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&lt;/option&gt;
 +        &lt;option \
value=&quot;4&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&lt;/option&gt;
 +        &lt;option \
value=&quot;5&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&amp;#x0415;&lt;/option&gt;
 +        &lt;option \
value=&quot;6&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&amp;#x0415;&amp;#x0416;&lt;/option&gt;
 +        &lt;option \
value=&quot;7&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&amp;#x0415;&amp;#x0416;&amp;#x0417;&lt;/option&gt;
 +        &lt;option \
value=&quot;8&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&amp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&lt;/option&gt;
 +        &lt;option \
value=&quot;9&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&amp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&amp;#x0419;&lt;/option&gt;
 +        &lt;option \
value=&quot;10&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&a \
mp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&amp;#x0419;&amp;#x041A;&lt;/option&gt; \
+        &lt;option value=&quot;11&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;# \
x0413;&amp;#x0414;&amp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&amp;#x0419;&amp;#x041A;&amp;#x041B;&lt;/option&gt;
 +        &lt;option \
value=&quot;12&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&a \
mp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&amp;#x0419;&amp;#x041A;&amp;#x041B;&amp;#x041C;&lt;/option&gt;
 +        &lt;option \
value=&quot;13&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&a \
mp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&amp;#x0419;&amp;#x041A;&amp;#x041B;&amp;#x041C;&amp;#x041D;&lt;/option&gt;
 +        &lt;option \
value=&quot;14&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&a \
mp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&amp;#x0419;&amp;#x041A;&amp;#x041B;&amp;#x041C;&amp;#x041D;&amp;#x041E;&lt;/option&gt;
 +        &lt;option \
value=&quot;15&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&a \
mp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&amp;#x0419;&amp;#x041A;&amp;#x041B;&amp;#x041C;&amp;#x041D;&amp;#x041E;&amp;#x041F;&lt;/option&gt;
 +        &lt;option \
value=&quot;16&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&a \
mp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&amp;#x0419;&amp;#x041A;&amp;#x041B;&amp;#x041C;&amp;#x041D;&amp;#x041E;&amp;#x041F;&amp;#x0420;&lt;/option&gt;
 +        &lt;option \
value=&quot;17&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&a \
mp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&amp;#x0419;&amp;#x041A;&amp;#x041B;&amp \
;#x041C;&amp;#x041D;&amp;#x041E;&amp;#x041F;&amp;#x0420;&amp;#x0421;&lt;/option&gt; + \
&lt;option value=&quot;18&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&am \
p;#x0414;&amp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&amp;#x0419;&amp;#x041A;&amp; \
#x041B;&amp;#x041C;&amp;#x041D;&amp;#x041E;&amp;#x041F;&amp;#x0420;&amp;#x0421;&amp;#x0422;&lt;/option&gt;
 +        &lt;option \
value=&quot;19&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&a \
mp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&amp;#x0419;&amp;#x041A;&amp;#x041B;&amp \
;#x041C;&amp;#x041D;&amp;#x041E;&amp;#x041F;&amp;#x0420;&amp;#x0421;&amp;#x0422;&amp;#x0423;&lt;/option&gt;
 +        &lt;option \
value=&quot;20&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&a \
mp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&amp;#x0419;&amp;#x041A;&amp;#x041B;&amp \
;#x041C;&amp;#x041D;&amp;#x041E;&amp;#x041F;&amp;#x0420;&amp;#x0421;&amp;#x0422;&amp;#x0423;&amp;#x0424;&lt;/option&gt;
 +        &lt;option \
value=&quot;21&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&a \
mp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&amp;#x0419;&amp;#x041A;&amp;#x041B;&amp \
;#x041C;&amp;#x041D;&amp;#x041E;&amp;#x041F;&amp;#x0420;&amp;#x0421;&amp;#x0422;&amp;#x0423;&amp;#x0424;&amp;#x0425;&lt;/option&gt;
 +        &lt;option \
value=&quot;22&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&a \
mp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&amp;#x0419;&amp;#x041A;&amp;#x041B;&amp \
;#x041C;&amp;#x041D;&amp;#x041E;&amp;#x041F;&amp;#x0420;&amp;#x0421;&amp;#x0422;&amp;#x0423;&amp;#x0424;&amp;#x0425;&amp;#x0426;&lt;/option&gt;
 +        &lt;option \
value=&quot;23&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&a \
mp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&amp;#x0419;&amp;#x041A;&amp;#x041B;&amp \
;#x041C;&amp;#x041D;&amp;#x041E;&amp;#x041F;&amp;#x0420;&amp;#x0421;&amp;#x0422;&amp;#x0423;&amp;#x0424;&amp;#x0425;&amp;#x0426;&amp;#x0427;&lt;/option&gt;
 +        &lt;option \
value=&quot;24&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&a \
mp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&amp;#x0419;&amp;#x041A;&amp;#x041B;&amp \
;#x041C;&amp;#x041D;&amp;#x041E;&amp;#x041F;&amp;#x0420;&amp;#x0421;&amp;#x0422;&amp;# \
x0423;&amp;#x0424;&amp;#x0425;&amp;#x0426;&amp;#x0427;&amp;#x0428;&lt;/option&gt; +   \
&lt;option value=&quot;25&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&am \
p;#x0414;&amp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&amp;#x0419;&amp;#x041A;&amp; \
#x041B;&amp;#x041C;&amp;#x041D;&amp;#x041E;&amp;#x041F;&amp;#x0420;&amp;#x0421;&amp;#x \
0422;&amp;#x0423;&amp;#x0424;&amp;#x0425;&amp;#x0426;&amp;#x0427;&amp;#x0428;&amp;#x0429;&lt;/option&gt;
 +        &lt;option \
value=&quot;26&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&a \
mp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&amp;#x0419;&amp;#x041A;&amp;#x041B;&amp \
;#x041C;&amp;#x041D;&amp;#x041E;&amp;#x041F;&amp;#x0420;&amp;#x0421;&amp;#x0422;&amp;# \
x0423;&amp;#x0424;&amp;#x0425;&amp;#x0426;&amp;#x0427;&amp;#x0428;&amp;#x0429;&amp;#x042A;&lt;/option&gt;
 +        &lt;option \
value=&quot;27&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&a \
mp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&amp;#x0419;&amp;#x041A;&amp;#x041B;&amp \
;#x041C;&amp;#x041D;&amp;#x041E;&amp;#x041F;&amp;#x0420;&amp;#x0421;&amp;#x0422;&amp;# \
x0423;&amp;#x0424;&amp;#x0425;&amp;#x0426;&amp;#x0427;&amp;#x0428;&amp;#x0429;&amp;#x042A;&amp;#x042B;&lt;/option&gt;
 +        &lt;option \
value=&quot;28&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&a \
mp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&amp;#x0419;&amp;#x041A;&amp;#x041B;&amp \
;#x041C;&amp;#x041D;&amp;#x041E;&amp;#x041F;&amp;#x0420;&amp;#x0421;&amp;#x0422;&amp;# \
x0423;&amp;#x0424;&amp;#x0425;&amp;#x0426;&amp;#x0427;&amp;#x0428;&amp;#x0429;&amp;#x042A;&amp;#x042B;&amp;#x042C;&lt;/option&gt;
 +        &lt;option \
value=&quot;29&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&a \
mp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&amp;#x0419;&amp;#x041A;&amp;#x041B;&amp \
;#x041C;&amp;#x041D;&amp;#x041E;&amp;#x041F;&amp;#x0420;&amp;#x0421;&amp;#x0422;&amp;# \
x0423;&amp;#x0424;&amp;#x0425;&amp;#x0426;&amp;#x0427;&amp;#x0428;&amp;#x0429;&amp;#x042A;&amp;#x042B;&amp;#x042C;&amp;#x042D;&lt;/option&gt;
 +        &lt;option \
value=&quot;30&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&a \
mp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&amp;#x0419;&amp;#x041A;&amp;#x041B;&amp \
;#x041C;&amp;#x041D;&amp;#x041E;&amp;#x041F;&amp;#x0420;&amp;#x0421;&amp;#x0422;&amp;# \
x0423;&amp;#x0424;&amp;#x0425;&amp;#x0426;&amp;#x0427;&amp;#x0428;&amp;#x0429;&amp;#x042A;&amp;#x042B;&amp;#x042C;&amp;#x042D;&amp;#x042E;&lt;/option&gt;
 +        &lt;option \
value=&quot;31&quot;&gt;&amp;#x0410;&amp;#x0411;&amp;#x0412;&amp;#x0413;&amp;#x0414;&a \
mp;#x0415;&amp;#x0416;&amp;#x0417;&amp;#x0418;&amp;#x0419;&amp;#x041A;&amp;#x041B;&amp \
;#x041C;&amp;#x041D;&amp;#x041E;&amp;#x041F;&amp;#x0420;&amp;#x0421;&amp;#x0422;&amp;# \
x0423;&amp;#x0424;&amp;#x0425;&amp;#x0426;&amp;#x0427;&amp;#x0428;&amp;#x0429;&amp;#x042A;&amp;#x042B;&amp;#x042C;&amp;#x042D;&amp;#x042E;&amp;#x042F;&lt;/option&gt;
 +    &lt;/select&gt;
+    &lt;ul id=&quot;console&quot;&gt;&lt;/ul&gt;
+&lt;/body&gt;
+&lt;script&gt;
+function log(str) {
+    var li = document.createElement(&quot;li&quot;);
+    li.appendChild(document.createTextNode(str));
+    var console = document.getElementById(&quot;console&quot;);
+    console.appendChild(li);
+}
+
+if (window.layoutTestController)
+    window.layoutTestController.dumpAsText();
+
+// Set the input focus to the &lt;select&gt; element.
+var node = document.getElementById(&quot;test&quot;);
+node.focus();
+
+var base = 0x0430;
+for (var i = base; i &lt;= 0x044F; i++) {
+    // Send a key event consisting of a Cyrillic small character.
+    eventSender.keyDown(String.fromCharCode(i));
+
+    // Compare the value of this &lt;select&gt; element with the expected result.
+    if (node.value == i - base)
+        log('SUCCEEDED');
+    else
+        log('FAILED: expected=&quot;' + i + '&quot;, actual=&quot;' + node.value + \
'&quot;.'); +}
+&lt;/script&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastformslistboxtypeaheadgreekexpectedtxt"></a>
<div class="addfile"><h4>Added: \
trunk/LayoutTests/fast/forms/listbox-typeahead-greek-expected.txt (0 => 50046)</h4> \
<pre class="diff"><span> <span class="info">--- \
trunk/LayoutTests/fast/forms/listbox-typeahead-greek-expected.txt	                    \
                (rev 0)
+++ trunk/LayoutTests/fast/forms/listbox-typeahead-greek-expected.txt	2009-10-25 \
20:15:56 UTC (rev 50046) </span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+This test verifies a drop-down menu can refine the selection when we \
send keydown events consisting of Greek small characters. +
+
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
+SUCCEEDED
</ins></span></pre></div>
<a id="trunkLayoutTestsfastformslistboxtypeaheadgreekhtml"></a>
<div class="addfile"><h4>Added: \
trunk/LayoutTests/fast/forms/listbox-typeahead-greek.html (0 => 50046)</h4> <pre \
class="diff"><span> <span class="info">--- \
trunk/LayoutTests/fast/forms/listbox-typeahead-greek.html	                        \
                (rev 0)
+++ trunk/LayoutTests/fast/forms/listbox-typeahead-greek.html	2009-10-25 20:15:56 UTC \
(rev 50046) </span><span class="lines">@@ -0,0 +1,66 @@
</span><ins>+&lt;html&gt;
+&lt;head&gt;
+    &lt;title&gt;&lt;/title&gt;
+&lt;/head&gt;
+&lt;body&gt;
+    &lt;p&gt;This test verifies a drop-down menu can refine the selection when we \
send keydown events consisting of Greek small characters.&lt;/p&gt; +    &lt;select \
id=&quot;test&quot;&gt; +        &lt;option value=&quot;-1&quot;&gt;should not see \
me&lt;/option&gt; +        &lt;option \
value=&quot;0&quot;&gt;&amp;#x0391;&lt;/option&gt; +        &lt;option \
value=&quot;1&quot;&gt;&amp;#x0391;&amp;#x0392;&lt;/option&gt; +        &lt;option \
value=&quot;2&quot;&gt;&amp;#x0391;&amp;#x0392;&amp;#x0393;&lt;/option&gt; +        \
&lt;option value=&quot;3&quot;&gt;&amp;#x0391;&amp;#x0392;&amp;#x0393;&amp;#x0394;&lt;/option&gt;
 +        &lt;option \
value=&quot;4&quot;&gt;&amp;#x0391;&amp;#x0392;&amp;#x0393;&amp;#x0394;&amp;#x0395;&lt;/option&gt;
 +        &lt;option \
value=&quot;5&quot;&gt;&amp;#x0391;&amp;#x0392;&amp;#x0393;&amp;#x0394;&amp;#x0395;&amp;#x0396;&lt;/option&gt;
 +        &lt;option \
value=&quot;6&quot;&gt;&amp;#x0391;&amp;#x0392;&amp;#x0393;&amp;#x0394;&amp;#x0395;&amp;#x0396;&amp;#x0397;&lt;/option&gt;
 +        &lt;option \
value=&quot;7&quot;&gt;&amp;#x0391;&amp;#x0392;&amp;#x0393;&amp;#x0394;&amp;#x0395;&amp;#x0396;&amp;#x0397;&amp;#x0398;&lt;/option&gt;
 +        &lt;option \
value=&quot;8&quot;&gt;&amp;#x0391;&amp;#x0392;&amp;#x0393;&amp;#x0394;&amp;#x0395;&amp;#x0396;&amp;#x0397;&amp;#x0398;&amp;#x0399;&lt;/option&gt;
 +        &lt;option \
value=&quot;9&quot;&gt;&amp;#x0391;&amp;#x0392;&amp;#x0393;&amp;#x0394;&amp;#x0395;&amp;#x0396;&amp;#x0397;&amp;#x0398;&amp;#x0399;&amp;#x039A;&lt;/option&gt;
 +        &lt;option \
value=&quot;10&quot;&gt;&amp;#x0391;&amp;#x0392;&amp;#x0393;&amp;#x0394;&amp;#x0395;&a \
mp;#x0396;&amp;#x0397;&amp;#x0398;&amp;#x0399;&amp;#x039A;&amp;#x039B;&lt;/option&gt; \
+        &lt;option value=&quot;11&quot;&gt;&amp;#x0391;&amp;#x0392;&amp;#x0393;&amp;# \
x0394;&amp;#x0395;&amp;#x0396;&amp;#x0397;&amp;#x0398;&amp;#x0399;&amp;#x039A;&amp;#x039B;&amp;#x039C;&lt;/option&gt;
 +        &lt;option \
value=&quot;12&quot;&gt;&amp;#x0391;&amp;#x0392;&amp;#x0393;&amp;#x0394;&amp;#x0395;&a \
mp;#x0396;&amp;#x0397;&amp;#x0398;&amp;#x0399;&amp;#x039A;&amp;#x039B;&amp;#x039C;&amp;#x039D;&lt;/option&gt;
 +        &lt;option \
value=&quot;13&quot;&gt;&amp;#x0391;&amp;#x0392;&amp;#x0393;&amp;#x0394;&amp;#x0395;&a \
mp;#x0396;&amp;#x0397;&amp;#x0398;&amp;#x0399;&amp;#x039A;&amp;#x039B;&amp;#x039C;&amp;#x039D;&amp;#x039E;&lt;/option&gt;
 +        &lt;option \
value=&quot;14&quot;&gt;&amp;#x0391;&amp;#x0392;&amp;#x0393;&amp;#x0394;&amp;#x0395;&a \
mp;#x0396;&amp;#x0397;&amp;#x0398;&amp;#x0399;&amp;#x039A;&amp;#x039B;&amp;#x039C;&amp;#x039D;&amp;#x039E;&amp;#x039F;&lt;/option&gt;
 +        &lt;option \
value=&quot;15&quot;&gt;&amp;#x0391;&amp;#x0392;&amp;#x0393;&amp;#x0394;&amp;#x0395;&a \
mp;#x0396;&amp;#x0397;&amp;#x0398;&amp;#x0399;&amp;#x039A;&amp;#x039B;&amp;#x039C;&amp;#x039D;&amp;#x039E;&amp;#x039F;&amp;#x03A0;&lt;/option&gt;
 +        &lt;option \
value=&quot;16&quot;&gt;&amp;#x0391;&amp;#x0392;&amp;#x0393;&amp;#x0394;&amp;#x0395;&a \
mp;#x0396;&amp;#x0397;&amp;#x0398;&amp;#x0399;&amp;#x039A;&amp;#x039B;&amp;#x039C;&amp;#x039D;&amp;#x039E;&amp;#x039F;&amp;#x03A0;&amp;#x03A1;&lt;/option&gt;
 +        &lt;option \
value=&quot;18&quot;&gt;&amp;#x0391;&amp;#x0392;&amp;#x0393;&amp;#x0394;&amp;#x0395;&a \
mp;#x0396;&amp;#x0397;&amp;#x0398;&amp;#x0399;&amp;#x039A;&amp;#x039B;&amp;#x039C;&amp \
;#x039D;&amp;#x039E;&amp;#x039F;&amp;#x03A0;&amp;#x03A1;&amp;#x03A3;&lt;/option&gt; + \
&lt;option value=&quot;19&quot;&gt;&amp;#x0391;&amp;#x0392;&amp;#x0393;&amp;#x0394;&am \
p;#x0395;&amp;#x0396;&amp;#x0397;&amp;#x0398;&amp;#x0399;&amp;#x039A;&amp;#x039B;&amp; \
#x039C;&amp;#x039D;&amp;#x039E;&amp;#x039F;&amp;#x03A0;&amp;#x03A1;&amp;#x03A3;&amp;#x03A4;&lt;/option&gt;
 +        &lt;option \
value=&quot;20&quot;&gt;&amp;#x0391;&amp;#x0392;&amp;#x0393;&amp;#x0394;&amp;#x0395;&a \
mp;#x0396;&amp;#x0397;&amp;#x0398;&amp;#x0399;&amp;#x039A;&amp;#x039B;&amp;#x039C;&amp \
;#x039D;&amp;#x039E;&amp;#x039F;&amp;#x03A0;&amp;#x03A1;&amp;#x03A3;&amp;#x03A4;&amp;#x03A5;&lt;/option&gt;
 +        &lt;option \
value=&quot;21&quot;&gt;&amp;#x0391;&amp;#x0392;&amp;#x0393;&amp;#x0394;&amp;#x0395;&a \
mp;#x0396;&amp;#x0397;&amp;#x0398;&amp;#x0399;&amp;#x039A;&amp;#x039B;&amp;#x039C;&amp \
;#x039D;&amp;#x039E;&amp;#x039F;&amp;#x03A0;&amp;#x03A1;&amp;#x03A3;&amp;#x03A4;&amp;#x03A5;&amp;#x03A6;&lt;/option&gt;
 +        &lt;option \
value=&quot;22&quot;&gt;&amp;#x0391;&amp;#x0392;&amp;#x0393;&amp;#x0394;&amp;#x0395;&a \
mp;#x0396;&amp;#x0397;&amp;#x0398;&amp;#x0399;&amp;#x039A;&amp;#x039B;&amp;#x039C;&amp \
;#x039D;&amp;#x039E;&amp;#x039F;&amp;#x03A0;&amp;#x03A1;&amp;#x03A3;&amp;#x03A4;&amp;#x03A5;&amp;#x03A6;&amp;#x03A7;&lt;/option&gt;
 +        &lt;option \
value=&quot;23&quot;&gt;&amp;#x0391;&amp;#x0392;&amp;#x0393;&amp;#x0394;&amp;#x0395;&a \
mp;#x0396;&amp;#x0397;&amp;#x0398;&amp;#x0399;&amp;#x039A;&amp;#x039B;&amp;#x039C;&amp \
;#x039D;&amp;#x039E;&amp;#x039F;&amp;#x03A0;&amp;#x03A1;&amp;#x03A3;&amp;#x03A4;&amp;#x03A5;&amp;#x03A6;&amp;#x03A7;&amp;#x03A8;&lt;/option&gt;
 +        &lt;option \
value=&quot;24&quot;&gt;&amp;#x0391;&amp;#x0392;&amp;#x0393;&amp;#x0394;&amp;#x0395;&a \
mp;#x0396;&amp;#x0397;&amp;#x0398;&amp;#x0399;&amp;#x039A;&amp;#x039B;&amp;#x039C;&amp \
;#x039D;&amp;#x039E;&amp;#x039F;&amp;#x03A0;&amp;#x03A1;&amp;#x03A3;&amp;#x03A4;&amp;#x03A5;&amp;#x03A6;&amp;#x03A7;&amp;#x03A8;&amp;#x03A9;&lt;/option&gt;
 +    &lt;/select&gt;
+    &lt;ul id=&quot;console&quot;&gt;&lt;/ul&gt;
+&lt;/body&gt;
+&lt;script&gt;
+function log(str) {
+    var li = document.createElement(&quot;li&quot;);
+    li.appendChild(document.createTextNode(str));
+    var console = document.getElementById(&quot;console&quot;);
+    console.appendChild(li);
+}
+
+if (window.layoutTestController)
+    window.layoutTestController.dumpAsText();
+
+// Set the input focus to the &lt;select&gt; element.
+var node = document.getElementById(&quot;test&quot;);
+node.focus();
+
+var base = 0x03B1;
+for (var i = base; i &lt;= 0x03C9; i++) {
+    // We don't have to send U+03C2 (Greek Small Letter Final Sigma).
+    if (i != 0x03C2) {
+        // Send a key event consisting of a Greek small character.
+        eventSender.keyDown(String.fromCharCode(i));
+
+        // Compare the value of this &lt;select&gt; element with the expected \
result. +        if (node.value == i - base)
+            log('SUCCEEDED');
+        else
+            log('FAILED: expected=&quot;' + i + '&quot;, actual=&quot;' + node.value \
+ '&quot;.'); +    }
+}
+&lt;/script&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/ChangeLog (50045 => 50046)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebCore/ChangeLog	2009-10-25 17:28:10 UTC (rev 50045)
+++ trunk/WebCore/ChangeLog	2009-10-25 20:15:56 UTC (rev 50046)
</span><span class="lines">@@ -1,3 +1,18 @@
</span><ins>+2009-10-25  Hironori Bono  &lt;hbono@chromium.org&gt;
+
+        Reviewed by Darin Adler.
+
+        A quick fix for Bug 29103.
+        Since String::startsWith() cannot fold non-ASCII characters, this change \
folds the prefix string +        and the option string before calling \
String::startsWith(). +        https://bugs.webkit.org/show_bug.cgi?id=29103
+
+        Tests: fast/forms/listbox-typeahead-cyrillic.html
+               fast/forms/listbox-typeahead-greek.html
+
+        * dom/SelectElement.cpp:
+        (WebCore::SelectElement::typeAheadFind):
+
</ins><span class="cx"> 2009-10-25  Keishi Hattori  &lt;casey.hattori@gmail.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Reviewed by Timothy Hatcher.
</span></span></pre></div>
<a id="trunkWebCoredomSelectElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/WebCore/dom/SelectElement.cpp (50045 => \
50046)</h4> <pre class="diff"><span>
<span class="info">--- trunk/WebCore/dom/SelectElement.cpp	2009-10-25 17:28:10 UTC \
                (rev 50045)
+++ trunk/WebCore/dom/SelectElement.cpp	2009-10-25 20:15:56 UTC (rev 50046)
</span><span class="lines">@@ -874,13 +874,19 @@
</span><span class="cx">     int index = (optionToListIndex(data, element, selected \
&gt;= 0 ? selected : 0) + searchStartOffset) % itemCount; </span><span class="cx">    \
ASSERT(index &gt;= 0); </span><span class="cx"> 
</span><ins>+    // Compute a case-folded copy of the prefix string before beginning \
the search for +    // a matching element. This code uses foldCase to work around the \
fact that +    // String::startWith does not fold non-ASCII characters. This code can \
be changed +    // to use startWith once that is fixed.
+    String prefixWithCaseFolded(prefix.foldCase());
</ins><span class="cx">     for (int i = 0; i &lt; itemCount; ++i, index = (index + \
1) % itemCount) { </span><span class="cx">         OptionElement* optionElement = \
toOptionElement(items[index]); </span><span class="cx">         if (!optionElement || \
items[index]-&gt;disabled()) </span><span class="cx">             continue;
</span><span class="cx"> 
</span><ins>+        // Fold the option string and check if its prefix is equal to \
the folded prefix. </ins><span class="cx">         String text = \
optionElement-&gt;textIndentedToRespectGroupLabel(); </span><del>-        if \
(stripLeadingWhiteSpace(text).startsWith(prefix, false)) { </del><ins>+        if \
(stripLeadingWhiteSpace(text).foldCase().startsWith(prefixWithCaseFolded)) { \
</ins><span class="cx">             setSelectedIndex(data, element, \
listToOptionIndex(data, element, index)); </span><span class="cx">             if \
(!data.usesMenuList()) </span><span class="cx">                 listBoxOnChange(data, \
element); </span></span></pre>
</div>
</div>

</body>
</html>



_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic