<!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>[190173] 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/190173">190173</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2015-09-23 09:06:00 -0700 (Wed, 23 Sep 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Unreviewed, rolling out <a href="http://trac.webkit.org/projects/webkit/changeset/190168">r190168</a>.
https://bugs.webkit.org/show_bug.cgi?id=149502

it broke debug builds. (Requested by zalan on #webkit).

Reverted changeset:

&quot;HTMLOutputElement.htmlFor should be settable&quot;
https://bugs.webkit.org/show_bug.cgi?id=149418
http://trac.webkit.org/changeset/190168</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsfastdomHTMLOutputElementdomsettabletokenlistexpectedtxt">trunk/LayoutTests/fast/dom/HTMLOutputElement/dom-settable-token-list-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastdomHTMLOutputElementscripttestsdomsettabletokenlistjs">trunk/LayoutTests/fast/dom/HTMLOutputElement/script-tests/dom-settable-token-list.js</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorehtmlAttributeDOMTokenListcpp">trunk/Source/WebCore/html/AttributeDOMTokenList.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlAttributeDOMTokenListh">trunk/Source/WebCore/html/AttributeDOMTokenList.h</a></li>
<li><a href="#trunkSourceWebCorehtmlDOMSettableTokenListcpp">trunk/Source/WebCore/html/DOMSettableTokenList.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlDOMSettableTokenListh">trunk/Source/WebCore/html/DOMSettableTokenList.h</a></li>
<li><a href="#trunkSourceWebCorehtmlDOMTokenListcpp">trunk/Source/WebCore/html/DOMTokenList.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlDOMTokenListh">trunk/Source/WebCore/html/DOMTokenList.h</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLLinkElementcpp">trunk/Source/WebCore/html/HTMLLinkElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLLinkElementh">trunk/Source/WebCore/html/HTMLLinkElement.h</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLOutputElementcpp">trunk/Source/WebCore/html/HTMLOutputElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLOutputElementh">trunk/Source/WebCore/html/HTMLOutputElement.h</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLOutputElementidl">trunk/Source/WebCore/html/HTMLOutputElement.idl</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastdomHTMLLinkElementsizessetterexpectedtxt">trunk/LayoutTests/fast/dom/HTMLLinkElement/sizes-setter-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastdomHTMLLinkElementsizessetterhtml">trunk/LayoutTests/fast/dom/HTMLLinkElement/sizes-setter.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (190172 => 190173)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2015-09-23 15:34:16 UTC (rev 190172)
+++ trunk/LayoutTests/ChangeLog        2015-09-23 16:06:00 UTC (rev 190173)
</span><span class="lines">@@ -1,5 +1,18 @@
</span><span class="cx"> 2015-09-23  Commit Queue  &lt;commit-queue@webkit.org&gt;
</span><span class="cx"> 
</span><ins>+        Unreviewed, rolling out r190168.
+        https://bugs.webkit.org/show_bug.cgi?id=149502
+
+        it broke debug builds. (Requested by zalan on #webkit).
+
+        Reverted changeset:
+
+        &quot;HTMLOutputElement.htmlFor should be settable&quot;
+        https://bugs.webkit.org/show_bug.cgi?id=149418
+        http://trac.webkit.org/changeset/190168
+
+2015-09-23  Commit Queue  &lt;commit-queue@webkit.org&gt;
+
</ins><span class="cx">         Unreviewed, rolling out r190160.
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=149501
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomHTMLLinkElementsizessetterexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/dom/HTMLLinkElement/sizes-setter-expected.txt (190172 => 190173)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/HTMLLinkElement/sizes-setter-expected.txt        2015-09-23 15:34:16 UTC (rev 190172)
+++ trunk/LayoutTests/fast/dom/HTMLLinkElement/sizes-setter-expected.txt        2015-09-23 16:06:00 UTC (rev 190173)
</span><span class="lines">@@ -1,13 +0,0 @@
</span><del>-Tests that the HTMLLinkElement.sizes setter updates the associated sizes attribute
-
-On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
-
-
-PASS link.sizes.__proto__ is DOMSettableTokenList.prototype
-link.sizes = '10x10  20x20'
-PASS String(link.sizes) is &quot;10x10 20x20&quot;
-PASS link.getAttribute('sizes') is &quot;10x10 20x20&quot;
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
</del></span></pre></div>
<a id="trunkLayoutTestsfastdomHTMLLinkElementsizessetterhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/dom/HTMLLinkElement/sizes-setter.html (190172 => 190173)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/HTMLLinkElement/sizes-setter.html        2015-09-23 15:34:16 UTC (rev 190172)
+++ trunk/LayoutTests/fast/dom/HTMLLinkElement/sizes-setter.html        2015-09-23 16:06:00 UTC (rev 190173)
</span><span class="lines">@@ -1,16 +0,0 @@
</span><del>-&lt;!DOCTYPE html&gt;
-&lt;html&gt;
-&lt;body&gt;
-&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
-&lt;script&gt;
-description(&quot;Tests that the HTMLLinkElement.sizes setter updates the associated sizes attribute&quot;);
-
-var link = document.createElement(&quot;link&quot;);
-shouldBe(&quot;link.sizes.__proto__&quot;, &quot;DOMSettableTokenList.prototype&quot;);
-evalAndLog(&quot;link.sizes = '10x10  20x20'&quot;);
-shouldBeEqualToString(&quot;String(link.sizes)&quot;, &quot;10x10 20x20&quot;);
-shouldBeEqualToString(&quot;link.getAttribute('sizes')&quot;, &quot;10x10 20x20&quot;);
-&lt;/script&gt;
-&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestsfastdomHTMLOutputElementdomsettabletokenlistexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/HTMLOutputElement/dom-settable-token-list-expected.txt (190172 => 190173)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/HTMLOutputElement/dom-settable-token-list-expected.txt        2015-09-23 15:34:16 UTC (rev 190172)
+++ trunk/LayoutTests/fast/dom/HTMLOutputElement/dom-settable-token-list-expected.txt        2015-09-23 16:06:00 UTC (rev 190173)
</span><span class="lines">@@ -4,10 +4,7 @@
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> - Tests from http://simon.html5.org/test/html/dom/reflecting/DOMTokenList/
</span><del>-PASS element.htmlFor.__proto__ is DOMSettableTokenList.prototype
-PASS String(element.htmlFor) is &quot;y z&quot;
-PASS element.getAttribute(&quot;for&quot;) is &quot;y z&quot;
-PASS String(element.htmlFor) is &quot;r s t&quot;
</del><ins>+PASS String(element.htmlFor) is &quot;x&quot;
</ins><span class="cx"> PASS element.htmlFor.length is 0
</span><span class="cx"> PASS element.htmlFor.length is 1
</span><span class="cx"> PASS element.htmlFor.length is 1
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomHTMLOutputElementscripttestsdomsettabletokenlistjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/HTMLOutputElement/script-tests/dom-settable-token-list.js (190172 => 190173)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/HTMLOutputElement/script-tests/dom-settable-token-list.js        2015-09-23 15:34:16 UTC (rev 190172)
+++ trunk/LayoutTests/fast/dom/HTMLOutputElement/script-tests/dom-settable-token-list.js        2015-09-23 16:06:00 UTC (rev 190173)
</span><span class="lines">@@ -14,14 +14,10 @@
</span><span class="cx"> 
</span><span class="cx"> debug('- Tests from http://simon.html5.org/test/html/dom/reflecting/DOMTokenList/');
</span><span class="cx"> 
</span><del>-// HTMLOutputElement::htmlFor should be settable.
</del><ins>+// HTMLOutputElement::htmlFor is readonly attribute.
</ins><span class="cx"> createElement('x');
</span><del>-shouldBe('element.htmlFor.__proto__', 'DOMSettableTokenList.prototype');
-element.htmlFor = 'y  z';
-shouldBeEqualToString('String(element.htmlFor)', 'y z');
-shouldBeEqualToString('element.getAttribute(&quot;for&quot;)', 'y z');
-element.setAttribute('for', 'r s t');
-shouldBeEqualToString('String(element.htmlFor)', 'r s t');
</del><ins>+element.htmlFor = 'y';
+shouldBeEqualToString('String(element.htmlFor)', 'x');
</ins><span class="cx"> 
</span><span class="cx"> // http://simon.html5.org/test/html/dom/reflecting/DOMTokenList/getting/001.htm
</span><span class="cx"> createElement('');
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (190172 => 190173)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-09-23 15:34:16 UTC (rev 190172)
+++ trunk/Source/WebCore/ChangeLog        2015-09-23 16:06:00 UTC (rev 190173)
</span><span class="lines">@@ -1,5 +1,18 @@
</span><span class="cx"> 2015-09-23  Commit Queue  &lt;commit-queue@webkit.org&gt;
</span><span class="cx"> 
</span><ins>+        Unreviewed, rolling out r190168.
+        https://bugs.webkit.org/show_bug.cgi?id=149502
+
+        it broke debug builds. (Requested by zalan on #webkit).
+
+        Reverted changeset:
+
+        &quot;HTMLOutputElement.htmlFor should be settable&quot;
+        https://bugs.webkit.org/show_bug.cgi?id=149418
+        http://trac.webkit.org/changeset/190168
+
+2015-09-23  Commit Queue  &lt;commit-queue@webkit.org&gt;
+
</ins><span class="cx">         Unreviewed, rolling out r190160.
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=149501
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlAttributeDOMTokenListcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/AttributeDOMTokenList.cpp (190172 => 190173)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/AttributeDOMTokenList.cpp        2015-09-23 15:34:16 UTC (rev 190172)
+++ trunk/Source/WebCore/html/AttributeDOMTokenList.cpp        2015-09-23 16:06:00 UTC (rev 190173)
</span><span class="lines">@@ -34,7 +34,7 @@
</span><span class="cx">     : m_element(element)
</span><span class="cx">     , m_attributeName(attributeName)
</span><span class="cx"> {
</span><del>-    setValueInternal(m_element.getAttribute(m_attributeName));
</del><ins>+    setValue(m_element.getAttribute(m_attributeName));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void AttributeDOMTokenList::attributeValueChanged(const AtomicString&amp; newValue)
</span><span class="lines">@@ -43,7 +43,7 @@
</span><span class="cx">     if (m_isUpdatingAttributeValue)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><del>-    setValueInternal(newValue);
</del><ins>+    DOMTokenList::setValue(newValue);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void AttributeDOMTokenList::updateAfterTokenChange()
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlAttributeDOMTokenListh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/AttributeDOMTokenList.h (190172 => 190173)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/AttributeDOMTokenList.h        2015-09-23 15:34:16 UTC (rev 190172)
+++ trunk/Source/WebCore/html/AttributeDOMTokenList.h        2015-09-23 16:06:00 UTC (rev 190173)
</span><span class="lines">@@ -26,13 +26,12 @@
</span><span class="cx"> #ifndef AttributeDOMTokenList_h
</span><span class="cx"> #define AttributeDOMTokenList_h
</span><span class="cx"> 
</span><del>-#include &quot;DOMSettableTokenList.h&quot;
</del><ins>+#include &quot;DOMTokenList.h&quot;
</ins><span class="cx"> #include &quot;Element.h&quot;
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-class AttributeDOMTokenList final : public DOMSettableTokenList {
-    WTF_MAKE_FAST_ALLOCATED;
</del><ins>+class AttributeDOMTokenList final : public DOMTokenList {
</ins><span class="cx"> public:
</span><span class="cx">     AttributeDOMTokenList(Element&amp;, const QualifiedName&amp; attributeName);
</span><span class="cx">     void attributeValueChanged(const AtomicString&amp;);
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlDOMSettableTokenListcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/DOMSettableTokenList.cpp (190172 => 190173)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/DOMSettableTokenList.cpp        2015-09-23 15:34:16 UTC (rev 190172)
+++ trunk/Source/WebCore/html/DOMSettableTokenList.cpp        2015-09-23 16:06:00 UTC (rev 190173)
</span><span class="lines">@@ -28,10 +28,14 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-void DOMSettableTokenList::setValue(const String&amp; value)
</del><ins>+void DOMSettableTokenList::ref()
</ins><span class="cx"> {
</span><del>-    setValueInternal(value);
-    updateAfterTokenChange();
</del><ins>+    RefCounted&lt;DOMSettableTokenList&gt;::ref();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+void DOMSettableTokenList::deref()
+{
+    RefCounted&lt;DOMSettableTokenList&gt;::deref();
+}
+
</ins><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlDOMSettableTokenListh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/DOMSettableTokenList.h (190172 => 190173)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/DOMSettableTokenList.h        2015-09-23 15:34:16 UTC (rev 190172)
+++ trunk/Source/WebCore/html/DOMSettableTokenList.h        2015-09-23 16:06:00 UTC (rev 190173)
</span><span class="lines">@@ -28,19 +28,24 @@
</span><span class="cx"> 
</span><span class="cx"> #include &quot;DOMTokenList.h&quot;
</span><span class="cx"> #include &quot;SpaceSplitString.h&quot;
</span><ins>+#include &lt;wtf/RefCounted.h&gt;
</ins><span class="cx"> #include &lt;wtf/text/AtomicString.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> typedef int ExceptionCode;
</span><span class="cx"> 
</span><del>-class DOMSettableTokenList : public DOMTokenList {
</del><ins>+class DOMSettableTokenList final : public DOMTokenList, public RefCounted&lt;DOMSettableTokenList&gt; {
</ins><span class="cx">     WTF_MAKE_FAST_ALLOCATED;
</span><span class="cx"> public:
</span><del>-    void setValue(const String&amp;);
</del><ins>+    static Ref&lt;DOMSettableTokenList&gt; create()
+    {
+        return adoptRef(*new DOMSettableTokenList);
+    }
</ins><span class="cx"> 
</span><span class="cx">     // Make public.
</span><span class="cx">     using DOMTokenList::value;
</span><ins>+    using DOMTokenList::setValue;
</ins><span class="cx"> 
</span><span class="cx">     virtual void ref() override;
</span><span class="cx">     virtual void deref() override;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlDOMTokenListcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/DOMTokenList.cpp (190172 => 190173)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/DOMTokenList.cpp        2015-09-23 15:34:16 UTC (rev 190172)
+++ trunk/Source/WebCore/html/DOMTokenList.cpp        2015-09-23 16:06:00 UTC (rev 190173)
</span><span class="lines">@@ -158,7 +158,7 @@
</span><span class="cx">     return m_cachedValue;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void DOMTokenList::setValueInternal(const WTF::String&amp; value)
</del><ins>+void DOMTokenList::setValue(const String&amp; value)
</ins><span class="cx"> {
</span><span class="cx">     // Clear tokens but not capacity.
</span><span class="cx">     m_tokens.shrink(0);
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlDOMTokenListh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/DOMTokenList.h (190172 => 190173)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/DOMTokenList.h        2015-09-23 15:34:16 UTC (rev 190172)
+++ trunk/Source/WebCore/html/DOMTokenList.h        2015-09-23 16:06:00 UTC (rev 190173)
</span><span class="lines">@@ -61,7 +61,7 @@
</span><span class="cx"> protected:
</span><span class="cx">     DOMTokenList() = default;
</span><span class="cx">     const AtomicString&amp; value() const;
</span><del>-    void setValueInternal(const String&amp;);
</del><ins>+    void setValue(const String&amp;);
</ins><span class="cx"> 
</span><span class="cx">     virtual void updateAfterTokenChange() { m_cachedValue = nullAtom; }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLLinkElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLLinkElement.cpp (190172 => 190173)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLLinkElement.cpp        2015-09-23 15:34:16 UTC (rev 190172)
+++ trunk/Source/WebCore/html/HTMLLinkElement.cpp        2015-09-23 16:06:00 UTC (rev 190173)
</span><span class="lines">@@ -69,6 +69,7 @@
</span><span class="cx"> inline HTMLLinkElement::HTMLLinkElement(const QualifiedName&amp; tagName, Document&amp; document, bool createdByParser)
</span><span class="cx">     : HTMLElement(tagName, document)
</span><span class="cx">     , m_linkLoader(*this)
</span><ins>+    , m_sizes(DOMSettableTokenList::create())
</ins><span class="cx">     , m_disabledState(Unset)
</span><span class="cx">     , m_loading(false)
</span><span class="cx">     , m_createdByParser(createdByParser)
</span><span class="lines">@@ -158,8 +159,7 @@
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx">     if (name == sizesAttr) {
</span><del>-        if (m_sizes)
-            m_sizes-&gt;attributeValueChanged(value);
</del><ins>+        m_sizes-&gt;setValue(value);
</ins><span class="cx">         process();
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="lines">@@ -367,13 +367,6 @@
</span><span class="cx">     return m_sheet-&gt;contents().isLoading();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-DOMSettableTokenList&amp; HTMLLinkElement::sizes()
-{
-    if (!m_sizes)
-        m_sizes = std::make_unique&lt;AttributeDOMTokenList&gt;(*this, sizesAttr);
-    return *m_sizes;
-}
-
</del><span class="cx"> void HTMLLinkElement::linkLoaded()
</span><span class="cx"> {
</span><span class="cx">     dispatchEvent(Event::create(eventNames().loadEvent, false, false));
</span><span class="lines">@@ -482,9 +475,9 @@
</span><span class="cx">     return m_relAttribute.iconType;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-String HTMLLinkElement::iconSizes()
</del><ins>+String HTMLLinkElement::iconSizes() const
</ins><span class="cx"> {
</span><del>-    return sizes().toString();
</del><ins>+    return m_sizes-&gt;toString();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void HTMLLinkElement::addSubresourceAttributeURLs(ListHashSet&lt;URL&gt;&amp; urls) const
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLLinkElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLLinkElement.h (190172 => 190173)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLLinkElement.h        2015-09-23 15:34:16 UTC (rev 190172)
+++ trunk/Source/WebCore/html/HTMLLinkElement.h        2015-09-23 16:06:00 UTC (rev 190173)
</span><span class="lines">@@ -24,10 +24,10 @@
</span><span class="cx"> #ifndef HTMLLinkElement_h
</span><span class="cx"> #define HTMLLinkElement_h
</span><span class="cx"> 
</span><del>-#include &quot;AttributeDOMTokenList.h&quot;
</del><span class="cx"> #include &quot;CSSStyleSheet.h&quot;
</span><span class="cx"> #include &quot;CachedStyleSheetClient.h&quot;
</span><span class="cx"> #include &quot;CachedResourceHandle.h&quot;
</span><ins>+#include &quot;DOMSettableTokenList.h&quot;
</ins><span class="cx"> #include &quot;HTMLElement.h&quot;
</span><span class="cx"> #include &quot;LinkLoader.h&quot;
</span><span class="cx"> #include &quot;LinkLoaderClient.h&quot;
</span><span class="lines">@@ -57,7 +57,7 @@
</span><span class="cx">     IconType iconType() const;
</span><span class="cx"> 
</span><span class="cx">     // the icon size string as parsed from the HTML attribute
</span><del>-    String iconSizes();
</del><ins>+    String iconSizes() const;
</ins><span class="cx"> 
</span><span class="cx">     CSSStyleSheet* sheet() const { return m_sheet.get(); }
</span><span class="cx"> 
</span><span class="lines">@@ -65,7 +65,7 @@
</span><span class="cx"> 
</span><span class="cx">     bool isDisabled() const { return m_disabledState == Disabled; }
</span><span class="cx">     bool isEnabledViaScript() const { return m_disabledState == EnabledViaScript; }
</span><del>-    DOMSettableTokenList&amp; sizes();
</del><ins>+    DOMSettableTokenList&amp; sizes() { return m_sizes.get(); }
</ins><span class="cx"> 
</span><span class="cx">     void dispatchPendingEvent(LinkEventSender*);
</span><span class="cx">     static void dispatchPendingLoadEvents();
</span><span class="lines">@@ -128,7 +128,7 @@
</span><span class="cx"> 
</span><span class="cx">     String m_type;
</span><span class="cx">     String m_media;
</span><del>-    std::unique_ptr&lt;AttributeDOMTokenList&gt; m_sizes;
</del><ins>+    Ref&lt;DOMSettableTokenList&gt; m_sizes;
</ins><span class="cx">     DisabledState m_disabledState;
</span><span class="cx">     LinkRelAttribute m_relAttribute;
</span><span class="cx">     bool m_loading;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLOutputElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLOutputElement.cpp (190172 => 190173)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLOutputElement.cpp        2015-09-23 15:34:16 UTC (rev 190172)
+++ trunk/Source/WebCore/html/HTMLOutputElement.cpp        2015-09-23 16:06:00 UTC (rev 190173)
</span><span class="lines">@@ -37,13 +37,12 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-using namespace HTMLNames;
-
</del><span class="cx"> inline HTMLOutputElement::HTMLOutputElement(const QualifiedName&amp; tagName, Document&amp; document, HTMLFormElement* form)
</span><span class="cx">     : HTMLFormControlElement(tagName, document, form)
</span><span class="cx">     , m_isDefaultValueMode(true)
</span><span class="cx">     , m_isSetTextContentInProgress(false)
</span><span class="cx">     , m_defaultValue(&quot;&quot;)
</span><ins>+    , m_tokens(DOMSettableTokenList::create())
</ins><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -65,13 +64,17 @@
</span><span class="cx"> 
</span><span class="cx"> void HTMLOutputElement::parseAttribute(const QualifiedName&amp; name, const AtomicString&amp; value)
</span><span class="cx"> {
</span><del>-    if (name == forAttr) {
-        if (m_tokens)
-            m_tokens-&gt;attributeValueChanged(value);
-    } else
</del><ins>+    if (name == HTMLNames::forAttr)
+        setFor(value);
+    else
</ins><span class="cx">         HTMLFormControlElement::parseAttribute(name, value);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+void HTMLOutputElement::setFor(const String&amp; value)
+{
+    m_tokens-&gt;setValue(value);
+}
+
</ins><span class="cx"> void HTMLOutputElement::childrenChanged(const ChildChange&amp; change)
</span><span class="cx"> {
</span><span class="cx">     HTMLFormControlElement::childrenChanged(change);
</span><span class="lines">@@ -126,13 +129,6 @@
</span><span class="cx">         setTextContentInternal(value);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-DOMSettableTokenList&amp; HTMLOutputElement::htmlFor()
-{
-    if (!m_tokens)
-        m_tokens = std::make_unique&lt;AttributeDOMTokenList&gt;(*this, forAttr);
-    return *m_tokens;
-}
-
</del><span class="cx"> void HTMLOutputElement::setTextContentInternal(const String&amp; value)
</span><span class="cx"> {
</span><span class="cx">     ASSERT(!m_isSetTextContentInProgress);
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLOutputElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLOutputElement.h (190172 => 190173)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLOutputElement.h        2015-09-23 15:34:16 UTC (rev 190172)
+++ trunk/Source/WebCore/html/HTMLOutputElement.h        2015-09-23 16:06:00 UTC (rev 190173)
</span><span class="lines">@@ -31,7 +31,7 @@
</span><span class="cx"> #ifndef HTMLOutputElement_h
</span><span class="cx"> #define HTMLOutputElement_h
</span><span class="cx"> 
</span><del>-#include &quot;AttributeDOMTokenList.h&quot;
</del><ins>+#include &quot;DOMSettableTokenList.h&quot;
</ins><span class="cx"> #include &quot;HTMLFormControlElement.h&quot;
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="lines">@@ -44,7 +44,8 @@
</span><span class="cx">     void setValue(const String&amp;);
</span><span class="cx">     String defaultValue() const;
</span><span class="cx">     void setDefaultValue(const String&amp;);
</span><del>-    DOMSettableTokenList&amp; htmlFor();
</del><ins>+    void setFor(const String&amp;);
+    DOMSettableTokenList&amp; htmlFor() { return m_tokens.get(); }
</ins><span class="cx">     
</span><span class="cx">     virtual bool canContainRangeEndPoint() const override { return false; }
</span><span class="cx"> 
</span><span class="lines">@@ -65,7 +66,7 @@
</span><span class="cx">     bool m_isDefaultValueMode;
</span><span class="cx">     bool m_isSetTextContentInProgress;
</span><span class="cx">     String m_defaultValue;
</span><del>-    std::unique_ptr&lt;AttributeDOMTokenList&gt; m_tokens;
</del><ins>+    Ref&lt;DOMSettableTokenList&gt; m_tokens;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLOutputElementidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLOutputElement.idl (190172 => 190173)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLOutputElement.idl        2015-09-23 15:34:16 UTC (rev 190172)
+++ trunk/Source/WebCore/html/HTMLOutputElement.idl        2015-09-23 16:06:00 UTC (rev 190173)
</span><span class="lines">@@ -23,7 +23,9 @@
</span><span class="cx">  */
</span><span class="cx"> 
</span><span class="cx"> interface HTMLOutputElement : HTMLElement {
</span><del>-    [PutForwards=value] readonly attribute DOMSettableTokenList htmlFor;
</del><ins>+    // FIXME: This is supposed to be:
+    // [PutForwards=value] readonly attribute DOMSettableTokenList htmlFor;
+    readonly attribute DOMSettableTokenList htmlFor;
</ins><span class="cx"> 
</span><span class="cx">     readonly attribute HTMLFormElement form;
</span><span class="cx">     [Reflect] attribute DOMString name;
</span></span></pre>
</div>
</div>

</body>
</html>