<!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>[189646] 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/189646">189646</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2015-09-11 18:51:56 -0700 (Fri, 11 Sep 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>SVGColor custom text format is different from the CSS color custom text format
https://bugs.webkit.org/show_bug.cgi?id=148879

Patch by Said Abou-Hallawa &lt;sabouhallawa@apple.com&gt; on 2015-09-11
Reviewed by Daniel Bates.

Source/WebCore:

Implement the serialization of a CSS color value as it is described in
&lt;https://drafts.csswg.org/cssom/#serializing-css-values&gt;. Add the new
function Color::cssText() which is refactored from the existing function
Color::serialized(). Use the new function for serializing the SVGColor
always and also for Color but only when the alpha component is not 1.

Test: svg/css/computed-style-rgb-color.html

* css/CSSPrimitiveValue.cpp:
(WebCore::CSSPrimitiveValue::formatNumberForCustomCSSText): Move the code
for serializing the color from this function to Color::cssText().

* platform/graphics/Color.cpp:
(WebCore::Color::serialized): Call Color::cssText() if the alpha component
is not 1 and delete the repeated code.

(WebCore::Color::cssText):
* platform/graphics/Color.h: Add the new function to the header file.

* svg/SVGColor.cpp:
(WebCore::SVGColor::customCSSText): Call Color::cssText() always instead
of calling Color::serialized() for serializing the SVGColor.

LayoutTests:

* fast/css/getComputedStyle/computed-style-expected.txt:
* fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
* fast/css/parse-color-int-or-percent-crash.html:
* platform/mac/svg/webarchive/svg-script-subresouces-expected.txt:
* svg/css/case-sensitive-tags-expected.txt:
* svg/css/case-sensitive-tags.html:
* svg/css/getComputedStyle-basic-expected.txt:
* svg/css/script-tests/svg-attribute-parser-mode.js:
* svg/css/svg-attribute-parser-mode-expected.txt:
* svg/dom/SVGColor-expected.txt:
* svg/dom/SVGPaint-expected.txt:
* svg/dom/SVGStyleElement/disable-svg-style-element-expected.txt:
* svg/dom/SVGStyleElement/script-tests/disable-svg-style-element.js:
* svg/dom/script-tests/SVGColor.js:
* svg/dom/script-tests/SVGPaint.js:
* svg/webarchive/svg-script-subresouces-expected.webarchive:
* transitions/svg-transitions-expected.txt:
Fix expected results for existing tests

* svg/css/computed-style-rgb-color-expected.txt: Added.
* svg/css/computed-style-rgb-color.html: Added.
Ensure that the correct format is returned when getComputedStyle() is
called for an SVG color.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsfastcssgetComputedStylecomputedstyleexpectedtxt">trunk/LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastcssgetComputedStylecomputedstylewithoutrendererexpectedtxt">trunk/LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastcssparsecolorintorpercentcrashhtml">trunk/LayoutTests/fast/css/parse-color-int-or-percent-crash.html</a></li>
<li><a href="#trunkLayoutTestsplatformmacsvgwebarchivesvgscriptsubresoucesexpectedtxt">trunk/LayoutTests/platform/mac/svg/webarchive/svg-script-subresouces-expected.txt</a></li>
<li><a href="#trunkLayoutTestssvgcsscasesensitivetagsexpectedtxt">trunk/LayoutTests/svg/css/case-sensitive-tags-expected.txt</a></li>
<li><a href="#trunkLayoutTestssvgcsscasesensitivetagshtml">trunk/LayoutTests/svg/css/case-sensitive-tags.html</a></li>
<li><a href="#trunkLayoutTestssvgcssgetComputedStylebasicexpectedtxt">trunk/LayoutTests/svg/css/getComputedStyle-basic-expected.txt</a></li>
<li><a href="#trunkLayoutTestssvgcssscripttestssvgattributeparsermodejs">trunk/LayoutTests/svg/css/script-tests/svg-attribute-parser-mode.js</a></li>
<li><a href="#trunkLayoutTestssvgcsssvgattributeparsermodeexpectedtxt">trunk/LayoutTests/svg/css/svg-attribute-parser-mode-expected.txt</a></li>
<li><a href="#trunkLayoutTestssvgdomSVGColorexpectedtxt">trunk/LayoutTests/svg/dom/SVGColor-expected.txt</a></li>
<li><a href="#trunkLayoutTestssvgdomSVGPaintexpectedtxt">trunk/LayoutTests/svg/dom/SVGPaint-expected.txt</a></li>
<li><a href="#trunkLayoutTestssvgdomSVGStyleElementdisablesvgstyleelementexpectedtxt">trunk/LayoutTests/svg/dom/SVGStyleElement/disable-svg-style-element-expected.txt</a></li>
<li><a href="#trunkLayoutTestssvgdomSVGStyleElementscripttestsdisablesvgstyleelementjs">trunk/LayoutTests/svg/dom/SVGStyleElement/script-tests/disable-svg-style-element.js</a></li>
<li><a href="#trunkLayoutTestssvgdomscripttestsSVGColorjs">trunk/LayoutTests/svg/dom/script-tests/SVGColor.js</a></li>
<li><a href="#trunkLayoutTestssvgdomscripttestsSVGPaintjs">trunk/LayoutTests/svg/dom/script-tests/SVGPaint.js</a></li>
<li><a href="#trunkLayoutTestssvgwebarchivesvgscriptsubresoucesexpectedwebarchive">trunk/LayoutTests/svg/webarchive/svg-script-subresouces-expected.webarchive</a></li>
<li><a href="#trunkLayoutTeststransitionssvgtransitionsexpectedtxt">trunk/LayoutTests/transitions/svg-transitions-expected.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorecssCSSPrimitiveValuecpp">trunk/Source/WebCore/css/CSSPrimitiveValue.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsColorcpp">trunk/Source/WebCore/platform/graphics/Color.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsColorh">trunk/Source/WebCore/platform/graphics/Color.h</a></li>
<li><a href="#trunkSourceWebCoresvgSVGColorcpp">trunk/Source/WebCore/svg/SVGColor.cpp</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestssvgcsscomputedstylergbcolorexpectedtxt">trunk/LayoutTests/svg/css/computed-style-rgb-color-expected.txt</a></li>
<li><a href="#trunkLayoutTestssvgcsscomputedstylergbcolorhtml">trunk/LayoutTests/svg/css/computed-style-rgb-color.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (189645 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2015-09-12 00:57:43 UTC (rev 189645)
+++ trunk/LayoutTests/ChangeLog        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -1,3 +1,34 @@
</span><ins>+2015-09-11  Said Abou-Hallawa  &lt;sabouhallawa@apple.com&gt;
+
+        SVGColor custom text format is different from the CSS color custom text format
+        https://bugs.webkit.org/show_bug.cgi?id=148879
+
+        Reviewed by Daniel Bates.
+
+        * fast/css/getComputedStyle/computed-style-expected.txt:
+        * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
+        * fast/css/parse-color-int-or-percent-crash.html:
+        * platform/mac/svg/webarchive/svg-script-subresouces-expected.txt:
+        * svg/css/case-sensitive-tags-expected.txt:
+        * svg/css/case-sensitive-tags.html:
+        * svg/css/getComputedStyle-basic-expected.txt:
+        * svg/css/script-tests/svg-attribute-parser-mode.js:
+        * svg/css/svg-attribute-parser-mode-expected.txt:
+        * svg/dom/SVGColor-expected.txt:
+        * svg/dom/SVGPaint-expected.txt:
+        * svg/dom/SVGStyleElement/disable-svg-style-element-expected.txt:
+        * svg/dom/SVGStyleElement/script-tests/disable-svg-style-element.js:
+        * svg/dom/script-tests/SVGColor.js:
+        * svg/dom/script-tests/SVGPaint.js:
+        * svg/webarchive/svg-script-subresouces-expected.webarchive:
+        * transitions/svg-transitions-expected.txt:
+        Fix expected results for existing tests
+        
+        * svg/css/computed-style-rgb-color-expected.txt: Added.
+        * svg/css/computed-style-rgb-color.html: Added.
+        Ensure that the correct format is returned when getComputedStyle() is
+        called for an SVG color.        
+
</ins><span class="cx"> 2015-09-11  Nan Wang  &lt;n_wang@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         AX: ARIA 1.1 @aria-current
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgetComputedStylecomputedstyleexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt (189645 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt        2015-09-12 00:57:43 UTC (rev 189645)
+++ trunk/LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -237,7 +237,7 @@
</span><span class="cx"> color-interpolation: srgb;
</span><span class="cx"> color-interpolation-filters: linearrgb;
</span><span class="cx"> color-rendering: auto;
</span><del>-fill: #000000;
</del><ins>+fill: rgb(0, 0, 0);
</ins><span class="cx"> fill-opacity: 1;
</span><span class="cx"> fill-rule: nonzero;
</span><span class="cx"> marker-end: none;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgetComputedStylecomputedstylewithoutrendererexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt (189645 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt        2015-09-12 00:57:43 UTC (rev 189645)
+++ trunk/LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -236,7 +236,7 @@
</span><span class="cx"> color-interpolation: srgb
</span><span class="cx"> color-interpolation-filters: linearrgb
</span><span class="cx"> color-rendering: auto
</span><del>-fill: #000000
</del><ins>+fill: rgb(0, 0, 0)
</ins><span class="cx"> fill-opacity: 1
</span><span class="cx"> fill-rule: nonzero
</span><span class="cx"> marker-end: none
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssparsecolorintorpercentcrashhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css/parse-color-int-or-percent-crash.html (189645 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/parse-color-int-or-percent-crash.html        2015-09-12 00:57:43 UTC (rev 189645)
+++ trunk/LayoutTests/fast/css/parse-color-int-or-percent-crash.html        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -9,7 +9,7 @@
</span><span class="cx"> 
</span><span class="cx">             var colorString = &quot;rgb(00000000000000000000&quot;;
</span><span class="cx">             stopElement.style.setProperty(&quot;stop-color&quot;, colorString);
</span><del>-            document.body.innerHTML = stopElement.style.stopColor == &quot;#0000ff&quot; ? &quot;PASS&quot; : &quot;FAIL&quot;;
</del><ins>+            document.body.innerHTML = stopElement.style.stopColor == &quot;rgb(0, 0, 255)&quot; ? &quot;PASS&quot; : &quot;FAIL&quot;;
</ins><span class="cx">         &lt;/script&gt;
</span><span class="cx">     &lt;/body&gt;
</span><span class="cx"> &lt;/html&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacsvgwebarchivesvgscriptsubresoucesexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/svg/webarchive/svg-script-subresouces-expected.txt (189645 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/svg/webarchive/svg-script-subresouces-expected.txt        2015-09-12 00:57:43 UTC (rev 189645)
+++ trunk/LayoutTests/platform/mac/svg/webarchive/svg-script-subresouces-expected.txt        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -10,7 +10,7 @@
</span><span class="cx">     if (window.testRunner)
</span><span class="cx">         testRunner.dumpDOMAsWebArchive();
</span><span class="cx">   &amp;lt;/script&amp;gt;
</span><del>-  &amp;lt;rect id=&quot;rect&quot; width=&quot;100&quot; height=&quot;100&quot; fill=&quot;red&quot; style=&quot;fill: #008000;&quot;/&amp;gt;
</del><ins>+  &amp;lt;rect id=&quot;rect&quot; width=&quot;100&quot; height=&quot;100&quot; fill=&quot;red&quot; style=&quot;fill: rgb(0, 128, 0);&quot;/&amp;gt;
</ins><span class="cx">   &amp;lt;script xlink:href=&quot;resources/svg-script-subresources.js&quot; type=&quot;text/ecmascript&quot;/&amp;gt;
</span><span class="cx"> &amp;lt;/svg&amp;gt;&lt;/string&gt;
</span><span class="cx">                 &lt;key&gt;WebResourceFrameName&lt;/key&gt;
</span></span></pre></div>
<a id="trunkLayoutTestssvgcsscasesensitivetagsexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/svg/css/case-sensitive-tags-expected.txt (189645 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/css/case-sensitive-tags-expected.txt        2015-09-12 00:57:43 UTC (rev 189645)
+++ trunk/LayoutTests/svg/css/case-sensitive-tags-expected.txt        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -5,9 +5,9 @@
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById(&quot;fo2&quot;)).color is &quot;rgb(0, 128, 0)&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById(&quot;fo3&quot;)).color is &quot;rgb(0, 128, 0)&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById(&quot;fo4&quot;)).color is &quot;rgb(0, 128, 0)&quot;
</span><del>-PASS window.getComputedStyle(document.getElementById(&quot;circle1&quot;)).fill is &quot;#008000&quot;
-PASS window.getComputedStyle(document.getElementById(&quot;circle2&quot;)).fill is &quot;#008000&quot;
-PASS window.getComputedStyle(document.getElementById(&quot;circle3&quot;)).fill is &quot;#008000&quot;
</del><ins>+PASS window.getComputedStyle(document.getElementById(&quot;circle1&quot;)).fill is &quot;rgb(0, 128, 0)&quot;
+PASS window.getComputedStyle(document.getElementById(&quot;circle2&quot;)).fill is &quot;rgb(0, 128, 0)&quot;
+PASS window.getComputedStyle(document.getElementById(&quot;circle3&quot;)).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> PASS window.getComputedStyle(document.getElementById(&quot;stop1&quot;)).stopColor is &quot;rgb(0, 128, 0)&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById(&quot;stop2&quot;)).stopColor is &quot;rgb(0, 128, 0)&quot;
</span><span class="cx"> PASS window.getComputedStyle(document.getElementById(&quot;stop3&quot;)).stopColor is &quot;rgb(0, 128, 0)&quot;
</span></span></pre></div>
<a id="trunkLayoutTestssvgcsscasesensitivetagshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/svg/css/case-sensitive-tags.html (189645 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/css/case-sensitive-tags.html        2015-09-12 00:57:43 UTC (rev 189645)
+++ trunk/LayoutTests/svg/css/case-sensitive-tags.html        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -181,7 +181,7 @@
</span><span class="cx">             }
</span><span class="cx">             checkStyle(&quot;div&quot;, 3, &quot;color&quot;, &quot;rgb(0, 128, 0)&quot;);
</span><span class="cx">             checkStyle(&quot;fo&quot;, 4, &quot;color&quot;, &quot;rgb(0, 128, 0)&quot;);
</span><del>-            checkStyle(&quot;circle&quot;, 3, &quot;fill&quot;, &quot;#008000&quot;);
</del><ins>+            checkStyle(&quot;circle&quot;, 3, &quot;fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx">             checkStyle(&quot;stop&quot;, 8, &quot;stopColor&quot;, &quot;rgb(0, 128, 0)&quot;);
</span><span class="cx"> 
</span><span class="cx">             document.getElementById(&quot;container&quot;).style.display = &quot;none&quot;;
</span></span></pre></div>
<a id="trunkLayoutTestssvgcsscomputedstylergbcolorexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/svg/css/computed-style-rgb-color-expected.txt (0 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/css/computed-style-rgb-color-expected.txt                                (rev 0)
+++ trunk/LayoutTests/svg/css/computed-style-rgb-color-expected.txt        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+PASS getComputedStyle(document.querySelector('div.fully-opaque')).backgroundColor is &quot;rgb(0, 128, 0)&quot;
+PASS getComputedStyle(document.querySelector('div.fully-transparent')).backgroundColor is &quot;rgba(0, 0, 0, 0)&quot;
+PASS getComputedStyle(document.querySelector('div.half-transparent')).backgroundColor is &quot;rgba(0, 128, 0, 0.4)&quot;
+PASS getComputedStyle(document.querySelector('svg&gt;rect#fully-opaque')).fill is &quot;rgb(0, 128, 0)&quot;
+PASS getComputedStyle(document.querySelector('svg&gt;rect#fully-transparent')).fill is &quot;none&quot;
+PASS getComputedStyle(document.querySelector('svg&gt;rect#half-transparent')).fill is &quot;rgba(0, 128, 0, 0.4)&quot;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+    
+
</ins></span></pre></div>
<a id="trunkLayoutTestssvgcsscomputedstylergbcolorhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/svg/css/computed-style-rgb-color.html (0 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/css/computed-style-rgb-color.html                                (rev 0)
+++ trunk/LayoutTests/svg/css/computed-style-rgb-color.html        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -0,0 +1,42 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+  &lt;style&gt;
+    div {
+      width: 100px;
+      height: 100px;
+      display: inline-block;
+    }
+    .fully-opaque {
+      background-color: green;
+    }
+    .fully-transparent {
+      background-color: transparent;
+    }
+    .half-transparent {
+        background-color: rgba(0, 128, 0, 0.4);
+    }
+  &lt;/style&gt;
+  &lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;div class=&quot;fully-opaque&quot;&gt;&lt;/div&gt;
+  &lt;div class=&quot;fully-transparent&quot;&gt;&lt;/div&gt;
+  &lt;div class=&quot;half-transparent&quot;&gt;&lt;/div&gt;  
+  &lt;br&gt;  
+  &lt;svg width=&quot;400&quot;&gt;
+    &lt;rect id=&quot;fully-opaque&quot; width=&quot;100&quot; height=&quot;100&quot; fill=&quot;green&quot;/&gt;
+    &lt;rect id=&quot;fully-transparent&quot; x=&quot;104&quot; width=&quot;100&quot; height=&quot;100&quot; fill=&quot;none&quot;/&gt;
+    &lt;rect id=&quot;half-transparent&quot; x=&quot;208&quot; width=&quot;100&quot; height=&quot;100&quot; fill=&quot;rgba(0, 128, 0, 0.4)&quot;/&gt;
+  &lt;/svg&gt;
+  &lt;script&gt;
+     shouldBeEqualToString(&quot;getComputedStyle(document.querySelector('div.fully-opaque')).backgroundColor&quot;, &quot;rgb(0, 128, 0)&quot;);
+     shouldBeEqualToString(&quot;getComputedStyle(document.querySelector('div.fully-transparent')).backgroundColor&quot;, &quot;rgba(0, 0, 0, 0)&quot;);     
+     shouldBeEqualToString(&quot;getComputedStyle(document.querySelector('div.half-transparent')).backgroundColor&quot;, &quot;rgba(0, 128, 0, 0.4)&quot;); 
+     shouldBeEqualToString(&quot;getComputedStyle(document.querySelector('svg&gt;rect#fully-opaque')).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
+     shouldBeEqualToString(&quot;getComputedStyle(document.querySelector('svg&gt;rect#fully-transparent')).fill&quot;, &quot;none&quot;);
+     shouldBeEqualToString(&quot;getComputedStyle(document.querySelector('svg&gt;rect#half-transparent')).fill&quot;, &quot;rgba(0, 128, 0, 0.4)&quot;);     
+  &lt;/script&gt;
+  &lt;script src=&quot;../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestssvgcssgetComputedStylebasicexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/svg/css/getComputedStyle-basic-expected.txt (189645 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/css/getComputedStyle-basic-expected.txt        2015-09-12 00:57:43 UTC (rev 189645)
+++ trunk/LayoutTests/svg/css/getComputedStyle-basic-expected.txt        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -472,7 +472,7 @@
</span><span class="cx"> rect: style.getPropertyCSSValue(color-interpolation-filters) : [object CSSPrimitiveValue]
</span><span class="cx"> rect: style.getPropertyValue(color-rendering) : auto
</span><span class="cx"> rect: style.getPropertyCSSValue(color-rendering) : [object CSSPrimitiveValue]
</span><del>-rect: style.getPropertyValue(fill) : #0000ff
</del><ins>+rect: style.getPropertyValue(fill) : rgb(0, 0, 255)
</ins><span class="cx"> rect: style.getPropertyCSSValue(fill) : [object SVGPaint]
</span><span class="cx"> rect: style.getPropertyValue(fill-opacity) : 1
</span><span class="cx"> rect: style.getPropertyCSSValue(fill-opacity) : [object CSSPrimitiveValue]
</span><span class="lines">@@ -486,7 +486,7 @@
</span><span class="cx"> rect: style.getPropertyCSSValue(marker-start) : [object CSSPrimitiveValue]
</span><span class="cx"> rect: style.getPropertyValue(shape-rendering) : auto
</span><span class="cx"> rect: style.getPropertyCSSValue(shape-rendering) : [object CSSPrimitiveValue]
</span><del>-rect: style.getPropertyValue(stroke) : #ffa500
</del><ins>+rect: style.getPropertyValue(stroke) : rgb(255, 165, 0)
</ins><span class="cx"> rect: style.getPropertyCSSValue(stroke) : [object SVGPaint]
</span><span class="cx"> rect: style.getPropertyValue(stroke-dasharray) : none
</span><span class="cx"> rect: style.getPropertyCSSValue(stroke-dasharray) : [object CSSPrimitiveValue]
</span><span class="lines">@@ -996,7 +996,7 @@
</span><span class="cx"> g: style.getPropertyCSSValue(color-interpolation-filters) : [object CSSPrimitiveValue]
</span><span class="cx"> g: style.getPropertyValue(color-rendering) : auto
</span><span class="cx"> g: style.getPropertyCSSValue(color-rendering) : [object CSSPrimitiveValue]
</span><del>-g: style.getPropertyValue(fill) : #000000
</del><ins>+g: style.getPropertyValue(fill) : rgb(0, 0, 0)
</ins><span class="cx"> g: style.getPropertyCSSValue(fill) : [object SVGPaint]
</span><span class="cx"> g: style.getPropertyValue(fill-opacity) : 1
</span><span class="cx"> g: style.getPropertyCSSValue(fill-opacity) : [object CSSPrimitiveValue]
</span><span class="lines">@@ -1010,7 +1010,7 @@
</span><span class="cx"> g: style.getPropertyCSSValue(marker-start) : [object CSSPrimitiveValue]
</span><span class="cx"> g: style.getPropertyValue(shape-rendering) : auto
</span><span class="cx"> g: style.getPropertyCSSValue(shape-rendering) : [object CSSPrimitiveValue]
</span><del>-g: style.getPropertyValue(stroke) : #ffa500
</del><ins>+g: style.getPropertyValue(stroke) : rgb(255, 165, 0)
</ins><span class="cx"> g: style.getPropertyCSSValue(stroke) : [object SVGPaint]
</span><span class="cx"> g: style.getPropertyValue(stroke-dasharray) : none
</span><span class="cx"> g: style.getPropertyCSSValue(stroke-dasharray) : [object CSSPrimitiveValue]
</span></span></pre></div>
<a id="trunkLayoutTestssvgcssscripttestssvgattributeparsermodejs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/svg/css/script-tests/svg-attribute-parser-mode.js (189645 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/css/script-tests/svg-attribute-parser-mode.js        2015-09-12 00:57:43 UTC (rev 189645)
+++ trunk/LayoutTests/svg/css/script-tests/svg-attribute-parser-mode.js        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -12,55 +12,55 @@
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> // Testing 'fill'
</span><del>-// The default for fill is #000000.
-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;, &quot;#000000&quot;);
</del><ins>+// The default for fill is black.
+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;, &quot;rgb(0, 0, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> // Set the fill color to green.
</span><span class="cx"> rect.setAttribute(&quot;fill&quot;, &quot;green&quot;);
</span><del>-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> // Set following colors should be invalid.
</span><span class="cx"> rect.setAttribute(&quot;fill&quot;, &quot;f00&quot;);
</span><span class="cx"> shouldBeNull(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;);
</span><span class="cx"> // Reset to green.
</span><span class="cx"> rect.setAttribute(&quot;fill&quot;, &quot;green&quot;);
</span><del>-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> rect.setAttribute(&quot;fill&quot;, &quot;ff00&quot;);
</span><span class="cx"> shouldBeNull(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;);
</span><span class="cx"> // Reset to green.
</span><span class="cx"> rect.setAttribute(&quot;fill&quot;, &quot;green&quot;);
</span><del>-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> rect.setAttribute(&quot;fill&quot;, &quot;ff0000&quot;);
</span><span class="cx"> shouldBeNull(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;);
</span><span class="cx"> // Reset to green.
</span><span class="cx"> rect.setAttribute(&quot;fill&quot;, &quot;green&quot;);
</span><del>-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> rect.setAttribute(&quot;fill&quot;, &quot;ff00&quot;);
</span><span class="cx"> shouldBeNull(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;);
</span><span class="cx"> // Reset to green.
</span><span class="cx"> rect.setAttribute(&quot;fill&quot;, &quot;green&quot;);
</span><del>-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> rect.setAttribute(&quot;fill&quot;, &quot;&quot;);
</span><del>-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;, &quot;#000000&quot;);
</del><ins>+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;, &quot;rgb(0, 0, 0)&quot;);
</ins><span class="cx"> // Reset to green.
</span><span class="cx"> rect.setAttribute(&quot;fill&quot;, &quot;green&quot;);
</span><del>-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> rect.setAttribute(&quot;fill&quot;, &quot;url(#reference)&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;, &quot;url(#reference)&quot;);
</span><span class="cx"> // Reset to green.
</span><span class="cx"> rect.setAttribute(&quot;fill&quot;, &quot;green&quot;);
</span><del>-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> rect.setAttribute(&quot;fill&quot;, &quot;url(#reference) green&quot;);
</span><del>-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;, &quot;url(#reference) #008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;, &quot;url(#reference) rgb(0, 128, 0)&quot;);
</ins><span class="cx"> // Reset to green.
</span><span class="cx"> rect.setAttribute(&quot;fill&quot;, &quot;green&quot;);
</span><del>-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> // Testing 'stroke'
</span><span class="lines">@@ -69,50 +69,50 @@
</span><span class="cx"> 
</span><span class="cx"> // Set the stroke color to green.
</span><span class="cx"> rect.setAttribute(&quot;stroke&quot;, &quot;green&quot;);
</span><del>-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> // Set following colors should be invalid.
</span><span class="cx"> rect.setAttribute(&quot;stroke&quot;, &quot;f00&quot;);
</span><span class="cx"> shouldBeNull(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;);
</span><span class="cx"> // Reset to green.
</span><span class="cx"> rect.setAttribute(&quot;stroke&quot;, &quot;green&quot;);
</span><del>-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> rect.setAttribute(&quot;stroke&quot;, &quot;ff00&quot;);
</span><span class="cx"> shouldBeNull(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;);
</span><span class="cx"> // Reset to green.
</span><span class="cx"> rect.setAttribute(&quot;stroke&quot;, &quot;green&quot;);
</span><del>-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> rect.setAttribute(&quot;stroke&quot;, &quot;ff0000&quot;);
</span><span class="cx"> shouldBeNull(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;);
</span><span class="cx"> // Reset to green.
</span><span class="cx"> rect.setAttribute(&quot;stroke&quot;, &quot;green&quot;);
</span><del>-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> rect.setAttribute(&quot;stroke&quot;, &quot;ff00&quot;);
</span><span class="cx"> shouldBeNull(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;);
</span><span class="cx"> // Reset to green.
</span><span class="cx"> rect.setAttribute(&quot;stroke&quot;, &quot;green&quot;);
</span><del>-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> rect.setAttribute(&quot;stroke&quot;, &quot;&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;, &quot;none&quot;);
</span><span class="cx"> // Reset to green.
</span><span class="cx"> rect.setAttribute(&quot;stroke&quot;, &quot;green&quot;);
</span><del>-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> rect.setAttribute(&quot;stroke&quot;, &quot;url(#reference)&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;, &quot;url(#reference)&quot;);
</span><span class="cx"> // Reset to green.
</span><span class="cx"> rect.setAttribute(&quot;stroke&quot;, &quot;green&quot;);
</span><del>-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> rect.setAttribute(&quot;stroke&quot;, &quot;url(#reference) green&quot;);
</span><del>-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;, &quot;url(#reference) #008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;, &quot;url(#reference) rgb(0, 128, 0)&quot;);
</ins><span class="cx"> // Reset to green.
</span><span class="cx"> rect.setAttribute(&quot;stroke&quot;, &quot;green&quot;);
</span><del>-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rect, null).stroke&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> // Testing 'color'
</span></span></pre></div>
<a id="trunkLayoutTestssvgcsssvgattributeparsermodeexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/svg/css/svg-attribute-parser-mode-expected.txt (189645 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/css/svg-attribute-parser-mode-expected.txt        2015-09-12 00:57:43 UTC (rev 189645)
+++ trunk/LayoutTests/svg/css/svg-attribute-parser-mode-expected.txt        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -3,38 +3,38 @@
</span><span class="cx"> On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-PASS document.defaultView.getComputedStyle(rect, null).fill is &quot;#000000&quot;
-PASS document.defaultView.getComputedStyle(rect, null).fill is &quot;#008000&quot;
</del><ins>+PASS document.defaultView.getComputedStyle(rect, null).fill is &quot;rgb(0, 0, 0)&quot;
+PASS document.defaultView.getComputedStyle(rect, null).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> PASS document.defaultView.getComputedStyle(rect, null).fill is null
</span><del>-PASS document.defaultView.getComputedStyle(rect, null).fill is &quot;#008000&quot;
</del><ins>+PASS document.defaultView.getComputedStyle(rect, null).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> PASS document.defaultView.getComputedStyle(rect, null).fill is null
</span><del>-PASS document.defaultView.getComputedStyle(rect, null).fill is &quot;#008000&quot;
</del><ins>+PASS document.defaultView.getComputedStyle(rect, null).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> PASS document.defaultView.getComputedStyle(rect, null).fill is null
</span><del>-PASS document.defaultView.getComputedStyle(rect, null).fill is &quot;#008000&quot;
</del><ins>+PASS document.defaultView.getComputedStyle(rect, null).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> PASS document.defaultView.getComputedStyle(rect, null).fill is null
</span><del>-PASS document.defaultView.getComputedStyle(rect, null).fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rect, null).fill is &quot;#000000&quot;
-PASS document.defaultView.getComputedStyle(rect, null).fill is &quot;#008000&quot;
</del><ins>+PASS document.defaultView.getComputedStyle(rect, null).fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rect, null).fill is &quot;rgb(0, 0, 0)&quot;
+PASS document.defaultView.getComputedStyle(rect, null).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> PASS document.defaultView.getComputedStyle(rect, null).fill is &quot;url(#reference)&quot;
</span><del>-PASS document.defaultView.getComputedStyle(rect, null).fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rect, null).fill is &quot;url(#reference) #008000&quot;
-PASS document.defaultView.getComputedStyle(rect, null).fill is &quot;#008000&quot;
</del><ins>+PASS document.defaultView.getComputedStyle(rect, null).fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rect, null).fill is &quot;url(#reference) rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rect, null).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> PASS document.defaultView.getComputedStyle(rect, null).stroke is &quot;none&quot;
</span><del>-PASS document.defaultView.getComputedStyle(rect, null).stroke is &quot;#008000&quot;
</del><ins>+PASS document.defaultView.getComputedStyle(rect, null).stroke is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> PASS document.defaultView.getComputedStyle(rect, null).stroke is null
</span><del>-PASS document.defaultView.getComputedStyle(rect, null).stroke is &quot;#008000&quot;
</del><ins>+PASS document.defaultView.getComputedStyle(rect, null).stroke is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> PASS document.defaultView.getComputedStyle(rect, null).stroke is null
</span><del>-PASS document.defaultView.getComputedStyle(rect, null).stroke is &quot;#008000&quot;
</del><ins>+PASS document.defaultView.getComputedStyle(rect, null).stroke is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> PASS document.defaultView.getComputedStyle(rect, null).stroke is null
</span><del>-PASS document.defaultView.getComputedStyle(rect, null).stroke is &quot;#008000&quot;
</del><ins>+PASS document.defaultView.getComputedStyle(rect, null).stroke is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> PASS document.defaultView.getComputedStyle(rect, null).stroke is null
</span><del>-PASS document.defaultView.getComputedStyle(rect, null).stroke is &quot;#008000&quot;
</del><ins>+PASS document.defaultView.getComputedStyle(rect, null).stroke is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> PASS document.defaultView.getComputedStyle(rect, null).stroke is &quot;none&quot;
</span><del>-PASS document.defaultView.getComputedStyle(rect, null).stroke is &quot;#008000&quot;
</del><ins>+PASS document.defaultView.getComputedStyle(rect, null).stroke is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> PASS document.defaultView.getComputedStyle(rect, null).stroke is &quot;url(#reference)&quot;
</span><del>-PASS document.defaultView.getComputedStyle(rect, null).stroke is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rect, null).stroke is &quot;url(#reference) #008000&quot;
-PASS document.defaultView.getComputedStyle(rect, null).stroke is &quot;#008000&quot;
</del><ins>+PASS document.defaultView.getComputedStyle(rect, null).stroke is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rect, null).stroke is &quot;url(#reference) rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rect, null).stroke is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> PASS document.defaultView.getComputedStyle(rect, null).color is &quot;rgb(0, 0, 0)&quot;
</span><span class="cx"> PASS document.defaultView.getComputedStyle(rect, null).color is &quot;rgb(0, 128, 0)&quot;
</span><span class="cx"> PASS document.defaultView.getComputedStyle(rect, null).color is &quot;rgb(0, 0, 0)&quot;
</span></span></pre></div>
<a id="trunkLayoutTestssvgdomSVGColorexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/svg/dom/SVGColor-expected.txt (189645 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/dom/SVGColor-expected.txt        2015-09-12 00:57:43 UTC (rev 189645)
+++ trunk/LayoutTests/svg/dom/SVGColor-expected.txt        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -11,7 +11,7 @@
</span><span class="cx"> PASS rgbColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 255
</span><span class="cx"> PASS rgbColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><span class="cx"> PASS rgbColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><del>-PASS stopElement.style.stopColor is &quot;#ff0000&quot;
</del><ins>+PASS stopElement.style.stopColor is &quot;rgb(255, 0, 0)&quot;
</ins><span class="cx"> PASS document.defaultView.getComputedStyle(stopElement).stopColor is &quot;rgb(255, 0, 0)&quot;
</span><span class="cx"> 
</span><span class="cx"> Try invalid arguments for setColor()
</span><span class="lines">@@ -25,7 +25,7 @@
</span><span class="cx"> Try assigning to the readonly colorType property, which silently fails
</span><span class="cx"> PASS stopColor.colorType = SVGColor.SVG_COLORTYPE_UNKKNOWN; is undefined.
</span><span class="cx"> PASS stopColor.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR
</span><del>-PASS stopElement.style.stopColor is &quot;#ff0000&quot;
</del><ins>+PASS stopElement.style.stopColor is &quot;rgb(255, 0, 0)&quot;
</ins><span class="cx"> PASS document.defaultView.getComputedStyle(stopElement).stopColor is &quot;rgb(255, 0, 0)&quot;
</span><span class="cx"> 
</span><span class="cx"> Test using setColor() and SVG_COLORTYPE_UNKNOWN
</span><span class="lines">@@ -42,7 +42,7 @@
</span><span class="cx"> PASS rgbColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 255
</span><span class="cx"> PASS rgbColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><span class="cx"> PASS rgbColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><del>-PASS stopElement.style.stopColor is &quot;#ff0000&quot;
</del><ins>+PASS stopElement.style.stopColor is &quot;rgb(255, 0, 0)&quot;
</ins><span class="cx"> PASS document.defaultView.getComputedStyle(stopElement).stopColor is &quot;rgb(255, 0, 0)&quot;
</span><span class="cx"> 
</span><span class="cx"> Test using setColor() and SVG_COLORTYPE_CURRENTCOLOR
</span><span class="lines">@@ -53,7 +53,7 @@
</span><span class="cx"> PASS rgbColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 255
</span><span class="cx"> PASS rgbColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><span class="cx"> PASS rgbColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><del>-PASS stopElement.style.stopColor is &quot;#ff0000&quot;
</del><ins>+PASS stopElement.style.stopColor is &quot;rgb(255, 0, 0)&quot;
</ins><span class="cx"> PASS document.defaultView.getComputedStyle(stopElement).stopColor is &quot;rgb(255, 0, 0)&quot;
</span><span class="cx"> 
</span><span class="cx"> Test using setColor() and SVG_COLORTYPE_RGBCOLOR
</span></span></pre></div>
<a id="trunkLayoutTestssvgdomSVGPaintexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/svg/dom/SVGPaint-expected.txt (189645 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/dom/SVGPaint-expected.txt        2015-09-12 00:57:43 UTC (rev 189645)
+++ trunk/LayoutTests/svg/dom/SVGPaint-expected.txt        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -13,8 +13,8 @@
</span><span class="cx"> PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><span class="cx"> PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128
</span><span class="cx"> PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Try invalid arguments for setPaint()
</span><span class="cx"> PASS fillPaint.setPaint(null, null, null, null) threw exception Error: NoModificationAllowedError: DOM Exception 7.
</span><span class="lines">@@ -32,8 +32,8 @@
</span><span class="cx"> Try assigning to the readonly paintType property, which silently fails
</span><span class="cx"> PASS fillPaint.paintType = SVGPaint.SVG_PAINTTYPE_UNKKNOWN; is undefined.
</span><span class="cx"> PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Test using setPaint() and SVG_PAINTTYPE_UNKNOWN
</span><span class="cx"> PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, '', '', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
</span><span class="lines">@@ -45,73 +45,73 @@
</span><span class="cx"> Test using setPaint() and SVG_PAINTTYPE_NONE - a
</span><span class="cx"> PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', '', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
</span><span class="cx"> PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Reset style to initial value
</span><span class="cx"> PASS (fillPaint = rectElement.style.getPropertyCSSValue('fill')).toString() is &quot;[object SVGPaint]&quot;
</span><span class="cx"> PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Test using setPaint() and SVG_PAINTTYPE_NONE - b
</span><span class="cx"> PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, 'url(#foo)', '', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
</span><span class="cx"> PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Reset style to initial value
</span><span class="cx"> PASS (fillPaint = rectElement.style.getPropertyCSSValue('fill')).toString() is &quot;[object SVGPaint]&quot;
</span><span class="cx"> PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Test using setPaint() and SVG_PAINTTYPE_NONE - c
</span><span class="cx"> PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', 'rgb(0,128,128)', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
</span><span class="cx"> PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Reset style to initial value
</span><span class="cx"> PASS (fillPaint = rectElement.style.getPropertyCSSValue('fill')).toString() is &quot;[object SVGPaint]&quot;
</span><span class="cx"> PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Test using setPaint() and SVG_PAINTTYPE_NONE - d
</span><span class="cx"> PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', '', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
</span><span class="cx"> PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Reset style to initial value
</span><span class="cx"> PASS (fillPaint = rectElement.style.getPropertyCSSValue('fill')).toString() is &quot;[object SVGPaint]&quot;
</span><span class="cx"> PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Test using setPaint() and SVG_PAINTTYPE_NONE - e
</span><span class="cx"> PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, 'url(#foo)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Test using setPaint() and SVG_PAINTTYPE_URI - a
</span><span class="cx"> PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', '', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
</span><span class="cx"> PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Test using setPaint() and SVG_PAINTTYPE_URI - b
</span><span class="cx"> PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', 'rgb(0,128,128)', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
</span><span class="cx"> PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Test using setPaint() and SVG_PAINTTYPE_URI - c
</span><span class="cx"> PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', '', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
</span><span class="cx"> PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Test using setPaint() and SVG_PAINTTYPE_URI - d
</span><span class="cx"> PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, 'url(#test)', '', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
</span><span class="lines">@@ -122,14 +122,14 @@
</span><span class="cx"> PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><span class="cx"> PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128
</span><span class="cx"> PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Reset style to initial value
</span><span class="cx"> PASS (fillPaint = rectElement.style.getPropertyCSSValue('fill')).toString() is &quot;[object SVGPaint]&quot;
</span><span class="cx"> PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Test using setPaint() and SVG_PAINTTYPE_URI - e
</span><span class="cx"> PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, 'url(#foo)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
</span><span class="lines">@@ -140,8 +140,8 @@
</span><span class="cx"> PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><span class="cx"> PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128
</span><span class="cx"> PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Test using setPaint() and SVG_PAINTTYPE_URI_NONE
</span><span class="cx"> PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_NONE, 'url(#test)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
</span><span class="lines">@@ -152,8 +152,8 @@
</span><span class="cx"> PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><span class="cx"> PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128
</span><span class="cx"> PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Test using setPaint() and SVG_PAINTTYPE_URI_CURRENTCOLOR
</span><span class="cx"> PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_CURRENTCOLOR, 'url(#foo)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
</span><span class="lines">@@ -164,8 +164,8 @@
</span><span class="cx"> PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><span class="cx"> PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128
</span><span class="cx"> PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Test using setPaint() and SVG_PAINTTYPE_URI_RGBCOLOR
</span><span class="cx"> PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_RGBCOLOR, 'url(#test)', 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
</span><span class="lines">@@ -176,8 +176,8 @@
</span><span class="cx"> PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><span class="cx"> PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128
</span><span class="cx"> PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Test using setPaint() and SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR
</span><span class="cx"> PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR, 'url(#foo)', 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
</span><span class="lines">@@ -188,8 +188,8 @@
</span><span class="cx"> PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><span class="cx"> PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128
</span><span class="cx"> PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Test using setPaint() and SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR
</span><span class="cx"> PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR, 'url(#test)', 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
</span><span class="lines">@@ -200,8 +200,8 @@
</span><span class="cx"> PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><span class="cx"> PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128
</span><span class="cx"> PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Test using setPaint() and SVG_PAINTTYPE_CURRENTCOLOR
</span><span class="cx"> PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_CURRENTCOLOR, 'url(#foo)', 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
</span><span class="lines">@@ -212,8 +212,8 @@
</span><span class="cx"> PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><span class="cx"> PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128
</span><span class="cx"> PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Test using setPaint() and SVG_PAINTTYPE_RGBCOLOR
</span><span class="cx"> PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR, 'url(#test)', 'rgb(0,77,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
</span><span class="lines">@@ -224,8 +224,8 @@
</span><span class="cx"> PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><span class="cx"> PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128
</span><span class="cx"> PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> 
</span><span class="cx"> Test using setUri()
</span><span class="cx"> PASS fillPaint.setUri('url(#foobar)'); is undefined.
</span><span class="lines">@@ -236,8 +236,8 @@
</span><span class="cx"> PASS fillColor.red.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><span class="cx"> PASS fillColor.green.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 128
</span><span class="cx"> PASS fillColor.blue.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 0
</span><del>-PASS rectElement.style.fill is &quot;#008000&quot;
-PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;#008000&quot;
</del><ins>+PASS rectElement.style.fill is &quot;rgb(0, 128, 0)&quot;
+PASS document.defaultView.getComputedStyle(rectElement).fill is &quot;rgb(0, 128, 0)&quot;
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestssvgdomSVGStyleElementdisablesvgstyleelementexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/svg/dom/SVGStyleElement/disable-svg-style-element-expected.txt (189645 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/dom/SVGStyleElement/disable-svg-style-element-expected.txt        2015-09-12 00:57:43 UTC (rev 189645)
+++ trunk/LayoutTests/svg/dom/SVGStyleElement/disable-svg-style-element-expected.txt        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -4,9 +4,9 @@
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> PASS styleElement.disabled is false
</span><del>-PASS window.getComputedStyle(rect).fill is &quot;#0000ff&quot;
</del><ins>+PASS window.getComputedStyle(rect).fill is &quot;rgb(0, 0, 255)&quot;
</ins><span class="cx"> PASS styleElement.disabled is true
</span><del>-PASS window.getComputedStyle(rect).fill is &quot;#ff0000&quot;
</del><ins>+PASS window.getComputedStyle(rect).fill is &quot;rgb(255, 0, 0)&quot;
</ins><span class="cx"> PASS newStyleElement.disabled is false
</span><span class="cx"> PASS newStyleElement.disabled is false
</span><span class="cx"> PASS otherStyleElement.disabled is false
</span></span></pre></div>
<a id="trunkLayoutTestssvgdomSVGStyleElementscripttestsdisablesvgstyleelementjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/svg/dom/SVGStyleElement/script-tests/disable-svg-style-element.js (189645 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/dom/SVGStyleElement/script-tests/disable-svg-style-element.js        2015-09-12 00:57:43 UTC (rev 189645)
+++ trunk/LayoutTests/svg/dom/SVGStyleElement/script-tests/disable-svg-style-element.js        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -31,11 +31,11 @@
</span><span class="cx"> 
</span><span class="cx"> // Simple case
</span><span class="cx"> shouldBeFalse('styleElement.disabled');
</span><del>-shouldBe('window.getComputedStyle(rect).fill', '&quot;#0000ff&quot;');
</del><ins>+shouldBe('window.getComputedStyle(rect).fill', '&quot;rgb(0, 0, 255)&quot;');
</ins><span class="cx"> 
</span><span class="cx"> styleElement.disabled = true
</span><span class="cx"> shouldBeTrue('styleElement.disabled');
</span><del>-shouldBe('window.getComputedStyle(rect).fill', '&quot;#ff0000&quot;');
</del><ins>+shouldBe('window.getComputedStyle(rect).fill', '&quot;rgb(255, 0, 0)&quot;');
</ins><span class="cx"> 
</span><span class="cx"> // Test disconnected element
</span><span class="cx"> var newStyleElement = document.createElementNS(xmlns, 'style');
</span></span></pre></div>
<a id="trunkLayoutTestssvgdomscripttestsSVGColorjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/svg/dom/script-tests/SVGColor.js (189645 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/dom/script-tests/SVGColor.js        2015-09-12 00:57:43 UTC (rev 189645)
+++ trunk/LayoutTests/svg/dom/script-tests/SVGColor.js        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -22,7 +22,7 @@
</span><span class="cx"> debug(&quot;Check initial color values&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;(stopColor = stopElement.style.getPropertyCSSValue('stop-color')).toString()&quot;, &quot;[object SVGColor]&quot;);
</span><span class="cx"> checkStopColor(&quot;SVGColor.SVG_COLORTYPE_RGBCOLOR&quot;, 255, 0, 0);
</span><del>-shouldBeEqualToString(&quot;stopElement.style.stopColor&quot;, &quot;#ff0000&quot;);
</del><ins>+shouldBeEqualToString(&quot;stopElement.style.stopColor&quot;, &quot;rgb(255, 0, 0)&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(stopElement).stopColor&quot;, &quot;rgb(255, 0, 0)&quot;);
</span><span class="cx"> 
</span><span class="cx"> debug(&quot;&quot;);
</span><span class="lines">@@ -38,7 +38,7 @@
</span><span class="cx"> debug(&quot;Try assigning to the readonly colorType property, which silently fails&quot;);
</span><span class="cx"> shouldBeUndefined(&quot;stopColor.colorType = SVGColor.SVG_COLORTYPE_UNKKNOWN;&quot;);
</span><span class="cx"> shouldBe(&quot;stopColor.colorType&quot;, &quot;SVGColor.SVG_COLORTYPE_RGBCOLOR&quot;);
</span><del>-shouldBeEqualToString(&quot;stopElement.style.stopColor&quot;, &quot;#ff0000&quot;);
</del><ins>+shouldBeEqualToString(&quot;stopElement.style.stopColor&quot;, &quot;rgb(255, 0, 0)&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(stopElement).stopColor&quot;, &quot;rgb(255, 0, 0)&quot;);
</span><span class="cx"> 
</span><span class="cx"> debug(&quot;&quot;);
</span><span class="lines">@@ -54,7 +54,7 @@
</span><span class="cx"> shouldBe(&quot;stopColor.colorType&quot;, &quot;SVGColor.SVG_COLORTYPE_RGBCOLOR&quot;);
</span><span class="cx"> // FIXME: No support for ICC colors.
</span><span class="cx"> checkStopColor(&quot;SVGColor.SVG_COLORTYPE_RGBCOLOR&quot;, 255, 0, 0);
</span><del>-shouldBeEqualToString(&quot;stopElement.style.stopColor&quot;, &quot;#ff0000&quot;);
</del><ins>+shouldBeEqualToString(&quot;stopElement.style.stopColor&quot;, &quot;rgb(255, 0, 0)&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(stopElement).stopColor&quot;, &quot;rgb(255, 0, 0)&quot;);
</span><span class="cx"> 
</span><span class="cx"> debug(&quot;&quot;);
</span><span class="lines">@@ -62,7 +62,7 @@
</span><span class="cx"> shouldThrow(&quot;stopColor.setColor(SVGColor.SVG_COLORTYPE_CURRENTCOLOR, 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)')&quot;);
</span><span class="cx"> shouldBe(&quot;stopColor.colorType&quot;, &quot;SVGColor.SVG_COLORTYPE_RGBCOLOR&quot;);
</span><span class="cx"> checkStopColor(&quot;SVGColor.SVG_COLORTYPE_RGBCOLOR&quot;, 255, 0, 0);
</span><del>-shouldBeEqualToString(&quot;stopElement.style.stopColor&quot;, &quot;#ff0000&quot;);
</del><ins>+shouldBeEqualToString(&quot;stopElement.style.stopColor&quot;, &quot;rgb(255, 0, 0)&quot;);
</ins><span class="cx"> shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(stopElement).stopColor&quot;, &quot;rgb(255, 0, 0)&quot;);
</span><span class="cx"> 
</span><span class="cx"> debug(&quot;&quot;);
</span></span></pre></div>
<a id="trunkLayoutTestssvgdomscripttestsSVGPaintjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/svg/dom/script-tests/SVGPaint.js (189645 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/dom/script-tests/SVGPaint.js        2015-09-12 00:57:43 UTC (rev 189645)
+++ trunk/LayoutTests/svg/dom/script-tests/SVGPaint.js        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -23,8 +23,8 @@
</span><span class="cx">     rectElement.setAttribute(&quot;style&quot;, &quot;color: lime; fill: green&quot;);
</span><span class="cx">     shouldBeEqualToString(&quot;(fillPaint = rectElement.style.getPropertyCSSValue('fill')).toString()&quot;, &quot;[object SVGPaint]&quot;);
</span><span class="cx">     shouldBe(&quot;fillPaint.paintType&quot;, &quot;SVGPaint.SVG_PAINTTYPE_RGBCOLOR&quot;);
</span><del>-    shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;#008000&quot;);
-    shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;#008000&quot;);
</del><ins>+    shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;rgb(0, 128, 0)&quot;);
+    shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function checkFillColor(type, red, green, blue) {
</span><span class="lines">@@ -41,8 +41,8 @@
</span><span class="cx"> shouldBe(&quot;fillPaint.paintType&quot;, &quot;SVGPaint.SVG_PAINTTYPE_RGBCOLOR&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;fillPaint.uri&quot;, &quot;&quot;);
</span><span class="cx"> checkFillColor(&quot;SVGColor.SVG_COLORTYPE_RGBCOLOR&quot;, 0, 128, 0);
</span><del>-shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;#008000&quot;);
-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;rgb(0, 128, 0)&quot;);
+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> debug(&quot;&quot;);
</span><span class="cx"> debug(&quot;Try invalid arguments for setPaint()&quot;);
</span><span class="lines">@@ -63,8 +63,8 @@
</span><span class="cx"> debug(&quot;Try assigning to the readonly paintType property, which silently fails&quot;);
</span><span class="cx"> shouldBeUndefined(&quot;fillPaint.paintType = SVGPaint.SVG_PAINTTYPE_UNKKNOWN;&quot;);
</span><span class="cx"> shouldBe(&quot;fillPaint.paintType&quot;, &quot;SVGPaint.SVG_PAINTTYPE_RGBCOLOR&quot;);
</span><del>-shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;#008000&quot;);
-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;rgb(0, 128, 0)&quot;);
+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> debug(&quot;&quot;);
</span><span class="cx"> debug(&quot;Test using setPaint() and SVG_PAINTTYPE_UNKNOWN&quot;);
</span><span class="lines">@@ -78,60 +78,60 @@
</span><span class="cx"> debug(&quot;Test using setPaint() and SVG_PAINTTYPE_NONE - a&quot;);
</span><span class="cx"> shouldThrow(&quot;fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', '', '')&quot;);
</span><span class="cx"> shouldBe(&quot;fillPaint.paintType&quot;, &quot;SVGPaint.SVG_PAINTTYPE_RGBCOLOR&quot;);
</span><del>-shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;#008000&quot;);
-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;rgb(0, 128, 0)&quot;);
+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> resetStyle();
</span><span class="cx"> 
</span><span class="cx"> debug(&quot;&quot;);
</span><span class="cx"> debug(&quot;Test using setPaint() and SVG_PAINTTYPE_NONE - b&quot;);
</span><span class="cx"> shouldThrow(&quot;fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, 'url(#foo)', '', '')&quot;);
</span><span class="cx"> shouldBe(&quot;fillPaint.paintType&quot;, &quot;SVGPaint.SVG_PAINTTYPE_RGBCOLOR&quot;);
</span><del>-shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;#008000&quot;);
-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;rgb(0, 128, 0)&quot;);
+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> resetStyle();
</span><span class="cx"> 
</span><span class="cx"> debug(&quot;&quot;);
</span><span class="cx"> debug(&quot;Test using setPaint() and SVG_PAINTTYPE_NONE - c&quot;);
</span><span class="cx"> shouldThrow(&quot;fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', 'rgb(0,128,128)', '')&quot;);
</span><span class="cx"> shouldBe(&quot;fillPaint.paintType&quot;, &quot;SVGPaint.SVG_PAINTTYPE_RGBCOLOR&quot;);
</span><del>-shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;#008000&quot;);
-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;rgb(0, 128, 0)&quot;);
+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> resetStyle();
</span><span class="cx"> 
</span><span class="cx"> debug(&quot;&quot;);
</span><span class="cx"> debug(&quot;Test using setPaint() and SVG_PAINTTYPE_NONE - d&quot;);
</span><span class="cx"> shouldThrow(&quot;fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', '', 'icc-color(myRGB, 0, 1, 2)')&quot;);
</span><span class="cx"> shouldBe(&quot;fillPaint.paintType&quot;, &quot;SVGPaint.SVG_PAINTTYPE_RGBCOLOR&quot;);
</span><del>-shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;#008000&quot;);
-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;rgb(0, 128, 0)&quot;);
+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> resetStyle();
</span><span class="cx"> 
</span><span class="cx"> debug(&quot;&quot;);
</span><span class="cx"> debug(&quot;Test using setPaint() and SVG_PAINTTYPE_NONE - e&quot;);
</span><span class="cx"> shouldThrow(&quot;fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, 'url(#foo)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)')&quot;);
</span><del>-shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;#008000&quot;);
-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;rgb(0, 128, 0)&quot;);
+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> debug(&quot;&quot;);
</span><span class="cx"> debug(&quot;Test using setPaint() and SVG_PAINTTYPE_URI - a&quot;);
</span><span class="cx"> shouldThrow(&quot;fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', '', '')&quot;);
</span><span class="cx"> shouldBe(&quot;fillPaint.paintType&quot;, &quot;SVGPaint.SVG_PAINTTYPE_RGBCOLOR&quot;);
</span><del>-shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;#008000&quot;);
-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;rgb(0, 128, 0)&quot;);
+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> debug(&quot;&quot;);
</span><span class="cx"> debug(&quot;Test using setPaint() and SVG_PAINTTYPE_URI - b&quot;);
</span><span class="cx"> shouldThrow(&quot;fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', 'rgb(0,128,128)', '')&quot;);
</span><span class="cx"> shouldBe(&quot;fillPaint.paintType&quot;, &quot;SVGPaint.SVG_PAINTTYPE_RGBCOLOR&quot;);
</span><del>-shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;#008000&quot;);
-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;rgb(0, 128, 0)&quot;);
+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> debug(&quot;&quot;);
</span><span class="cx"> debug(&quot;Test using setPaint() and SVG_PAINTTYPE_URI - c&quot;);
</span><span class="cx"> shouldThrow(&quot;fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', '', 'icc-color(myRGB, 0, 1, 2)')&quot;);
</span><span class="cx"> shouldBe(&quot;fillPaint.paintType&quot;, &quot;SVGPaint.SVG_PAINTTYPE_RGBCOLOR&quot;);
</span><del>-shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;#008000&quot;);
-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;rgb(0, 128, 0)&quot;);
+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> debug(&quot;&quot;);
</span><span class="cx"> debug(&quot;Test using setPaint() and SVG_PAINTTYPE_URI - d&quot;);
</span><span class="lines">@@ -139,8 +139,8 @@
</span><span class="cx"> shouldBe(&quot;fillPaint.paintType&quot;, &quot;SVGPaint.SVG_PAINTTYPE_RGBCOLOR&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;fillPaint.uri&quot;, &quot;&quot;);
</span><span class="cx"> checkFillColor(&quot;SVGColor.SVG_COLORTYPE_RGBCOLOR&quot;, 0, 128, 0);
</span><del>-shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;#008000&quot;);
-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;rgb(0, 128, 0)&quot;);
+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> resetStyle();
</span><span class="cx"> 
</span><span class="cx"> debug(&quot;&quot;);
</span><span class="lines">@@ -149,8 +149,8 @@
</span><span class="cx"> shouldBe(&quot;fillPaint.paintType&quot;, &quot;SVGPaint.SVG_PAINTTYPE_RGBCOLOR&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;fillPaint.uri&quot;, &quot;&quot;);
</span><span class="cx"> checkFillColor(&quot;SVGColor.SVG_COLORTYPE_RGBCOLOR&quot;, 0, 128, 0);
</span><del>-shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;#008000&quot;);
-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;rgb(0, 128, 0)&quot;);
+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> debug(&quot;&quot;);
</span><span class="cx"> debug(&quot;Test using setPaint() and SVG_PAINTTYPE_URI_NONE&quot;);
</span><span class="lines">@@ -158,8 +158,8 @@
</span><span class="cx"> shouldBe(&quot;fillPaint.paintType&quot;, &quot;SVGPaint.SVG_PAINTTYPE_RGBCOLOR&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;fillPaint.uri&quot;, &quot;&quot;);
</span><span class="cx"> checkFillColor(&quot;SVGColor.SVG_COLORTYPE_RGBCOLOR&quot;, 0, 128, 0);
</span><del>-shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;#008000&quot;);
-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;rgb(0, 128, 0)&quot;);
+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> debug(&quot;&quot;);
</span><span class="cx"> debug(&quot;Test using setPaint() and SVG_PAINTTYPE_URI_CURRENTCOLOR&quot;);
</span><span class="lines">@@ -167,8 +167,8 @@
</span><span class="cx"> shouldBe(&quot;fillPaint.paintType&quot;, &quot;SVGPaint.SVG_PAINTTYPE_RGBCOLOR&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;fillPaint.uri&quot;, &quot;&quot;);
</span><span class="cx"> checkFillColor(&quot;SVGColor.SVG_COLORTYPE_RGBCOLOR&quot;, 0, 128, 0);
</span><del>-shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;#008000&quot;);
-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;rgb(0, 128, 0)&quot;);
+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> debug(&quot;&quot;);
</span><span class="cx"> debug(&quot;Test using setPaint() and SVG_PAINTTYPE_URI_RGBCOLOR&quot;);
</span><span class="lines">@@ -176,8 +176,8 @@
</span><span class="cx"> shouldBe(&quot;fillPaint.paintType&quot;, &quot;SVGPaint.SVG_PAINTTYPE_RGBCOLOR&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;fillPaint.uri&quot;, &quot;&quot;);
</span><span class="cx"> checkFillColor(&quot;SVGColor.SVG_COLORTYPE_RGBCOLOR&quot;, 0, 128, 0);
</span><del>-shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;#008000&quot;);
-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;rgb(0, 128, 0)&quot;);
+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> debug(&quot;&quot;);
</span><span class="cx"> debug(&quot;Test using setPaint() and SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR&quot;);
</span><span class="lines">@@ -185,8 +185,8 @@
</span><span class="cx"> shouldBe(&quot;fillPaint.paintType&quot;, &quot;SVGPaint.SVG_PAINTTYPE_RGBCOLOR&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;fillPaint.uri&quot;, &quot;&quot;);
</span><span class="cx"> checkFillColor(&quot;SVGColor.SVG_COLORTYPE_RGBCOLOR&quot;, 0, 128, 0);
</span><del>-shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;#008000&quot;);
-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;rgb(0, 128, 0)&quot;);
+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> debug(&quot;&quot;);
</span><span class="cx"> debug(&quot;Test using setPaint() and SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR&quot;);
</span><span class="lines">@@ -194,8 +194,8 @@
</span><span class="cx"> shouldBe(&quot;fillPaint.paintType&quot;, &quot;SVGPaint.SVG_PAINTTYPE_RGBCOLOR&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;fillPaint.uri&quot;, &quot;&quot;);
</span><span class="cx"> checkFillColor(&quot;SVGColor.SVG_COLORTYPE_RGBCOLOR&quot;, 0, 128, 0);
</span><del>-shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;#008000&quot;);
-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;rgb(0, 128, 0)&quot;);
+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> debug(&quot;&quot;);
</span><span class="cx"> debug(&quot;Test using setPaint() and SVG_PAINTTYPE_CURRENTCOLOR&quot;);
</span><span class="lines">@@ -203,8 +203,8 @@
</span><span class="cx"> shouldBe(&quot;fillPaint.paintType&quot;, &quot;SVGPaint.SVG_PAINTTYPE_RGBCOLOR&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;fillPaint.uri&quot;, &quot;&quot;);
</span><span class="cx"> checkFillColor(&quot;SVGColor.SVG_COLORTYPE_RGBCOLOR&quot;, 0, 128, 0);
</span><del>-shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;#008000&quot;);
-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;rgb(0, 128, 0)&quot;);
+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> debug(&quot;&quot;);
</span><span class="cx"> debug(&quot;Test using setPaint() and SVG_PAINTTYPE_RGBCOLOR&quot;);
</span><span class="lines">@@ -212,8 +212,8 @@
</span><span class="cx"> shouldBe(&quot;fillPaint.paintType&quot;, &quot;SVGPaint.SVG_PAINTTYPE_RGBCOLOR&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;fillPaint.uri&quot;, &quot;&quot;);
</span><span class="cx"> checkFillColor(&quot;SVGColor.SVG_COLORTYPE_RGBCOLOR&quot;, 0, 128, 0);
</span><del>-shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;#008000&quot;);
-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;rgb(0, 128, 0)&quot;);
+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> debug(&quot;&quot;);
</span><span class="cx"> debug(&quot;Test using setUri()&quot;);
</span><span class="lines">@@ -221,7 +221,7 @@
</span><span class="cx"> shouldBe(&quot;fillPaint.paintType&quot;, &quot;SVGPaint.SVG_PAINTTYPE_RGBCOLOR&quot;);
</span><span class="cx"> shouldBeEqualToString(&quot;fillPaint.uri&quot;, &quot;&quot;);
</span><span class="cx"> checkFillColor(&quot;SVGColor.SVG_COLORTYPE_RGBCOLOR&quot;, 0, 128, 0);
</span><del>-shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;#008000&quot;);
-shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;#008000&quot;);
</del><ins>+shouldBeEqualToString(&quot;rectElement.style.fill&quot;, &quot;rgb(0, 128, 0)&quot;);
+shouldBeEqualToString(&quot;document.defaultView.getComputedStyle(rectElement).fill&quot;, &quot;rgb(0, 128, 0)&quot;);
</ins><span class="cx"> 
</span><span class="cx"> successfullyParsed = true;
</span></span></pre></div>
<a id="trunkLayoutTestssvgwebarchivesvgscriptsubresoucesexpectedwebarchive"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/svg/webarchive/svg-script-subresouces-expected.webarchive (189645 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/webarchive/svg-script-subresouces-expected.webarchive        2015-09-12 00:57:43 UTC (rev 189645)
+++ trunk/LayoutTests/svg/webarchive/svg-script-subresouces-expected.webarchive        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -10,7 +10,7 @@
</span><span class="cx">     if (window.testRunner)
</span><span class="cx">         testRunner.dumpDOMAsWebArchive();
</span><span class="cx">   &amp;lt;/script&amp;gt;
</span><del>-  &amp;lt;rect id=&quot;rect&quot; width=&quot;100&quot; height=&quot;100&quot; fill=&quot;red&quot; style=&quot;fill: #008000;&quot;/&amp;gt;
</del><ins>+  &amp;lt;rect id=&quot;rect&quot; width=&quot;100&quot; height=&quot;100&quot; fill=&quot;red&quot; style=&quot;fill: rgb(0, 128, 0);&quot;/&amp;gt;
</ins><span class="cx">   &amp;lt;script xlink:href=&quot;resources/svg-script-subresources.js&quot; type=&quot;text/ecmascript&quot;/&amp;gt;
</span><span class="cx"> &amp;lt;/svg&amp;gt;&lt;/string&gt;
</span><span class="cx">                 &lt;key&gt;WebResourceFrameName&lt;/key&gt;
</span></span></pre></div>
<a id="trunkLayoutTeststransitionssvgtransitionsexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/transitions/svg-transitions-expected.txt (189645 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/transitions/svg-transitions-expected.txt        2015-09-12 00:57:43 UTC (rev 189645)
+++ trunk/LayoutTests/transitions/svg-transitions-expected.txt        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -13,7 +13,7 @@
</span><span class="cx"> PASS - &quot;stroke-dasharray&quot; property for &quot;rect5&quot; element at 1s saw something close to: 20
</span><span class="cx"> PASS - &quot;stroke-width&quot; property for &quot;rect6&quot; element at 1s saw something close to: 15
</span><span class="cx"> PASS - &quot;stroke-dasharray&quot; property for &quot;rect6&quot; element at 1s saw something close to: 15,15,20,12.5,17.5,17.5
</span><del>-FAIL - &quot;fill&quot; property for &quot;rect7&quot; element at 1s expected: 0,0,127 but saw: url(#invalid) #0000ff
</del><ins>+FAIL - &quot;fill&quot; property for &quot;rect7&quot; element at 1s expected: 0,0,127 but saw: url(#invalid) rgb(0, 0, 255)
</ins><span class="cx"> PASS - &quot;stroke-dasharray&quot; property for &quot;rect7&quot; element at 1s saw something close to: none
</span><span class="cx"> PASS - &quot;stop-color&quot; property for &quot;stop1&quot; element at 1s saw something close to: 127,127,0
</span><span class="cx"> PASS - &quot;stop-opacity&quot; property for &quot;stop1&quot; element at 1s saw something close to: 0.75
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (189645 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-09-12 00:57:43 UTC (rev 189645)
+++ trunk/Source/WebCore/ChangeLog        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -1,3 +1,33 @@
</span><ins>+2015-09-11  Said Abou-Hallawa  &lt;sabouhallawa@apple.com&gt;
+
+        SVGColor custom text format is different from the CSS color custom text format
+        https://bugs.webkit.org/show_bug.cgi?id=148879
+
+        Reviewed by Daniel Bates.
+
+        Implement the serialization of a CSS color value as it is described in
+        &lt;https://drafts.csswg.org/cssom/#serializing-css-values&gt;. Add the new
+        function Color::cssText() which is refactored from the existing function
+        Color::serialized(). Use the new function for serializing the SVGColor
+        always and also for Color but only when the alpha component is not 1.
+
+        Test: svg/css/computed-style-rgb-color.html
+
+        * css/CSSPrimitiveValue.cpp:
+        (WebCore::CSSPrimitiveValue::formatNumberForCustomCSSText): Move the code
+        for serializing the color from this function to Color::cssText().
+        
+        * platform/graphics/Color.cpp:
+        (WebCore::Color::serialized): Call Color::cssText() if the alpha component
+        is not 1 and delete the repeated code. 
+        
+        (WebCore::Color::cssText):
+        * platform/graphics/Color.h: Add the new function to the header file.
+        
+        * svg/SVGColor.cpp:
+        (WebCore::SVGColor::customCSSText): Call Color::cssText() always instead
+        of calling Color::serialized() for serializing the SVGColor.
+
</ins><span class="cx"> 2015-09-11  Nan Wang  &lt;n_wang@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         AX: ARIA 1.1 @aria-current
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSPrimitiveValuecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSPrimitiveValue.cpp (189645 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSPrimitiveValue.cpp        2015-09-12 00:57:43 UTC (rev 189645)
+++ trunk/Source/WebCore/css/CSSPrimitiveValue.cpp        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -1098,33 +1098,7 @@
</span><span class="cx">         RGBA32 rgbColor = m_value.rgbcolor;
</span><span class="cx">         if (m_primitiveUnitType == CSS_PARSER_HEXCOLOR)
</span><span class="cx">             Color::parseHexColor(m_value.string, rgbColor);
</span><del>-        Color color(rgbColor);
-
-        Vector&lt;LChar&gt; result;
-        result.reserveInitialCapacity(32);
-        bool colorHasAlpha = color.hasAlpha();
-        if (colorHasAlpha)
-            result.append(&quot;rgba(&quot;, 5);
-        else
-            result.append(&quot;rgb(&quot;, 4);
-
-        appendNumber(result, static_cast&lt;unsigned char&gt;(color.red()));
-        result.append(&quot;, &quot;, 2);
-
-        appendNumber(result, static_cast&lt;unsigned char&gt;(color.green()));
-        result.append(&quot;, &quot;, 2);
-
-        appendNumber(result, static_cast&lt;unsigned char&gt;(color.blue()));
-        if (colorHasAlpha) {
-            result.append(&quot;, &quot;, 2);
-
-            NumberToStringBuffer buffer;
-            const char* alphaString = numberToFixedPrecisionString(color.alpha() / 255.0f, 6, buffer, true);
-            result.append(alphaString, strlen(alphaString));
-        }
-
-        result.append(')');
-        return String::adopt(result);
</del><ins>+        return Color(rgbColor).cssText();
</ins><span class="cx">     }
</span><span class="cx">     case CSS_PAIR:
</span><span class="cx">         return getPairValue()-&gt;cssText();
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsColorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/Color.cpp (189645 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/Color.cpp        2015-09-12 00:57:43 UTC (rev 189645)
+++ trunk/Source/WebCore/platform/graphics/Color.cpp        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -211,29 +211,37 @@
</span><span class="cx">         return builder.toString();
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    Vector&lt;LChar&gt; result;
-    result.reserveInitialCapacity(28);
-    const char commaSpace[] = &quot;, &quot;;
-    const char rgbaParen[] = &quot;rgba(&quot;;
</del><ins>+    return cssText();
+}
</ins><span class="cx"> 
</span><del>-    result.append(rgbaParen, 5);
-    appendNumber(result, red());
-    result.append(commaSpace, 2);
-    appendNumber(result, green());
-    result.append(commaSpace, 2);
-    appendNumber(result, blue());
-    result.append(commaSpace, 2);
</del><ins>+String Color::cssText() const
+{
+    StringBuilder builder;
+    builder.reserveCapacity(28);
+    bool colorHasAlpha = hasAlpha();
+    if (colorHasAlpha)
+        builder.appendLiteral(&quot;rgba(&quot;);
+    else
+        builder.appendLiteral(&quot;rgb(&quot;);
</ins><span class="cx"> 
</span><del>-    if (!alpha())
-        result.append('0');
-    else {
-        NumberToLStringBuffer buffer;
-        unsigned length = DecimalNumber(alpha() / 255.0).toStringDecimal(buffer, WTF::NumberToStringBufferLength);
-        result.append(buffer, length);
</del><ins>+    builder.appendNumber(static_cast&lt;unsigned char&gt;(red()));
+    builder.appendLiteral(&quot;, &quot;);
+
+    builder.appendNumber(static_cast&lt;unsigned char&gt;(green()));
+    builder.appendLiteral(&quot;, &quot;);
+
+
+    builder.appendNumber(static_cast&lt;unsigned char&gt;(blue()));
+    if (colorHasAlpha) {
+        builder.appendLiteral(&quot;, &quot;);
+
+        NumberToStringBuffer buffer;
+        bool shouldTruncateTrailingZeros = true;
+        builder.append(numberToFixedPrecisionString(alpha() / 255.0f, 6, buffer, shouldTruncateTrailingZeros));
</ins><span class="cx">     }
</span><del>-
-    result.append(')');
-    return String::adopt(result);
</del><ins>+        
+    builder.append(')');
+    return builder.toString();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> String Color::nameForRenderTreeAsText() const
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsColorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/Color.h (189645 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/Color.h        2015-09-12 00:57:43 UTC (rev 189645)
+++ trunk/Source/WebCore/platform/graphics/Color.h        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -93,9 +93,11 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     // Returns the color serialized according to HTML5
</span><del>-    // - http://www.whatwg.org/specs/web-apps/current-work/#serialization-of-a-color
</del><ins>+    // &lt;https://html.spec.whatwg.org/multipage/scripting.html#fill-and-stroke-styles&gt; (10 September 2015)
</ins><span class="cx">     WEBCORE_EXPORT String serialized() const;
</span><span class="cx"> 
</span><ins>+    String cssText() const;
+
</ins><span class="cx">     // Returns the color serialized as either #RRGGBB or #RRGGBBAA
</span><span class="cx">     // The latter format is not a valid CSS color, and should only be seen in DRT dumps.
</span><span class="cx">     String nameForRenderTreeAsText() const;
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGColorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGColor.cpp (189645 => 189646)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGColor.cpp        2015-09-12 00:57:43 UTC (rev 189645)
+++ trunk/Source/WebCore/svg/SVGColor.cpp        2015-09-12 01:51:56 UTC (rev 189646)
</span><span class="lines">@@ -79,10 +79,10 @@
</span><span class="cx">     case SVG_COLORTYPE_RGBCOLOR_ICCCOLOR:
</span><span class="cx">     case SVG_COLORTYPE_RGBCOLOR:
</span><span class="cx">         // FIXME: No ICC color support.
</span><del>-        return m_color.serialized();
</del><ins>+        return m_color.cssText();
</ins><span class="cx">     case SVG_COLORTYPE_CURRENTCOLOR:
</span><span class="cx">         if (m_color.isValid())
</span><del>-            return m_color.serialized();
</del><ins>+            return m_color.cssText();
</ins><span class="cx">         return &quot;currentColor&quot;;
</span><span class="cx">     }
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>