<!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>[162327] releases/WebKitGTK/webkit-2.2</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/162327">162327</a></dd>
<dt>Author</dt> <dd>carlosgc@webkit.org</dd>
<dt>Date</dt> <dd>2014-01-20 03:07:32 -0800 (Mon, 20 Jan 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Merge <a href="http://trac.webkit.org/projects/webkit/changeset/155428">r155428</a> - [GTK] Test /webkit/atk/getTextInParagraphAndBodyModerate fails
https://bugs.webkit.org/show_bug.cgi?id=105538

Reviewed by Chris Fleizach.

Source/WebCore:

Expose '\n' for linebreaks when they were explicitly set by the
author of the web content with a &lt;br&gt; tag.

Tests: accessibility/paragraph-with-linebreaks.html

* accessibility/AccessibilityNodeObject.cpp:
(WebCore::shouldAddSpaceBeforeAppendingNextElement): Helper
function to decide when to append spaces when building the text
under an element, considering line breaks.
(WebCore::AccessibilityNodeObject::textUnderElement): Use the
shouldAddSpaceBeforeAppendingNextElement() function here.
* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::textUnderElement): Return the
renderer's text for accessibility objects exposing &lt;br&gt; elements.
* html/parser/HTMLParserIdioms.h:
(WebCore::isHTMLSpaceButNotLineBreak): New helper function, useful
to be passed to other functions like simplifyWhiteSpace().

Tools:

Unskip passing test getTextInParagraphAndBodyModerate.

* Scripts/run-gtk-tests:
(TestRunner): Unskip pasing test.

LayoutTests:

Added new Layout test and platform specific expectations.

* platform/efl/accessibility/paragraph-with-linebreaks-expected.txt: Added.
* platform/gtk/accessibility/paragraph-with-linebreaks-expected.txt: Added.
* accessibility/paragraph-with-linebreaks.html: Added.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#releasesWebKitGTKwebkit22LayoutTestsChangeLog">releases/WebKitGTK/webkit-2.2/LayoutTests/ChangeLog</a></li>
<li><a href="#releasesWebKitGTKwebkit22SourceWebCoreChangeLog">releases/WebKitGTK/webkit-2.2/Source/WebCore/ChangeLog</a></li>
<li><a href="#releasesWebKitGTKwebkit22SourceWebCoreaccessibilityAccessibilityNodeObjectcpp">releases/WebKitGTK/webkit-2.2/Source/WebCore/accessibility/AccessibilityNodeObject.cpp</a></li>
<li><a href="#releasesWebKitGTKwebkit22SourceWebCoreaccessibilityAccessibilityRenderObjectcpp">releases/WebKitGTK/webkit-2.2/Source/WebCore/accessibility/AccessibilityRenderObject.cpp</a></li>
<li><a href="#releasesWebKitGTKwebkit22SourceWebCorehtmlparserHTMLParserIdiomsh">releases/WebKitGTK/webkit-2.2/Source/WebCore/html/parser/HTMLParserIdioms.h</a></li>
<li><a href="#releasesWebKitGTKwebkit22ToolsChangeLog">releases/WebKitGTK/webkit-2.2/Tools/ChangeLog</a></li>
<li><a href="#releasesWebKitGTKwebkit22ToolsScriptsrungtktests">releases/WebKitGTK/webkit-2.2/Tools/Scripts/run-gtk-tests</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#releasesWebKitGTKwebkit22LayoutTestsaccessibilityparagraphwithlinebreakshtml">releases/WebKitGTK/webkit-2.2/LayoutTests/accessibility/paragraph-with-linebreaks.html</a></li>
<li><a href="#releasesWebKitGTKwebkit22LayoutTestsplatformeflaccessibilityparagraphwithlinebreaksexpectedtxt">releases/WebKitGTK/webkit-2.2/LayoutTests/platform/efl/accessibility/paragraph-with-linebreaks-expected.txt</a></li>
<li><a href="#releasesWebKitGTKwebkit22LayoutTestsplatformgtkaccessibilityparagraphwithlinebreaksexpectedtxt">releases/WebKitGTK/webkit-2.2/LayoutTests/platform/gtk/accessibility/paragraph-with-linebreaks-expected.txt</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="releasesWebKitGTKwebkit22LayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.2/LayoutTests/ChangeLog (162326 => 162327)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.2/LayoutTests/ChangeLog        2014-01-20 10:57:02 UTC (rev 162326)
+++ releases/WebKitGTK/webkit-2.2/LayoutTests/ChangeLog        2014-01-20 11:07:32 UTC (rev 162327)
</span><span class="lines">@@ -1,3 +1,16 @@
</span><ins>+2013-09-10  Mario Sanchez Prada  &lt;mario.prada@samsung.com&gt;
+
+        [GTK] Test /webkit/atk/getTextInParagraphAndBodyModerate fails
+        https://bugs.webkit.org/show_bug.cgi?id=105538
+
+        Reviewed by Chris Fleizach.
+
+        Added new Layout test and platform specific expectations.
+
+        * platform/efl/accessibility/paragraph-with-linebreaks-expected.txt: Added.
+        * platform/gtk/accessibility/paragraph-with-linebreaks-expected.txt: Added.
+        * accessibility/paragraph-with-linebreaks.html: Added.
+
</ins><span class="cx"> 2013-08-28  Allan Sandfeld Jensen  &lt;allan.jensen@digia.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Http tests fails on Debian with Apache 2.4
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit22LayoutTestsaccessibilityparagraphwithlinebreakshtml"></a>
<div class="addfile"><h4>Added: releases/WebKitGTK/webkit-2.2/LayoutTests/accessibility/paragraph-with-linebreaks.html (0 => 162327)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.2/LayoutTests/accessibility/paragraph-with-linebreaks.html                                (rev 0)
+++ releases/WebKitGTK/webkit-2.2/LayoutTests/accessibility/paragraph-with-linebreaks.html        2014-01-20 11:07:32 UTC (rev 162327)
</span><span class="lines">@@ -0,0 +1,48 @@
</span><ins>+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../fast/js/resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;p&gt;
+  Lorem ipsum dolor sit amet,&lt;br&gt;
+  consectetur adipiscing elit.&lt;br&gt;
+  Aliquam faucibus diam sit amet nunc vestibulum auctor.
+&lt;/p&gt;
+
+&lt;p style=&quot;max-width:150px;&quot;&gt;
+  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam faucibus diam sit amet nunc vestibulum auctor.
+&lt;/p&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+description(&quot;This test checks that linebreaks explicitly set by the author are properly exposed to ATs.&quot;);
+
+if (window.testRunner) {
+  testRunner.dumpAsText();
+
+  if (window.accessibilityController) {
+
+    document.body.focus();
+    var webArea = accessibilityController.focusedElement;
+
+    var brokenParagraph = webArea.childAtIndex(0);
+    debug(&quot;Role of the paragraph with break lines: &quot; + brokenParagraph.role);
+    debug(&quot;Value of the paragraph with break lines: &quot; + brokenParagraph.stringValue);
+    debug(&quot;&lt;br&gt;&quot;);
+
+    var wrappedParagraph = webArea.childAtIndex(1);
+    debug(&quot;Role of the paragraph with wrapped lines: &quot; + wrappedParagraph.role);
+    debug(&quot;Value of the paragraph with wrapped lines: &quot; + wrappedParagraph.stringValue);
+    debug(&quot;&lt;br&gt;&quot;);
+  }
+}
+&lt;/script&gt;
+
+&lt;script src=&quot;../fast/js/resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="releasesWebKitGTKwebkit22LayoutTestsplatformeflaccessibilityparagraphwithlinebreaksexpectedtxt"></a>
<div class="addfile"><h4>Added: releases/WebKitGTK/webkit-2.2/LayoutTests/platform/efl/accessibility/paragraph-with-linebreaks-expected.txt (0 => 162327)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.2/LayoutTests/platform/efl/accessibility/paragraph-with-linebreaks-expected.txt                                (rev 0)
+++ releases/WebKitGTK/webkit-2.2/LayoutTests/platform/efl/accessibility/paragraph-with-linebreaks-expected.txt        2014-01-20 11:07:32 UTC (rev 162327)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+Lorem ipsum dolor sit amet,
+consectetur adipiscing elit.
+Aliquam faucibus diam sit amet nunc vestibulum auctor.
+
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam faucibus diam sit amet nunc vestibulum auctor.
+
+This test checks that linebreaks explicitly set by the author are properly exposed to ATs.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Role of the paragraph with break lines: AXRole: AXParagraph
+Value of the paragraph with break lines: AXValue: Lorem ipsum dolor sit amet,&lt;\n&gt;consectetur adipiscing elit.&lt;\n&gt;Aliquam faucibus diam sit amet nunc vestibulum auctor.
+
+
+Role of the paragraph with wrapped lines: AXRole: AXParagraph
+Value of the paragraph with wrapped lines: AXValue: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam faucibus diam sit amet nunc vestibulum auctor.
+
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="releasesWebKitGTKwebkit22LayoutTestsplatformgtkaccessibilityparagraphwithlinebreaksexpectedtxt"></a>
<div class="addfile"><h4>Added: releases/WebKitGTK/webkit-2.2/LayoutTests/platform/gtk/accessibility/paragraph-with-linebreaks-expected.txt (0 => 162327)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.2/LayoutTests/platform/gtk/accessibility/paragraph-with-linebreaks-expected.txt                                (rev 0)
+++ releases/WebKitGTK/webkit-2.2/LayoutTests/platform/gtk/accessibility/paragraph-with-linebreaks-expected.txt        2014-01-20 11:07:32 UTC (rev 162327)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+Lorem ipsum dolor sit amet,
+consectetur adipiscing elit.
+Aliquam faucibus diam sit amet nunc vestibulum auctor.
+
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam faucibus diam sit amet nunc vestibulum auctor.
+
+This test checks that linebreaks explicitly set by the author are properly exposed to ATs.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Role of the paragraph with break lines: AXRole: AXParagraph
+Value of the paragraph with break lines: AXValue: Lorem ipsum dolor sit amet,&lt;\n&gt;consectetur adipiscing elit.&lt;\n&gt;Aliquam faucibus diam sit amet nunc vestibulum auctor.
+
+
+Role of the paragraph with wrapped lines: AXRole: AXParagraph
+Value of the paragraph with wrapped lines: AXValue: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam faucibus diam sit amet nunc vestibulum auctor.
+
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="releasesWebKitGTKwebkit22SourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.2/Source/WebCore/ChangeLog (162326 => 162327)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.2/Source/WebCore/ChangeLog        2014-01-20 10:57:02 UTC (rev 162326)
+++ releases/WebKitGTK/webkit-2.2/Source/WebCore/ChangeLog        2014-01-20 11:07:32 UTC (rev 162327)
</span><span class="lines">@@ -1,3 +1,28 @@
</span><ins>+2013-09-10  Mario Sanchez Prada  &lt;mario.prada@samsung.com&gt;
+
+        [GTK] Test /webkit/atk/getTextInParagraphAndBodyModerate fails
+        https://bugs.webkit.org/show_bug.cgi?id=105538
+
+        Reviewed by Chris Fleizach.
+
+        Expose '\n' for linebreaks when they were explicitly set by the
+        author of the web content with a &lt;br&gt; tag.
+
+        Tests: accessibility/paragraph-with-linebreaks.html
+
+        * accessibility/AccessibilityNodeObject.cpp:
+        (WebCore::shouldAddSpaceBeforeAppendingNextElement): Helper
+        function to decide when to append spaces when building the text
+        under an element, considering line breaks.
+        (WebCore::AccessibilityNodeObject::textUnderElement): Use the
+        shouldAddSpaceBeforeAppendingNextElement() function here.
+        * accessibility/AccessibilityRenderObject.cpp:
+        (WebCore::AccessibilityRenderObject::textUnderElement): Return the
+        renderer's text for accessibility objects exposing &lt;br&gt; elements.
+        * html/parser/HTMLParserIdioms.h:
+        (WebCore::isHTMLSpaceButNotLineBreak): New helper function, useful
+        to be passed to other functions like simplifyWhiteSpace().
+
</ins><span class="cx"> 2013-12-06  Roger Fong  &lt;roger_fong@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Hook into some shader symbol logic following the ANGLE update in r159533.
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit22SourceWebCoreaccessibilityAccessibilityNodeObjectcpp"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.2/Source/WebCore/accessibility/AccessibilityNodeObject.cpp (162326 => 162327)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.2/Source/WebCore/accessibility/AccessibilityNodeObject.cpp        2014-01-20 10:57:02 UTC (rev 162326)
+++ releases/WebKitGTK/webkit-2.2/Source/WebCore/accessibility/AccessibilityNodeObject.cpp        2014-01-20 11:07:32 UTC (rev 162327)
</span><span class="lines">@@ -54,6 +54,7 @@
</span><span class="cx"> #include &quot;HTMLOptGroupElement.h&quot;
</span><span class="cx"> #include &quot;HTMLOptionElement.h&quot;
</span><span class="cx"> #include &quot;HTMLOptionsCollection.h&quot;
</span><ins>+#include &quot;HTMLParserIdioms.h&quot;
</ins><span class="cx"> #include &quot;HTMLPlugInImageElement.h&quot;
</span><span class="cx"> #include &quot;HTMLSelectElement.h&quot;
</span><span class="cx"> #include &quot;HTMLTextAreaElement.h&quot;
</span><span class="lines">@@ -1545,6 +1546,15 @@
</span><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+static bool shouldAddSpaceBeforeAppendingNextElement(StringBuilder&amp; builder, String&amp; childText)
+{
+    if (!builder.length() || !childText.length())
+        return false;
+
+    // We don't need to add an additional space before or after a line break.
+    return !(isHTMLLineBreak(childText[0]) || isHTMLLineBreak(builder[builder.length() - 1]));
+}
+
</ins><span class="cx"> String AccessibilityNodeObject::textUnderElement(AccessibilityTextUnderElementMode mode) const
</span><span class="cx"> {
</span><span class="cx">     Node* node = this-&gt;node();
</span><span class="lines">@@ -1560,7 +1570,7 @@
</span><span class="cx">             Vector&lt;AccessibilityText&gt; textOrder;
</span><span class="cx">             toAccessibilityNodeObject(child)-&gt;alternativeText(textOrder);
</span><span class="cx">             if (textOrder.size() &gt; 0 &amp;&amp; textOrder[0].text.length()) {
</span><del>-                if (builder.length())
</del><ins>+                if (shouldAddSpaceBeforeAppendingNextElement(builder, textOrder[0].text))
</ins><span class="cx">                     builder.append(' ');
</span><span class="cx">                 builder.append(textOrder[0].text);
</span><span class="cx">                 continue;
</span><span class="lines">@@ -1569,13 +1579,13 @@
</span><span class="cx"> 
</span><span class="cx">         String childText = child-&gt;textUnderElement(mode);
</span><span class="cx">         if (childText.length()) {
</span><del>-            if (builder.length())
</del><ins>+            if (shouldAddSpaceBeforeAppendingNextElement(builder, childText))
</ins><span class="cx">                 builder.append(' ');
</span><span class="cx">             builder.append(childText);
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    return builder.toString().stripWhiteSpace().simplifyWhiteSpace();
</del><ins>+    return builder.toString().stripWhiteSpace().simplifyWhiteSpace(isHTMLSpaceButNotLineBreak);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> String AccessibilityNodeObject::title() const
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit22SourceWebCoreaccessibilityAccessibilityRenderObjectcpp"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.2/Source/WebCore/accessibility/AccessibilityRenderObject.cpp (162326 => 162327)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.2/Source/WebCore/accessibility/AccessibilityRenderObject.cpp        2014-01-20 10:57:02 UTC (rev 162326)
+++ releases/WebKitGTK/webkit-2.2/Source/WebCore/accessibility/AccessibilityRenderObject.cpp        2014-01-20 11:07:32 UTC (rev 162327)
</span><span class="lines">@@ -65,6 +65,7 @@
</span><span class="cx"> #include &quot;NodeList.h&quot;
</span><span class="cx"> #include &quot;Page.h&quot;
</span><span class="cx"> #include &quot;ProgressTracker.h&quot;
</span><ins>+#include &quot;RenderBR.h&quot;
</ins><span class="cx"> #include &quot;RenderButton.h&quot;
</span><span class="cx"> #include &quot;RenderFieldset.h&quot;
</span><span class="cx"> #include &quot;RenderFileUploadControl.h&quot;
</span><span class="lines">@@ -630,6 +631,10 @@
</span><span class="cx">     if (m_renderer-&gt;isFileUploadControl())
</span><span class="cx">         return toRenderFileUploadControl(m_renderer)-&gt;buttonValue();
</span><span class="cx">     
</span><ins>+    // Reflect when a content author has explicitly marked a line break.
+    if (m_renderer-&gt;isBR())
+        return toRenderBR(m_renderer)-&gt;text();
+
</ins><span class="cx"> #if ENABLE(MATHML)
</span><span class="cx">     // Math operators create RenderText nodes on the fly that are not tied into the DOM in a reasonable way,
</span><span class="cx">     // so rangeOfContents does not work for them (nor does regular text selection).
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit22SourceWebCorehtmlparserHTMLParserIdiomsh"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.2/Source/WebCore/html/parser/HTMLParserIdioms.h (162326 => 162327)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.2/Source/WebCore/html/parser/HTMLParserIdioms.h        2014-01-20 10:57:02 UTC (rev 162326)
+++ releases/WebKitGTK/webkit-2.2/Source/WebCore/html/parser/HTMLParserIdioms.h        2014-01-20 11:07:32 UTC (rev 162327)
</span><span class="lines">@@ -38,6 +38,7 @@
</span><span class="cx"> bool isHTMLSpace(UChar);
</span><span class="cx"> bool isHTMLLineBreak(UChar);
</span><span class="cx"> bool isNotHTMLSpace(UChar);
</span><ins>+bool isHTMLSpaceButNotLineBreak(UChar character);
</ins><span class="cx"> 
</span><span class="cx"> // Strip leading and trailing whitespace as defined by the HTML specification. 
</span><span class="cx"> String stripLeadingAndTrailingHTMLSpaces(const String&amp;);
</span><span class="lines">@@ -92,6 +93,11 @@
</span><span class="cx">     return !isHTMLSpace(character);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+inline bool isHTMLSpaceButNotLineBreak(UChar character)
+{
+    return isHTMLSpace(character) &amp;&amp; !isHTMLLineBreak(character);
+}
+
</ins><span class="cx"> bool threadSafeMatch(const QualifiedName&amp;, const QualifiedName&amp;);
</span><span class="cx"> #if ENABLE(THREADED_HTML_PARSER)
</span><span class="cx"> bool threadSafeMatch(const HTMLIdentifier&amp;, const QualifiedName&amp;);
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit22ToolsChangeLog"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.2/Tools/ChangeLog (162326 => 162327)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.2/Tools/ChangeLog        2014-01-20 10:57:02 UTC (rev 162326)
+++ releases/WebKitGTK/webkit-2.2/Tools/ChangeLog        2014-01-20 11:07:32 UTC (rev 162327)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2013-09-10  Mario Sanchez Prada  &lt;mario.prada@samsung.com&gt;
+
+        [GTK] Test /webkit/atk/getTextInParagraphAndBodyModerate fails
+        https://bugs.webkit.org/show_bug.cgi?id=105538
+
+        Reviewed by Chris Fleizach.
+
+        Unskip passing test getTextInParagraphAndBodyModerate.
+
+        * Scripts/run-gtk-tests:
+        (TestRunner): Unskip pasing test.
+
</ins><span class="cx"> 2013-12-23  Carlos Garcia Campos  &lt;cgarcia@igalia.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [GTK] run-gtk-tests should always run glib tests with -k option
</span></span></pre></div>
<a id="releasesWebKitGTKwebkit22ToolsScriptsrungtktests"></a>
<div class="modfile"><h4>Modified: releases/WebKitGTK/webkit-2.2/Tools/Scripts/run-gtk-tests (162326 => 162327)</h4>
<pre class="diff"><span>
<span class="info">--- releases/WebKitGTK/webkit-2.2/Tools/Scripts/run-gtk-tests        2014-01-20 10:57:02 UTC (rev 162326)
+++ releases/WebKitGTK/webkit-2.2/Tools/Scripts/run-gtk-tests        2014-01-20 11:07:32 UTC (rev 162327)
</span><span class="lines">@@ -66,7 +66,6 @@
</span><span class="cx">         SkippedTest(&quot;unittests/testwebresource&quot;, &quot;/webkit/webresource/loading&quot;, &quot;Test fails&quot;, 104689),
</span><span class="cx">         SkippedTest(&quot;unittests/testwebresource&quot;, &quot;/webkit/webresource/sub_resource_loading&quot;, &quot;Test fails in GTK Linux 64-bit Release bot&quot;, 82330),
</span><span class="cx">         SkippedTest(&quot;unittests/testwebview&quot;, &quot;/webkit/webview/icon-uri&quot;, &quot;Test times out in GTK Linux 64-bit Release bot&quot;, 82328),
</span><del>-        SkippedTest(&quot;unittests/testatk&quot;, &quot;/webkit/atk/getTextInParagraphAndBodyModerate&quot;, &quot;Test fails&quot;, 105538),
</del><span class="cx">         SkippedTest(&quot;WebKit2APITests/TestResources&quot;, &quot;/webkit2/WebKitWebView/resources&quot;, &quot;Test is flaky in GTK Linux 32-bit Release bot&quot;, 82868),
</span><span class="cx">         SkippedTest(&quot;WebKit2APITests/TestWebKitAccessibility&quot;, &quot;/webkit2/WebKitAccessibility/atspi-basic-hierarchy&quot;, &quot;Test fails&quot;, 100408),
</span><span class="cx">         SkippedTest(&quot;WebKit2APITests/TestWebKitWebView&quot;, SkippedTest.ENTIRE_SUITE, &quot;Test times out after r150890&quot;, 117689),
</span></span></pre>
</div>
</div>

</body>
</html>