<!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>[179391] 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/179391">179391</a></dd>
<dt>Author</dt> <dd>darin@apple.com</dd>
<dt>Date</dt> <dd>2015-01-29 20:23:51 -0800 (Thu, 29 Jan 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove SVGUseElement.instanceRoot and all tests that depend on it
https://bugs.webkit.org/show_bug.cgi?id=141025

Reviewed by Anders Carlsson.

Source/WebCore:

* svg/SVGUseElement.cpp:
(WebCore::SVGUseElement::instanceRoot): Deleted.
* svg/SVGUseElement.h: Removed instanceRoot.
* svg/SVGUseElement.idl: Ditto.

LayoutTests:

* platform/gtk/TestExpectations: Removed expected failure for now-removed test.
* platform/ios-simulator-wk2/TestExpectations: Ditto.
* platform/mac/TestExpectations: Ditto.

* platform/gtk/svg/custom/use-elementInstance-event-target-expected.png: Removed.
* platform/gtk/svg/custom/use-elementInstance-event-target-expected.txt: Removed.
* platform/gtk/svg/custom/use-elementInstance-methods-expected.png: Removed.
* platform/gtk/svg/custom/use-elementInstance-methods-expected.txt: Removed.
* platform/ios-sim-deprecated/svg/custom/use-elementInstance-event-target-expected.txt: Removed.
* platform/ios-sim-deprecated/svg/custom/use-elementInstance-methods-expected.txt: Removed.
* platform/ios-simulator/svg/custom/use-elementInstance-event-target-expected.txt: Removed.
* platform/ios-simulator/svg/custom/use-elementInstance-methods-expected.txt: Removed.
* platform/mac-mountainlion/svg/custom/use-elementInstance-event-target-expected.txt: Removed.
* platform/mac-mountainlion/svg/custom/use-elementInstance-methods-expected.txt: Removed.
* platform/mac/svg/custom/use-elementInstance-event-target-expected.png: Removed.
* platform/mac/svg/custom/use-elementInstance-event-target-expected.txt: Removed.
* platform/mac/svg/custom/use-elementInstance-methods-expected.png: Removed.
* platform/mac/svg/custom/use-elementInstance-methods-expected.txt: Removed.
* svg/custom/element-instance-held-by-js-crash-expected.txt: Removed.
* svg/custom/element-instance-held-by-js-crash.svg: Removed.
* svg/custom/resources/use-instanceRoot-event-bubbling.js: Find element by id instead
of using use.instanceRoot.correspondingElement.
* svg/custom/resources/use-instanceRoot-event-listeners.js: Removed.
* svg/custom/use-crash-using-children-before-destroy.svg: Removed a line of code that
got at the instanceRoot. It's possible this test no longer has value, and if so, then
we could later delete it, but it does no harm.
* svg/custom/use-elementInstance-event-target.svg: Removed.
* svg/custom/use-elementInstance-methods.svg: Removed.
* svg/custom/use-instanceRoot-as-event-target-expected.txt: Removed.
* svg/custom/use-instanceRoot-as-event-target.xhtml: Removed.
* svg/custom/use-instanceRoot-event-listener-liveness-expected.txt: Removed.
* svg/custom/use-instanceRoot-event-listener-liveness.xhtml: Removed.
* svg/custom/use-instanceRoot-event-listeners-expected.txt: Removed.
* svg/custom/use-instanceRoot-event-listeners.xhtml: Removed.
* svg/custom/use-instanceRoot-modifications.svg: Removed the part of this that involved
the instanceRoot property. It's possible this test now has reduced value, and if so, we
could later delete it but it does no harm.
* svg/custom/use-instanceRoot-with-use-removed.svg: Removed the use of instanceRoot
and correspondingUseElement. Not certain this remains a useful test. Also converted line
endings to LF instead of CRLF.
* svg/custom/use-listener-append-crash.html: Get elements by id instead of instanceRoot.
* svg/custom/use-modify-target-container.svg: Ditto.
* svg/custom/use-modify-target-symbol.svg: Ditto.
* svg/custom/use-on-use-with-child-expected.txt: Updated since we don't dump an instance
tree any more.
* svg/custom/use-on-use-with-child.svg: Removed the part about dumping the instance tree,
and added in the part about dragging to make sure it doesn't crash.
* svg/dom/use-transform.svg: Get element by id instead of instanceRoot.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsplatformgtkTestExpectations">trunk/LayoutTests/platform/gtk/TestExpectations</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwk2TestExpectations">trunk/LayoutTests/platform/ios-simulator-wk2/TestExpectations</a></li>
<li><a href="#trunkLayoutTestsplatformmacTestExpectations">trunk/LayoutTests/platform/mac/TestExpectations</a></li>
<li><a href="#trunkLayoutTestssvgcustomresourcesuseinstanceRooteventbubblingjs">trunk/LayoutTests/svg/custom/resources/use-instanceRoot-event-bubbling.js</a></li>
<li><a href="#trunkLayoutTestssvgcustomusecrashusingchildrenbeforedestroysvg">trunk/LayoutTests/svg/custom/use-crash-using-children-before-destroy.svg</a></li>
<li><a href="#trunkLayoutTestssvgcustomuseinstanceRootmodificationssvg">trunk/LayoutTests/svg/custom/use-instanceRoot-modifications.svg</a></li>
<li><a href="#trunkLayoutTestssvgcustomuseinstanceRootwithuseremovedsvg">trunk/LayoutTests/svg/custom/use-instanceRoot-with-use-removed.svg</a></li>
<li><a href="#trunkLayoutTestssvgcustomuselistenerappendcrashhtml">trunk/LayoutTests/svg/custom/use-listener-append-crash.html</a></li>
<li><a href="#trunkLayoutTestssvgcustomusemodifytargetcontainersvg">trunk/LayoutTests/svg/custom/use-modify-target-container.svg</a></li>
<li><a href="#trunkLayoutTestssvgcustomusemodifytargetsymbolsvg">trunk/LayoutTests/svg/custom/use-modify-target-symbol.svg</a></li>
<li><a href="#trunkLayoutTestssvgcustomuseonusewithchildexpectedtxt">trunk/LayoutTests/svg/custom/use-on-use-with-child-expected.txt</a></li>
<li><a href="#trunkLayoutTestssvgcustomuseonusewithchildsvg">trunk/LayoutTests/svg/custom/use-on-use-with-child.svg</a></li>
<li><a href="#trunkLayoutTestssvgdomusetransformsvg">trunk/LayoutTests/svg/dom/use-transform.svg</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoresvgSVGUseElementcpp">trunk/Source/WebCore/svg/SVGUseElement.cpp</a></li>
<li><a href="#trunkSourceWebCoresvgSVGUseElementh">trunk/Source/WebCore/svg/SVGUseElement.h</a></li>
<li><a href="#trunkSourceWebCoresvgSVGUseElementidl">trunk/Source/WebCore/svg/SVGUseElement.idl</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsplatformgtksvgcustomuseelementInstanceeventtargetexpectedpng">trunk/LayoutTests/platform/gtk/svg/custom/use-elementInstance-event-target-expected.png</a></li>
<li><a href="#trunkLayoutTestsplatformgtksvgcustomuseelementInstanceeventtargetexpectedtxt">trunk/LayoutTests/platform/gtk/svg/custom/use-elementInstance-event-target-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformgtksvgcustomuseelementInstancemethodsexpectedpng">trunk/LayoutTests/platform/gtk/svg/custom/use-elementInstance-methods-expected.png</a></li>
<li><a href="#trunkLayoutTestsplatformgtksvgcustomuseelementInstancemethodsexpectedtxt">trunk/LayoutTests/platform/gtk/svg/custom/use-elementInstance-methods-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimdeprecatedsvgcustomuseelementInstanceeventtargetexpectedtxt">trunk/LayoutTests/platform/ios-sim-deprecated/svg/custom/use-elementInstance-event-target-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimdeprecatedsvgcustomuseelementInstancemethodsexpectedtxt">trunk/LayoutTests/platform/ios-sim-deprecated/svg/custom/use-elementInstance-methods-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorsvgcustomuseelementInstanceeventtargetexpectedtxt">trunk/LayoutTests/platform/ios-simulator/svg/custom/use-elementInstance-event-target-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorsvgcustomuseelementInstancemethodsexpectedtxt">trunk/LayoutTests/platform/ios-simulator/svg/custom/use-elementInstance-methods-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacsvgcustomuseelementInstanceeventtargetexpectedpng">trunk/LayoutTests/platform/mac/svg/custom/use-elementInstance-event-target-expected.png</a></li>
<li><a href="#trunkLayoutTestsplatformmacsvgcustomuseelementInstanceeventtargetexpectedtxt">trunk/LayoutTests/platform/mac/svg/custom/use-elementInstance-event-target-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacsvgcustomuseelementInstancemethodsexpectedpng">trunk/LayoutTests/platform/mac/svg/custom/use-elementInstance-methods-expected.png</a></li>
<li><a href="#trunkLayoutTestsplatformmacsvgcustomuseelementInstancemethodsexpectedtxt">trunk/LayoutTests/platform/mac/svg/custom/use-elementInstance-methods-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacmountainlionsvgcustomuseelementInstanceeventtargetexpectedtxt">trunk/LayoutTests/platform/mac-mountainlion/svg/custom/use-elementInstance-event-target-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformmacmountainlionsvgcustomuseelementInstancemethodsexpectedtxt">trunk/LayoutTests/platform/mac-mountainlion/svg/custom/use-elementInstance-methods-expected.txt</a></li>
<li><a href="#trunkLayoutTestssvgcustomelementinstanceheldbyjscrashexpectedtxt">trunk/LayoutTests/svg/custom/element-instance-held-by-js-crash-expected.txt</a></li>
<li><a href="#trunkLayoutTestssvgcustomelementinstanceheldbyjscrashsvg">trunk/LayoutTests/svg/custom/element-instance-held-by-js-crash.svg</a></li>
<li><a href="#trunkLayoutTestssvgcustomresourcesuseinstanceRooteventlistenersjs">trunk/LayoutTests/svg/custom/resources/use-instanceRoot-event-listeners.js</a></li>
<li><a href="#trunkLayoutTestssvgcustomuseelementInstanceeventtargetsvg">trunk/LayoutTests/svg/custom/use-elementInstance-event-target.svg</a></li>
<li><a href="#trunkLayoutTestssvgcustomuseelementInstancemethodssvg">trunk/LayoutTests/svg/custom/use-elementInstance-methods.svg</a></li>
<li><a href="#trunkLayoutTestssvgcustomuseinstanceRootaseventtargetexpectedtxt">trunk/LayoutTests/svg/custom/use-instanceRoot-as-event-target-expected.txt</a></li>
<li><a href="#trunkLayoutTestssvgcustomuseinstanceRootaseventtargetxhtml">trunk/LayoutTests/svg/custom/use-instanceRoot-as-event-target.xhtml</a></li>
<li><a href="#trunkLayoutTestssvgcustomuseinstanceRooteventlistenerlivenessexpectedtxt">trunk/LayoutTests/svg/custom/use-instanceRoot-event-listener-liveness-expected.txt</a></li>
<li><a href="#trunkLayoutTestssvgcustomuseinstanceRooteventlistenerlivenessxhtml">trunk/LayoutTests/svg/custom/use-instanceRoot-event-listener-liveness.xhtml</a></li>
<li><a href="#trunkLayoutTestssvgcustomuseinstanceRooteventlistenersexpectedtxt">trunk/LayoutTests/svg/custom/use-instanceRoot-event-listeners-expected.txt</a></li>
<li><a href="#trunkLayoutTestssvgcustomuseinstanceRooteventlistenersxhtml">trunk/LayoutTests/svg/custom/use-instanceRoot-event-listeners.xhtml</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/ChangeLog        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,3 +1,59 @@
</span><ins>+2015-01-29  Darin Adler  &lt;darin@apple.com&gt;
+
+        Remove SVGUseElement.instanceRoot and all tests that depend on it
+        https://bugs.webkit.org/show_bug.cgi?id=141025
+
+        Reviewed by Anders Carlsson.
+
+        * platform/gtk/TestExpectations: Removed expected failure for now-removed test.
+        * platform/ios-simulator-wk2/TestExpectations: Ditto.
+        * platform/mac/TestExpectations: Ditto.
+
+        * platform/gtk/svg/custom/use-elementInstance-event-target-expected.png: Removed.
+        * platform/gtk/svg/custom/use-elementInstance-event-target-expected.txt: Removed.
+        * platform/gtk/svg/custom/use-elementInstance-methods-expected.png: Removed.
+        * platform/gtk/svg/custom/use-elementInstance-methods-expected.txt: Removed.
+        * platform/ios-sim-deprecated/svg/custom/use-elementInstance-event-target-expected.txt: Removed.
+        * platform/ios-sim-deprecated/svg/custom/use-elementInstance-methods-expected.txt: Removed.
+        * platform/ios-simulator/svg/custom/use-elementInstance-event-target-expected.txt: Removed.
+        * platform/ios-simulator/svg/custom/use-elementInstance-methods-expected.txt: Removed.
+        * platform/mac-mountainlion/svg/custom/use-elementInstance-event-target-expected.txt: Removed.
+        * platform/mac-mountainlion/svg/custom/use-elementInstance-methods-expected.txt: Removed.
+        * platform/mac/svg/custom/use-elementInstance-event-target-expected.png: Removed.
+        * platform/mac/svg/custom/use-elementInstance-event-target-expected.txt: Removed.
+        * platform/mac/svg/custom/use-elementInstance-methods-expected.png: Removed.
+        * platform/mac/svg/custom/use-elementInstance-methods-expected.txt: Removed.
+        * svg/custom/element-instance-held-by-js-crash-expected.txt: Removed.
+        * svg/custom/element-instance-held-by-js-crash.svg: Removed.
+        * svg/custom/resources/use-instanceRoot-event-bubbling.js: Find element by id instead
+        of using use.instanceRoot.correspondingElement.
+        * svg/custom/resources/use-instanceRoot-event-listeners.js: Removed.
+        * svg/custom/use-crash-using-children-before-destroy.svg: Removed a line of code that
+        got at the instanceRoot. It's possible this test no longer has value, and if so, then
+        we could later delete it, but it does no harm.
+        * svg/custom/use-elementInstance-event-target.svg: Removed.
+        * svg/custom/use-elementInstance-methods.svg: Removed.
+        * svg/custom/use-instanceRoot-as-event-target-expected.txt: Removed.
+        * svg/custom/use-instanceRoot-as-event-target.xhtml: Removed.
+        * svg/custom/use-instanceRoot-event-listener-liveness-expected.txt: Removed.
+        * svg/custom/use-instanceRoot-event-listener-liveness.xhtml: Removed.
+        * svg/custom/use-instanceRoot-event-listeners-expected.txt: Removed.
+        * svg/custom/use-instanceRoot-event-listeners.xhtml: Removed.
+        * svg/custom/use-instanceRoot-modifications.svg: Removed the part of this that involved
+        the instanceRoot property. It's possible this test now has reduced value, and if so, we
+        could later delete it but it does no harm.
+        * svg/custom/use-instanceRoot-with-use-removed.svg: Removed the use of instanceRoot
+        and correspondingUseElement. Not certain this remains a useful test. Also converted line
+        endings to LF instead of CRLF.
+        * svg/custom/use-listener-append-crash.html: Get elements by id instead of instanceRoot.
+        * svg/custom/use-modify-target-container.svg: Ditto.
+        * svg/custom/use-modify-target-symbol.svg: Ditto.
+        * svg/custom/use-on-use-with-child-expected.txt: Updated since we don't dump an instance
+        tree any more.
+        * svg/custom/use-on-use-with-child.svg: Removed the part about dumping the instance tree,
+        and added in the part about dragging to make sure it doesn't crash.
+        * svg/dom/use-transform.svg: Get element by id instead of instanceRoot.
+
</ins><span class="cx"> 2015-01-29  Gyuyoung Kim  &lt;gyuyoung.kim@samsung.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Unreviewed EFL port gardening. Some tests have been passed since r172999 though,
</span></span></pre></div>
<a id="trunkLayoutTestsplatformgtkTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/gtk/TestExpectations (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/gtk/TestExpectations        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/platform/gtk/TestExpectations        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -542,8 +542,6 @@
</span><span class="cx"> 
</span><span class="cx"> webkit.org/b/86176 [ Debug ] ietestcenter/css3/valuesandunits/units-000.htm [ Crash ]
</span><span class="cx"> 
</span><del>-webkit.org/b/93812 [ Debug ] svg/custom/use-instanceRoot-as-event-target.xhtml [ Crash Pass ]
-
</del><span class="cx"> webkit.org/b/90957 [ Release ] js/dom/random-array-gc-stress.html [ Timeout Crash Pass ]
</span><span class="cx"> 
</span><span class="cx"> webkit.org/b/94458 [ Debug ] fast/events/message-port-context-destroyed.html [ Crash Pass ]
</span><span class="lines">@@ -694,8 +692,6 @@
</span><span class="cx"> webkit.org/b/94119 storage/websql/database-lock-after-reload.html [ Failure Pass ]
</span><span class="cx"> webkit.org/b/132283 storage/websql/read-transactions-running-concurrently.html [ Failure Pass ]
</span><span class="cx"> 
</span><del>-webkit.org/b/93812 [ Release ] svg/custom/use-instanceRoot-as-event-target.xhtml [ Pass Timeout ]
-
</del><span class="cx"> webkit.org/b/95430 fast/layers/scroll-no-visible-content-but-visible-descendant.html [ ImageOnlyFailure Pass ]
</span><span class="cx"> 
</span><span class="cx"> webkit.org/b/73409 fast/forms/textarea-placeholder-set-attribute.html [ ImageOnlyFailure Pass ]
</span></span></pre></div>
<a id="trunkLayoutTestsplatformgtksvgcustomuseelementInstanceeventtargetexpectedpng"></a>
<div class="binary"><h4>Deleted: trunk/LayoutTests/platform/gtk/svg/custom/use-elementInstance-event-target-expected.png</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkLayoutTestsplatformgtksvgcustomuseelementInstanceeventtargetexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/gtk/svg/custom/use-elementInstance-event-target-expected.txt (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/gtk/svg/custom/use-elementInstance-event-target-expected.txt        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/platform/gtk/svg/custom/use-elementInstance-event-target-expected.txt        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,18 +0,0 @@
</span><del>-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (0,0) size 480x360
-    RenderSVGHiddenContainer {defs} at (0,0) size 0x0
-      RenderSVGRect {rect} at (240,1) size 239x358 [fill={[type=SOLID] [color=#000000]}] [x=240.00] [y=1.00] [width=239.00] [height=358.00]
-    RenderSVGContainer {use} at (240,1) size 239x358
-      RenderSVGRect {rect} at (240,1) size 239x358 [fill={[type=SOLID] [color=#008000]}] [x=240.00] [y=1.00] [width=239.00] [height=358.00]
-    RenderSVGText {text} at (0,-14) size 216x17 contains 1 chunk(s)
-      RenderSVGInlineText {#text} at (0,0) size 216x17
-        chunk 1 text run 1 at (0.00,0.00) startOffset 0 endOffset 36 width 216.00: &quot;Click on the grey rectangle to start&quot;
-    RenderSVGText {text} at (0,-14) size 220x17 contains 1 chunk(s)
-      RenderSVGInlineText {#text} at (0,0) size 220x17
-        chunk 1 text run 1 at (0.00,0.00) startOffset 0 endOffset 32 width 220.00: &quot;Test for correspondingUseElement&quot;
-    RenderSVGText {text} at (0,-14) size 195x17 contains 1 chunk(s)
-      RenderSVGInlineText {#text} at (0,0) size 195x17
-        chunk 1 text run 1 at (0.00,0.00) startOffset 0 endOffset 29 width 195.00: &quot;Test for correspondingElement&quot;
-    RenderSVGRect {rect} at (0,0) size 480x360 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00]
</del></span></pre></div>
<a id="trunkLayoutTestsplatformgtksvgcustomuseelementInstancemethodsexpectedpng"></a>
<div class="binary"><h4>Deleted: trunk/LayoutTests/platform/gtk/svg/custom/use-elementInstance-methods-expected.png</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkLayoutTestsplatformgtksvgcustomuseelementInstancemethodsexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/gtk/svg/custom/use-elementInstance-methods-expected.txt (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/gtk/svg/custom/use-elementInstance-methods-expected.txt        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/platform/gtk/svg/custom/use-elementInstance-methods-expected.txt        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,16 +0,0 @@
</span><del>-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (0,0) size 480x360
-    RenderSVGHiddenContainer {defs} at (0,0) size 0x0
-      RenderSVGContainer {g} at (240,1) size 239x358
-        RenderSVGRect {rect} at (240,1) size 239x358 [fill={[type=SOLID] [color=#000000]}] [x=240.00] [y=1.00] [width=239.00] [height=358.00]
-        RenderSVGEllipse {circle} at (0,0) size 0x0 [fill={[type=SOLID] [color=#000000]}] [cx=240.00] [cy=1.00] [r=0.00]
-    RenderSVGText {text} at (100,36) size 77x17 contains 1 chunk(s)
-      RenderSVGInlineText {#text} at (0,0) size 77x17
-        chunk 1 text run 1 at (100.00,50.00) startOffset 0 endOffset 12 width 77.00: &quot;Test passed.&quot;
-    RenderSVGContainer {use} at (240,1) size 239x358
-      RenderSVGContainer {g} at (240,1) size 239x358
-        RenderSVGRect {rect} at (240,1) size 239x358 [fill={[type=SOLID] [color=#808080]}] [x=240.00] [y=1.00] [width=239.00] [height=358.00]
-        RenderSVGEllipse {circle} at (0,0) size 0x0 [fill={[type=SOLID] [color=#808080]}] [cx=240.00] [cy=1.00] [r=0.00]
-    RenderSVGRect {rect} at (0,0) size 480x360 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00]
</del></span></pre></div>
<a id="trunkLayoutTestsplatformiossimdeprecatedsvgcustomuseelementInstanceeventtargetexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/ios-sim-deprecated/svg/custom/use-elementInstance-event-target-expected.txt (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim-deprecated/svg/custom/use-elementInstance-event-target-expected.txt        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/platform/ios-sim-deprecated/svg/custom/use-elementInstance-event-target-expected.txt        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,18 +0,0 @@
</span><del>-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (0,0) size 480x360
-    RenderSVGHiddenContainer {defs} at (0,0) size 0x0
-      RenderSVGRect {rect} at (240,1) size 239x358 [fill={[type=SOLID] [color=#000000]}] [x=240.00] [y=1.00] [width=239.00] [height=358.00]
-    RenderSVGContainer {use} at (240,1) size 239x358
-      RenderSVGRect {rect} at (240,1) size 239x358 [fill={[type=SOLID] [color=#008000]}] [x=240.00] [y=1.00] [width=239.00] [height=358.00]
-    RenderSVGText {text} at (0,-15) size 222x19 contains 1 chunk(s)
-      RenderSVGInlineText {#text} at (0,0) size 222x18
-        chunk 1 text run 1 at (0.00,0.00) startOffset 0 endOffset 36 width 221.26: &quot;Click on the grey rectangle to start&quot;
-    RenderSVGText {text} at (0,-15) size 224x19 contains 1 chunk(s)
-      RenderSVGInlineText {#text} at (0,0) size 224x18
-        chunk 1 text run 1 at (0.00,0.00) startOffset 0 endOffset 32 width 223.93: &quot;Test for correspondingUseElement&quot;
-    RenderSVGText {text} at (0,-15) size 200x19 contains 1 chunk(s)
-      RenderSVGInlineText {#text} at (0,0) size 200x18
-        chunk 1 text run 1 at (0.00,0.00) startOffset 0 endOffset 29 width 199.05: &quot;Test for correspondingElement&quot;
-    RenderSVGRect {rect} at (0,0) size 480x360 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00]
</del></span></pre></div>
<a id="trunkLayoutTestsplatformiossimdeprecatedsvgcustomuseelementInstancemethodsexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/ios-sim-deprecated/svg/custom/use-elementInstance-methods-expected.txt (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim-deprecated/svg/custom/use-elementInstance-methods-expected.txt        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/platform/ios-sim-deprecated/svg/custom/use-elementInstance-methods-expected.txt        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,16 +0,0 @@
</span><del>-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (0,0) size 480x360
-    RenderSVGHiddenContainer {defs} at (0,0) size 0x0
-      RenderSVGContainer {g} at (240,1) size 239x358
-        RenderSVGRect {rect} at (240,1) size 239x358 [fill={[type=SOLID] [color=#000000]}] [x=240.00] [y=1.00] [width=239.00] [height=358.00]
-        RenderSVGEllipse {circle} at (0,0) size 0x0 [fill={[type=SOLID] [color=#000000]}] [cx=240.00] [cy=1.00] [r=0.00]
-    RenderSVGText {text} at (100,35) size 79x19 contains 1 chunk(s)
-      RenderSVGInlineText {#text} at (0,0) size 79x18
-        chunk 1 text run 1 at (100.00,50.00) startOffset 0 endOffset 12 width 78.20: &quot;Test passed.&quot;
-    RenderSVGContainer {use} at (240,1) size 239x358
-      RenderSVGContainer {g} at (240,1) size 239x358
-        RenderSVGRect {rect} at (240,1) size 239x358 [fill={[type=SOLID] [color=#808080]}] [x=240.00] [y=1.00] [width=239.00] [height=358.00]
-        RenderSVGEllipse {circle} at (0,0) size 0x0 [fill={[type=SOLID] [color=#808080]}] [cx=240.00] [cy=1.00] [r=0.00]
-    RenderSVGRect {rect} at (0,0) size 480x360 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00]
</del></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorsvgcustomuseelementInstanceeventtargetexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/ios-simulator/svg/custom/use-elementInstance-event-target-expected.txt (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/svg/custom/use-elementInstance-event-target-expected.txt        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/platform/ios-simulator/svg/custom/use-elementInstance-event-target-expected.txt        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,18 +0,0 @@
</span><del>-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (0,0) size 480x360
-    RenderSVGHiddenContainer {defs} at (0,0) size 0x0
-      RenderSVGRect {rect} at (240,1) size 239x358 [fill={[type=SOLID] [color=#000000]}] [x=240.00] [y=1.00] [width=239.00] [height=358.00]
-    RenderSVGContainer {use} at (240,1) size 239x358
-      RenderSVGRect {rect} at (240,1) size 239x358 [fill={[type=SOLID] [color=#008000]}] [x=240.00] [y=1.00] [width=239.00] [height=358.00]
-    RenderSVGText {text} at (0,-15) size 222x19 contains 1 chunk(s)
-      RenderSVGInlineText {#text} at (0,0) size 222x18
-        chunk 1 text run 1 at (0.00,0.00) startOffset 0 endOffset 36 width 221.26: &quot;Click on the grey rectangle to start&quot;
-    RenderSVGText {text} at (0,-15) size 224x19 contains 1 chunk(s)
-      RenderSVGInlineText {#text} at (0,0) size 224x18
-        chunk 1 text run 1 at (0.00,0.00) startOffset 0 endOffset 32 width 223.93: &quot;Test for correspondingUseElement&quot;
-    RenderSVGText {text} at (0,-15) size 200x19 contains 1 chunk(s)
-      RenderSVGInlineText {#text} at (0,0) size 200x18
-        chunk 1 text run 1 at (0.00,0.00) startOffset 0 endOffset 29 width 199.05: &quot;Test for correspondingElement&quot;
-    RenderSVGRect {rect} at (0,0) size 480x360 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00]
</del></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorsvgcustomuseelementInstancemethodsexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/ios-simulator/svg/custom/use-elementInstance-methods-expected.txt (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/svg/custom/use-elementInstance-methods-expected.txt        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/platform/ios-simulator/svg/custom/use-elementInstance-methods-expected.txt        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,16 +0,0 @@
</span><del>-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (0,0) size 480x360
-    RenderSVGHiddenContainer {defs} at (0,0) size 0x0
-      RenderSVGContainer {g} at (240,1) size 239x358
-        RenderSVGRect {rect} at (240,1) size 239x358 [fill={[type=SOLID] [color=#000000]}] [x=240.00] [y=1.00] [width=239.00] [height=358.00]
-        RenderSVGEllipse {circle} at (0,0) size 0x0 [fill={[type=SOLID] [color=#000000]}] [cx=240.00] [cy=1.00] [r=0.00]
-    RenderSVGText {text} at (100,35) size 79x19 contains 1 chunk(s)
-      RenderSVGInlineText {#text} at (0,0) size 79x18
-        chunk 1 text run 1 at (100.00,50.00) startOffset 0 endOffset 12 width 78.20: &quot;Test passed.&quot;
-    RenderSVGContainer {use} at (240,1) size 239x358
-      RenderSVGContainer {g} at (240,1) size 239x358
-        RenderSVGRect {rect} at (240,1) size 239x358 [fill={[type=SOLID] [color=#808080]}] [x=240.00] [y=1.00] [width=239.00] [height=358.00]
-        RenderSVGEllipse {circle} at (0,0) size 0x0 [fill={[type=SOLID] [color=#808080]}] [cx=240.00] [cy=1.00] [r=0.00]
-    RenderSVGRect {rect} at (0,0) size 480x360 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00]
</del></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwk2TestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-simulator-wk2/TestExpectations (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator-wk2/TestExpectations        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/TestExpectations        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -413,7 +413,6 @@
</span><span class="cx"> svg/custom/use-elementInstance-methods.svg
</span><span class="cx"> svg/custom/use-event-handler-on-referenced-element.svg
</span><span class="cx"> svg/custom/use-event-handler-on-use-element.svg
</span><del>-svg/custom/use-instanceRoot-as-event-target.xhtml
</del><span class="cx"> svg/custom/use-instanceRoot-event-bubbling.xhtml
</span><span class="cx"> svg/custom/use-instanceRoot-event-listeners.xhtml
</span><span class="cx"> svg/custom/use-move-to-offset.svg
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/TestExpectations (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/TestExpectations        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/platform/mac/TestExpectations        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -434,11 +434,6 @@
</span><span class="cx"> # Assertion failure in MessagePort::contextDestroyed, usually attributed to later tests
</span><span class="cx"> http/tests/security/MessagePort/event-listener-context.html [ Skip ]
</span><span class="cx"> 
</span><del>-# https://bugs.webkit.org/show_bug.cgi?id=93812
-# REGRESSION(r125251): It made svg/custom/use-instanceRoot-as-event-target.xhtml assert and flakey
-# ASSERTION FAILED: m_wrapper || !m_jsFunction
-svg/custom/use-instanceRoot-as-event-target.xhtml [ Skip ]
-
</del><span class="cx"> webkit.org/b/112620 [ Debug ] svg/custom/image-with-attr-change-after-delete-crash.html [ Crash Pass ]
</span><span class="cx"> 
</span><span class="cx"> # Assorted failures that need investigation
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacsvgcustomuseelementInstanceeventtargetexpectedpng"></a>
<div class="binary"><h4>Deleted: trunk/LayoutTests/platform/mac/svg/custom/use-elementInstance-event-target-expected.png</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacsvgcustomuseelementInstanceeventtargetexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/mac/svg/custom/use-elementInstance-event-target-expected.txt (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/svg/custom/use-elementInstance-event-target-expected.txt        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/platform/mac/svg/custom/use-elementInstance-event-target-expected.txt        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,18 +0,0 @@
</span><del>-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (0,0) size 480x360
-    RenderSVGHiddenContainer {defs} at (0,0) size 0x0
-      RenderSVGRect {rect} at (240,1) size 239x358 [fill={[type=SOLID] [color=#000000]}] [x=240.00] [y=1.00] [width=239.00] [height=358.00]
-    RenderSVGContainer {use} at (240,1) size 239x358
-      RenderSVGRect {rect} at (240,1) size 239x358 [fill={[type=SOLID] [color=#008000]}] [x=240.00] [y=1.00] [width=239.00] [height=358.00]
-    RenderSVGText {text} at (0,-14) size 222x18 contains 1 chunk(s)
-      RenderSVGInlineText {#text} at (0,0) size 222x18
-        chunk 1 text run 1 at (0.00,0.00) startOffset 0 endOffset 36 width 221.26: &quot;Click on the grey rectangle to start&quot;
-    RenderSVGText {text} at (0,-14) size 224x18 contains 1 chunk(s)
-      RenderSVGInlineText {#text} at (0,0) size 224x18
-        chunk 1 text run 1 at (0.00,0.00) startOffset 0 endOffset 32 width 223.93: &quot;Test for correspondingUseElement&quot;
-    RenderSVGText {text} at (0,-14) size 200x18 contains 1 chunk(s)
-      RenderSVGInlineText {#text} at (0,0) size 200x18
-        chunk 1 text run 1 at (0.00,0.00) startOffset 0 endOffset 29 width 199.05: &quot;Test for correspondingElement&quot;
-    RenderSVGRect {rect} at (0,0) size 480x360 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00]
</del></span></pre></div>
<a id="trunkLayoutTestsplatformmacsvgcustomuseelementInstancemethodsexpectedpng"></a>
<div class="binary"><h4>Deleted: trunk/LayoutTests/platform/mac/svg/custom/use-elementInstance-methods-expected.png</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacsvgcustomuseelementInstancemethodsexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/mac/svg/custom/use-elementInstance-methods-expected.txt (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/svg/custom/use-elementInstance-methods-expected.txt        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/platform/mac/svg/custom/use-elementInstance-methods-expected.txt        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,16 +0,0 @@
</span><del>-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (0,0) size 480x360
-    RenderSVGHiddenContainer {defs} at (0,0) size 0x0
-      RenderSVGContainer {g} at (240,1) size 239x358
-        RenderSVGRect {rect} at (240,1) size 239x358 [fill={[type=SOLID] [color=#000000]}] [x=240.00] [y=1.00] [width=239.00] [height=358.00]
-        RenderSVGEllipse {circle} at (0,0) size 0x0 [fill={[type=SOLID] [color=#000000]}] [cx=240.00] [cy=1.00] [r=0.00]
-    RenderSVGText {text} at (100,36) size 79x18 contains 1 chunk(s)
-      RenderSVGInlineText {#text} at (0,0) size 79x18
-        chunk 1 text run 1 at (100.00,50.00) startOffset 0 endOffset 12 width 78.20: &quot;Test passed.&quot;
-    RenderSVGContainer {use} at (240,1) size 239x358
-      RenderSVGContainer {g} at (240,1) size 239x358
-        RenderSVGRect {rect} at (240,1) size 239x358 [fill={[type=SOLID] [color=#808080]}] [x=240.00] [y=1.00] [width=239.00] [height=358.00]
-        RenderSVGEllipse {circle} at (0,0) size 0x0 [fill={[type=SOLID] [color=#808080]}] [cx=240.00] [cy=1.00] [r=0.00]
-    RenderSVGRect {rect} at (0,0) size 480x360 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00]
</del></span></pre></div>
<a id="trunkLayoutTestsplatformmacmountainlionsvgcustomuseelementInstanceeventtargetexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/mac-mountainlion/svg/custom/use-elementInstance-event-target-expected.txt (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-mountainlion/svg/custom/use-elementInstance-event-target-expected.txt        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/platform/mac-mountainlion/svg/custom/use-elementInstance-event-target-expected.txt        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,18 +0,0 @@
</span><del>-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (0,0) size 480x360
-    RenderSVGHiddenContainer {defs} at (0,0) size 0x0
-      RenderSVGRect {rect} at (240,1) size 239x358 [fill={[type=SOLID] [color=#000000]}] [x=240.00] [y=1.00] [width=239.00] [height=358.00]
-    RenderSVGContainer {use} at (240,1) size 239x358
-      RenderSVGRect {rect} at (240,1) size 239x358 [fill={[type=SOLID] [color=#008000]}] [x=240.00] [y=1.00] [width=239.00] [height=358.00]
-    RenderSVGText {text} at (0,-14) size 216x18 contains 1 chunk(s)
-      RenderSVGInlineText {#text} at (0,0) size 216x18
-        chunk 1 text run 1 at (0.00,0.00) startOffset 0 endOffset 36 width 216.00: &quot;Click on the grey rectangle to start&quot;
-    RenderSVGText {text} at (0,-14) size 220x18 contains 1 chunk(s)
-      RenderSVGInlineText {#text} at (0,0) size 220x18
-        chunk 1 text run 1 at (0.00,0.00) startOffset 0 endOffset 32 width 220.00: &quot;Test for correspondingUseElement&quot;
-    RenderSVGText {text} at (0,-14) size 195x18 contains 1 chunk(s)
-      RenderSVGInlineText {#text} at (0,0) size 195x18
-        chunk 1 text run 1 at (0.00,0.00) startOffset 0 endOffset 29 width 195.00: &quot;Test for correspondingElement&quot;
-    RenderSVGRect {rect} at (0,0) size 480x360 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00]
</del></span></pre></div>
<a id="trunkLayoutTestsplatformmacmountainlionsvgcustomuseelementInstancemethodsexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/platform/mac-mountainlion/svg/custom/use-elementInstance-methods-expected.txt (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-mountainlion/svg/custom/use-elementInstance-methods-expected.txt        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/platform/mac-mountainlion/svg/custom/use-elementInstance-methods-expected.txt        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,16 +0,0 @@
</span><del>-layer at (0,0) size 800x600
-  RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
-  RenderSVGRoot {svg} at (0,0) size 480x360
-    RenderSVGHiddenContainer {defs} at (0,0) size 0x0
-      RenderSVGContainer {g} at (240,1) size 239x358
-        RenderSVGRect {rect} at (240,1) size 239x358 [fill={[type=SOLID] [color=#000000]}] [x=240.00] [y=1.00] [width=239.00] [height=358.00]
-        RenderSVGEllipse {circle} at (0,0) size 0x0 [fill={[type=SOLID] [color=#000000]}] [cx=240.00] [cy=1.00] [r=0.00]
-    RenderSVGText {text} at (100,36) size 77x18 contains 1 chunk(s)
-      RenderSVGInlineText {#text} at (0,0) size 77x18
-        chunk 1 text run 1 at (100.00,50.00) startOffset 0 endOffset 12 width 77.00: &quot;Test passed.&quot;
-    RenderSVGContainer {use} at (240,1) size 239x358
-      RenderSVGContainer {g} at (240,1) size 239x358
-        RenderSVGRect {rect} at (240,1) size 239x358 [fill={[type=SOLID] [color=#808080]}] [x=240.00] [y=1.00] [width=239.00] [height=358.00]
-        RenderSVGEllipse {circle} at (0,0) size 0x0 [fill={[type=SOLID] [color=#808080]}] [cx=240.00] [cy=1.00] [r=0.00]
-    RenderSVGRect {rect} at (0,0) size 480x360 [stroke={[type=SOLID] [color=#000000]}] [x=1.00] [y=1.00] [width=478.00] [height=358.00]
</del></span></pre></div>
<a id="trunkLayoutTestssvgcustomelementinstanceheldbyjscrashexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/svg/custom/element-instance-held-by-js-crash-expected.txt (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/custom/element-instance-held-by-js-crash-expected.txt        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/svg/custom/element-instance-held-by-js-crash-expected.txt        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,2 +0,0 @@
</span><del>-PASS - Null corresponding element dereference does not crash.
-
</del></span></pre></div>
<a id="trunkLayoutTestssvgcustomelementinstanceheldbyjscrashsvg"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/svg/custom/element-instance-held-by-js-crash.svg (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/custom/element-instance-held-by-js-crash.svg        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/svg/custom/element-instance-held-by-js-crash.svg        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,27 +0,0 @@
</span><del>-&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
-    &lt;script&gt;
-    &lt;![CDATA[
-    window.onload = function() {
-        // Grab a reference to an SVGElementInstance native object. This reference will prevent the
-        // object from deletion when the shadow DOM is removed due to a style change.
-        instance = document.getElementById(&quot;use_elem&quot;).instanceRoot;
-
-        // Setting an attribute forces re-creation of the shadow DOM
-        document.getElementById(&quot;circleID&quot;).setAttribute(&quot;cx&quot;, 30);
-
-        // The animate element tries to modify the element, which tries to update the
-        // instances in the circle, which crashes if it holds a pointer to a non-existent element.
-
-        if (window.testRunner)
-            testRunner.dumpAsText();
-    }
-    //]]&gt;
-    &lt;/script&gt;
-    &lt;circle transform=&quot;translate(1)&quot; id=&quot;circleID&quot; fill=&quot;green&quot; cy=&quot;15&quot; cx=&quot;15&quot; r=&quot;10&quot; &gt;
-        &lt;animate attributeName=&quot;cy&quot; /&gt;
-    &lt;/circle&gt;
-    &lt;text id=&quot;resultText&quot; y=&quot;20&quot; x=&quot;50&quot; &gt;
-      PASS - Null corresponding element dereference does not crash.
-    &lt;/text&gt;
-    &lt;use id=&quot;use_elem&quot; xlink:href=&quot;#circleID&quot; /&gt;
-&lt;/svg&gt;
</del></span></pre></div>
<a id="trunkLayoutTestssvgcustomresourcesuseinstanceRooteventbubblingjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/svg/custom/resources/use-instanceRoot-event-bubbling.js (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/custom/resources/use-instanceRoot-event-bubbling.js        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/svg/custom/resources/use-instanceRoot-event-bubbling.js        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -43,7 +43,7 @@
</span><span class="cx"> {
</span><span class="cx">     successfullyParsed = true;
</span><span class="cx"> 
</span><del>-    use.instanceRoot.correspondingElement.setAttribute(&quot;fill&quot;, &quot;green&quot;);
</del><ins>+    document.getElementById(&quot;rectParent&quot;).setAttribute(&quot;fill&quot;, &quot;green&quot;);
</ins><span class="cx">     shouldBeTrue(&quot;successfullyParsed&quot;);
</span><span class="cx">     debug('&lt;br /&gt;&lt;span class=&quot;pass&quot;&gt;TEST COMPLETE&lt;/span&gt;');
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestssvgcustomresourcesuseinstanceRooteventlistenersjs"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/svg/custom/resources/use-instanceRoot-event-listeners.js (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/custom/resources/use-instanceRoot-event-listeners.js        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/svg/custom/resources/use-instanceRoot-event-listeners.js        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,177 +0,0 @@
</span><del>-var counter = 0;
-var tests = 8;
-var expected = &quot;&quot;;
-var logEvent = false;
-var rectElement = document.getElementById(&quot;target&quot;);
-var useElement = document.getElementById(&quot;test&quot;);
-description(&quot;Test attaching event listeners on SVG use elements in different ways: &quot;);
-
-function eventHandler(evt)
-{
-    if (logEvent) {
-        if (expected == evt.type)
-            debug(&quot;Test &quot; + counter + &quot; / &quot; + tests + &quot; PASSED&quot;);
-        else
-            debug(&quot;Test &quot; + counter + &quot; / &quot; + tests + &quot; FAILED (expected: '&quot; + expected + &quot;' actual: '&quot; + evt.type + &quot;')&quot;);
-    }
-
-    setTimeout(counter &lt; tests ? driveTests : finishTest, 0);
-}
-
-function finishTest()
-{
-    successfullyParsed = true;
-
-    useElement.instanceRoot.correspondingElement.setAttribute(&quot;fill&quot;, &quot;green&quot;);
-    shouldBeTrue(&quot;successfullyParsed&quot;);
-    debug('&lt;br /&gt;&lt;span class=&quot;pass&quot;&gt;TEST COMPLETE&lt;/span&gt;');
-
-    if (window.testRunner)
-        testRunner.notifyDone();
-}
-
-function recordMouseEvent(type)
-{
-    expected = type;
-    logEvent = true;
-
-    ++counter;
-    fireDelayedEvent();
-}
-
-function sendMouseEvent(type, increment)
-{
-    expected = type;
-    logEvent = false;
-    fireDelayedEvent();
-}
-
-function fireDelayedEvent()
-{
-    if (expected == &quot;mouseover&quot;)
-        eventSender.mouseMoveTo(50, 50);
-    else if (expected == &quot;mouseout&quot;)
-        eventSender.mouseMoveTo(115, 55);
-    else if (expected == &quot;mouseup&quot;) {
-        eventSender.mouseMoveTo(50, 50);
-        eventSender.mouseDown();
-        eventSender.mouseUp();
-    } else if (expected == &quot;mousedown&quot;) {
-        eventSender.mouseMoveTo(50, 50);
-        eventSender.mouseDown();
-        eventSender.mouseUp();
-    }
-}
-
-function testOne()
-{
-    // Install event listener on correspondingElement via setAttribute
-    useElement.instanceRoot.correspondingElement.setAttribute(&quot;onmouseover&quot;, &quot;eventHandler(evt)&quot;);
-    recordMouseEvent(&quot;mouseover&quot;);
-}
-
-function testTwo()
-{
-    // Install event listener on correspondingElement via onmouseout JS magic
-    useElement.instanceRoot.correspondingElement.onmouseout = eventHandler;
-    recordMouseEvent(&quot;mouseout&quot;);
-}
-
-function testThree()
-{
-    // Clean event listeners on different ways
-    useElement.instanceRoot.correspondingElement.removeAttribute(&quot;onmouseover&quot;);
-    useElement.instanceRoot.correspondingElement.onmouseout = 0;
-
-    // Verify they really got removed
-    sendMouseEvent(&quot;mouseover&quot;);
-    sendMouseEvent(&quot;mouseout&quot;);
-
-    // Verify the original listener still works
-    recordMouseEvent(&quot;mousedown&quot;);
-}
-
-function testFour()
-{
-    useElement.instanceRoot.correspondingElement.removeAttribute(&quot;onmousedown&quot;);
-
-    // Install event listener on the referenced element, without using the SVGElementInstance interface
-    rectElement.setAttribute(&quot;onmouseup&quot;, &quot;eventHandler(evt)&quot;);
-    recordMouseEvent(&quot;mouseup&quot;);
-}
-
-function testFive()
-{
-    rectElement.onmouseout = eventHandler;
-    recordMouseEvent(&quot;mouseout&quot;);
-}
-
-function testSix()
-{
-    useElement.instanceRoot.correspondingElement.onmouseout = null;
-    sendMouseEvent(&quot;mouseout&quot;);
-
-    useElement.instanceRoot.correspondingElement.removeAttribute('onmouseup');
-    sendMouseEvent(&quot;mouseup&quot;);
-
-    useElement.instanceRoot.correspondingElement.onmouseup = eventHandler;
-    recordMouseEvent(&quot;mouseup&quot;);
-}
-
-function testSeven()
-{
-    useElement.instanceRoot.addEventListener(&quot;mouseout&quot;, eventHandler, false);
-    recordMouseEvent(&quot;mouseout&quot;);
-}
-
-function testEight()
-{
-    useElement.instanceRoot.correspondingElement.addEventListener(&quot;mouseover&quot;, eventHandler, false);
-    recordMouseEvent(&quot;mouseover&quot;);
-}
-
-function testNine()
-{
-    rectElement.addEventListener(&quot;mousedown&quot;, eventHandler, false);
-    recordMouseEvent(&quot;mousedown&quot;);
-}
-
-function driveTests()
-{
-    switch (counter) {
-    case 0:
-        testOne();
-        break;
-    case 1:
-        testTwo();
-        break;
-    case 2:
-        testThree();
-        break;
-    case 3:
-        testFour();
-        break;
-    case 4:
-        testFive();
-        break;
-    case 5:
-        testSix();
-        break;
-    case 6:
-        testSeven();
-        break;
-    case 7:
-        testEight();
-        break;
-    }
-}
-
-function repaintTest() {
-    if (window.testRunner)
-        testRunner.waitUntilDone();
-
-    if (window.eventSender)
-        driveTests();
-    else
-        alert(&quot;This test must be run via DRT!&quot;);
-}
</del></span></pre></div>
<a id="trunkLayoutTestssvgcustomusecrashusingchildrenbeforedestroysvg"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/svg/custom/use-crash-using-children-before-destroy.svg (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/custom/use-crash-using-children-before-destroy.svg        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/svg/custom/use-crash-using-children-before-destroy.svg        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -3,7 +3,6 @@
</span><span class="cx">     &lt;g id=&quot;outer&quot;&gt;&lt;use id=&quot;a&quot;&gt;&lt;/use&gt;&lt;/g&gt;
</span><span class="cx">     &lt;use id=&quot;b&quot; xlink:href=&quot;#outer&quot; /&gt;
</span><span class="cx"> &lt;script&gt;&lt;![CDATA[
</span><del>-var useobj = document.getElementById(&quot;b&quot;).instanceRoot;
</del><span class="cx"> 
</span><span class="cx"> function test() {
</span><span class="cx">     var elem = document.getElementById(&quot;b&quot;);
</span><span class="lines">@@ -17,4 +16,4 @@
</span><span class="cx">     testRunner.dumpAsText();
</span><span class="cx"> }
</span><span class="cx"> ]]&gt;&lt;/script&gt;
</span><del>-&lt;/svg&gt;
</del><span class="cx">\ No newline at end of file
</span><ins>+&lt;/svg&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestssvgcustomuseelementInstanceeventtargetsvg"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/svg/custom/use-elementInstance-event-target.svg (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/custom/use-elementInstance-event-target.svg        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/svg/custom/use-elementInstance-event-target.svg        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,57 +0,0 @@
</span><del>-&lt;svg version=&quot;1.1&quot; baseProfile=&quot;basic&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; onload=&quot;runRepaintTest()&quot;&gt;
-  &lt;script xlink:href=&quot;../../fast/repaint/resources/repaint.js&quot;/&gt;
-  &lt;title&gt;Test for SVGElementInstance::correspondingElement and SVGElementInstance::correspondingUseElement&lt;/title&gt;
-
-  &lt;defs&gt;
-    &lt;rect id=&quot;reference&quot; x=&quot;240&quot; y=&quot;1&quot; width=&quot;239&quot; height=&quot;358&quot; /&gt;
-    &lt;script type=&quot;text/ecmascript&quot;&gt;
-    &lt;![CDATA[
-      function repaintTest() {
-          if (window.eventSender) {
-              testRunner.waitUntilDone();
-              eventSender.mouseMoveTo(250, 50);
-              eventSender.mouseDown();
-              eventSender.mouseUp();
-          }
-      }
-
-      function test (event) {
-        // get pointers to use and reference elements
-        var reference = document.getElementById('reference');
-        var use = document.getElementById('use');
-
-        // initialize the pass count and colors
-        var pass = 0;
-        var colors = ['red', 'orange', 'green'];
-
-        // event.target.correspondingUseElement test
-        if (event.target.correspondingUseElement == use) {
-          document.getElementById('assertion_1').setAttributeNS(null, 'fill', 'green');
-          pass++;
-        }
-
-        // event.target.correspondingElement test
-        if (event.target.correspondingElement == reference) {
-          document.getElementById('assertion_2').setAttributeNS(null, 'fill', 'green');
-          pass++;
-        }
-
-        // show the result
-        use.setAttributeNS(null, 'fill', colors[pass]);
-
-        if (window.testRunner)
-          testRunner.notifyDone();
-      }
-    ]]&gt;
-    &lt;/script&gt;
-  &lt;/defs&gt;
-
-  &lt;use id=&quot;use&quot; xlink:href=&quot;#reference&quot; onclick=&quot;test(evt)&quot; fill=&quot;grey&quot; /&gt;
-
-  &lt;text transform=&quot;translate(5,20)&quot;&gt;Click on the grey rectangle to start&lt;/text&gt;
-  &lt;text id=&quot;assertion_1&quot; fill=&quot;red&quot; transform=&quot;translate(5,80)&quot;&gt;Test for correspondingUseElement&lt;/text&gt;
-  &lt;text id=&quot;assertion_2&quot; fill=&quot;red&quot; transform=&quot;translate(5,110)&quot;&gt;Test for correspondingElement&lt;/text&gt;
-
-  &lt;rect id=&quot;test-frame&quot; x=&quot;1&quot; y=&quot;1&quot; width=&quot;478&quot; height=&quot;358&quot; fill=&quot;none&quot; stroke=&quot;#000&quot;/&gt;
-
-&lt;/svg&gt;
</del></span></pre></div>
<a id="trunkLayoutTestssvgcustomuseelementInstancemethodssvg"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/svg/custom/use-elementInstance-methods.svg (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/custom/use-elementInstance-methods.svg        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/svg/custom/use-elementInstance-methods.svg        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,70 +0,0 @@
</span><del>-&lt;svg version=&quot;1.1&quot; baseProfile=&quot;basic&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; onload=&quot;runRepaintTest()&quot;&gt;
-  &lt;script xlink:href=&quot;../../fast/repaint/resources/repaint.js&quot;/&gt;
-  &lt;defs&gt;
-     &lt;g id=&quot;reference&quot;&gt;
-         &lt;rect x=&quot;240&quot; y=&quot;1&quot; width=&quot;239&quot; height=&quot;358&quot; /&gt;
-         &lt;circle cx=&quot;240&quot; cy=&quot;1&quot; width=&quot;39&quot; height=&quot;58&quot; /&gt;
-     &lt;/g&gt;
-
-    &lt;script type=&quot;text/ecmascript&quot;&gt;
-    &lt;![CDATA[
-      function repaintTest() {
-          if (window.eventSender) {
-              testRunner.waitUntilDone();
-              eventSender.mouseMoveTo(250, 50);
-              eventSender.mouseDown();
-              eventSender.mouseUp();
-          }
-      }
-
-      function test (event) {
-        // get pointers to use and referenced elements
-        var container = document.getElementById('reference');
-        var rect = container.firstChild.nextSibling;
-        var circle = rect.nextSibling.nextSibling;
-        var use = document.getElementById('use');
-
-        // test all SVGElementInstance methods (except childNodes) 
-        var rectInstance = event.target;
-        var gInstance = rectInstance.parentNode;
-        var circleInstance = rectInstance.nextSibling;
-    
-        // Check wheter correspdoningElement is the &lt;rect&gt;, and wheter &lt;use&gt; is set correctly.
-        if (rectInstance.correspondingElement != rect) return;
-        if (rectInstance.correspondingUseElement != use) return;
-
-        // Our &lt;rect&gt; doesn't have children.
-        if (rectInstance.firstChild) return;
-        if (rectInstance.lastChild) return;
-
-        // Our &lt;rect&gt; SVGElementInstance has the &lt;g&gt; SVGElementInstance as parent node
-        if (!gInstance) return;
-        if (gInstance.correspondingElement != container) return;
-
-        // Our &lt;rect&gt; SVGElementInstance has no previous sibling
-        if (rectInstance.previousSibling) return;
-
-        // Our &lt;rect&gt; SVGElementInstance has the &lt;circle&gt; SVGElementInstance as next sibling
-        if (!circleInstance) return;
-        if (circleInstance.correspondingElement != circle) return;
-        if (rectInstance.nextSibling != circleInstance) return;
-
-        // Our &lt;g&gt; SVGElementInstance has no parent node, and &lt;rect&gt; as firstChild, &lt;circle&gt; as lastChild
-        if (gInstance.parentNode) return;
-        if (gInstance.firstChild != rectInstance) return;
-        if (gInstance.lastChild != circleInstance) return;
-
-        // Hopefully we pass :-)
-        document.getElementById(&quot;status&quot;).firstChild.nodeValue = &quot;Test passed.&quot;;
-
-        if (window.testRunner)
-            testRunner.notifyDone();
-      }
-    ]]&gt;
-    &lt;/script&gt;
-  &lt;/defs&gt;
-
-  &lt;text x=&quot;100&quot; y=&quot;50&quot; id=&quot;status&quot;&gt;Test failed.&lt;/text&gt;
-  &lt;use id=&quot;use&quot; xlink:href=&quot;#reference&quot; onclick=&quot;test(evt)&quot; fill=&quot;grey&quot; /&gt;
-  &lt;rect id=&quot;test-frame&quot; x=&quot;1&quot; y=&quot;1&quot; width=&quot;478&quot; height=&quot;358&quot; fill=&quot;none&quot; stroke=&quot;#000&quot;/&gt;
-&lt;/svg&gt;
</del></span></pre></div>
<a id="trunkLayoutTestssvgcustomuseinstanceRootaseventtargetexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/svg/custom/use-instanceRoot-as-event-target-expected.txt (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/custom/use-instanceRoot-as-event-target-expected.txt        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/svg/custom/use-instanceRoot-as-event-target-expected.txt        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,117 +0,0 @@
</span><del>-Test SVG use element specific event handling using SVGElementInstance:
-
-On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
-
-
-'useElement' is the original use element
-'rectElement' is the original element which gets cloned by the use element
-
-Test #1: Verify that the use element and the contained SVGElementInstance objects are valid
-
-PASS useElement.toString() is &quot;[object SVGUseElement]&quot;
-PASS useElement.instanceRoot.toString() is &quot;[object SVGElementInstance]&quot;
-PASS useElement.instanceRoot.correspondingElement.toString() is &quot;[object SVGRectElement]&quot;
-PASS useElement.instanceRoot.correspondingElement == rectElement is true
-PASS useElement.instanceRoot.correspondingUseElement.toString() is &quot;[object SVGUseElement]&quot;
-PASS useElement.instanceRoot.correspondingUseElement == useElement is true
-PASS typeof useElement.addEventListener is &quot;function&quot;
-PASS typeof useElement.removeEventListener is &quot;function&quot;
-PASS typeof useElement.dispatchEvent is &quot;function&quot;
-
-Test #2: Verify that events dispatched to the SVGElementInstance objects have correct target property values
-
-PASS currentEvent.toString() is &quot;[object MouseEvent]&quot;
-PASS currentEvent.type.toString() is &quot;mouseover&quot;
-PASS currentEvent.target.toString() is &quot;[object SVGElementInstance]&quot;
-PASS currentEvent.currentTarget.toString() is &quot;[object SVGElementInstance]&quot;
-PASS currentEvent.target.correspondingElement == rectElement is true
-PASS currentEvent.target.correspondingUseElement == useElement is true
-PASS currentEvent.currentTarget.correspondingElement == rectElement is true
-PASS currentEvent.currentTarget.correspondingUseElement == useElement is true
-PASS currentEvent.target == currentEvent.currentTarget is true
-PASS currentEvent.target.correspondingElement == currentEvent.currentTarget.correspondingElement is true
-PASS currentEvent.target.correspondingUseElement == currentEvent.currentTarget.correspondingUseElement is true
-
-Test #3: Verify that events dispatched by the user end up on the SVGElementInstance objects
-
-PASS currentEvent.toString() is &quot;[object MouseEvent]&quot;
-PASS currentEvent.type.toString() is &quot;mouseover&quot;
-PASS currentEvent.target.toString() is &quot;[object SVGElementInstance]&quot;
-PASS currentEvent.currentTarget.toString() is &quot;[object SVGElementInstance]&quot;
-PASS currentEvent.target.correspondingElement == rectElement is true
-PASS currentEvent.target.correspondingUseElement == useElement is true
-PASS currentEvent.currentTarget.correspondingElement == rectElement is true
-PASS currentEvent.currentTarget.correspondingUseElement == useElement is true
-PASS currentEvent.target == currentEvent.currentTarget is true
-PASS currentEvent.target.correspondingElement == currentEvent.currentTarget.correspondingElement is true
-PASS currentEvent.target.correspondingUseElement == currentEvent.currentTarget.correspondingUseElement is true
-
-Test #4: Verify that a click event got dispatched to the original tree as defined in the markup, when sent to the 'rectElement'
-
-PASS currentEvent.toString() is &quot;[object MouseEvent]&quot;
-PASS currentEvent.type.toString() is &quot;click&quot;
-PASS currentEvent.target.toString() is &quot;[object SVGRectElement]&quot;
-PASS currentEvent.currentTarget.toString() is &quot;[object SVGRectElement]&quot;
-PASS currentEvent.target == rectElement is true
-PASS currentEvent.currentTarget == rectElement is true
-PASS currentEvent.target == currentEvent.currentTarget is true
-
-Test #5: Verify that a click event got dispatched to the instance tree when sent to the 'useElement.instanceRoot' with an event listener attached to 'rectElement'
-
-PASS currentEvent.toString() is &quot;[object MouseEvent]&quot;
-PASS currentEvent.type.toString() is &quot;click&quot;
-PASS currentEvent.target.toString() is &quot;[object SVGElementInstance]&quot;
-PASS currentEvent.currentTarget.toString() is &quot;[object SVGElementInstance]&quot;
-PASS currentEvent.target.correspondingElement == rectElement is true
-PASS currentEvent.target.correspondingUseElement == useElement is true
-PASS currentEvent.currentTarget.correspondingElement == rectElement is true
-PASS currentEvent.currentTarget.correspondingUseElement == useElement is true
-PASS currentEvent.target == currentEvent.currentTarget is true
-PASS currentEvent.target.correspondingElement == currentEvent.currentTarget.correspondingElement is true
-PASS currentEvent.target.correspondingUseElement == currentEvent.currentTarget.correspondingUseElement is true
-
-Test #6: Verify that the original click event listener got removed and a new one attached is attached to the use root SVGElementInstance
-
-PASS currentEvent.toString() is &quot;[object MouseEvent]&quot;
-PASS currentEvent.type.toString() is &quot;click&quot;
-PASS currentEvent.target.toString() is &quot;[object SVGElementInstance]&quot;
-PASS currentEvent.currentTarget.toString() is &quot;[object SVGElementInstance]&quot;
-PASS currentEvent.target.correspondingElement == rectElement is true
-PASS currentEvent.target.correspondingUseElement == useElement is true
-PASS currentEvent.currentTarget.correspondingElement == rectElement is true
-PASS currentEvent.currentTarget.correspondingUseElement == useElement is true
-PASS currentEvent.target == currentEvent.currentTarget is true
-PASS currentEvent.target.correspondingElement == currentEvent.currentTarget.correspondingElement is true
-PASS currentEvent.target.correspondingUseElement == currentEvent.currentTarget.correspondingUseElement is true
-
-Test #7: Verify that the recreating the original click event listener dynamically worked and the event is still dispatched to the instance tree
-
-PASS currentEvent.toString() is &quot;[object MouseEvent]&quot;
-PASS currentEvent.type.toString() is &quot;click&quot;
-PASS currentEvent.target.toString() is &quot;[object SVGElementInstance]&quot;
-PASS currentEvent.currentTarget.toString() is &quot;[object SVGElementInstance]&quot;
-PASS currentEvent.target.correspondingElement == rectElement is true
-PASS currentEvent.target.correspondingUseElement == useElement is true
-PASS currentEvent.currentTarget.correspondingElement == rectElement is true
-PASS currentEvent.currentTarget.correspondingUseElement == useElement is true
-PASS currentEvent.target == currentEvent.currentTarget is true
-PASS currentEvent.target.correspondingElement == currentEvent.currentTarget.correspondingElement is true
-PASS currentEvent.target.correspondingUseElement == currentEvent.currentTarget.correspondingUseElement is true
-
-Test #8: Verify that the simulated click event got dispatched to the right target
-
-PASS currentEvent.toString() is &quot;[object MouseEvent]&quot;
-PASS currentEvent.type.toString() is &quot;click&quot;
-PASS currentEvent.target.toString() is &quot;[object SVGElementInstance]&quot;
-PASS currentEvent.currentTarget.toString() is &quot;[object SVGElementInstance]&quot;
-PASS currentEvent.target.correspondingElement == rectElement is true
-PASS currentEvent.target.correspondingUseElement == useElement is true
-PASS currentEvent.currentTarget.correspondingElement == rectElement is true
-PASS currentEvent.currentTarget.correspondingUseElement == useElement is true
-PASS currentEvent.target == currentEvent.currentTarget is true
-PASS currentEvent.target.correspondingElement == currentEvent.currentTarget.correspondingElement is true
-PASS currentEvent.target.correspondingUseElement == currentEvent.currentTarget.correspondingUseElement is true
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
</del></span></pre></div>
<a id="trunkLayoutTestssvgcustomuseinstanceRootaseventtargetxhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/svg/custom/use-instanceRoot-as-event-target.xhtml (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/custom/use-instanceRoot-as-event-target.xhtml        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/svg/custom/use-instanceRoot-as-event-target.xhtml        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,300 +0,0 @@
</span><del>-&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
-&lt;head&gt;
-&lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
-&lt;/head&gt;
-&lt;body onload=&quot;eventTestOne()&quot;&gt;
-
-&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; width=&quot;100px&quot; height=&quot;100px&quot;&gt;
-  &lt;defs&gt;
-      &lt;rect id=&quot;target&quot; fill=&quot;red&quot; width=&quot;100&quot; height=&quot;100&quot; onclick=&quot;eventHandler(evt)&quot;/&gt;
-  &lt;/defs&gt;
-  &lt;use id=&quot;test&quot; xlink:href=&quot;#target&quot;/&gt;
-&lt;/svg&gt;
-
-&lt;p id=&quot;description&quot;/&gt;
-&lt;div id=&quot;console&quot;/&gt;
-
-&lt;script&gt;
-// Setting up the testcase
-if (window.testRunner)
-    testRunner.waitUntilDone();
-
-var useElement = document.getElementById(&quot;test&quot;);
-var rectElement = document.getElementById(&quot;target&quot;);
-
-// Start test immediately, to see wheter instanceRoot is already available, as expected.
-description(&quot;Test SVG use element specific event handling using SVGElementInstance: &quot;);
-debug(&quot;'useElement' is the original use element&quot;);
-debug(&quot;'rectElement' is the original element which gets cloned by the use element&quot;);
-
-// Helper functions
-function eventHandler(evt)
-{
-    if (evt.type != nextEventType) {
-        debug(&quot;RECEIVED UNEXPECTED EVENT! shouldBe='&quot; + nextEventType + &quot;' was='&quot; + evt.type + &quot;'&quot;);
-        return;
-    }
-
-    currentEvent = evt;
-    nextEventType = &quot;not yet set&quot;;
-    eval(eventNotification);
-}
-
-function fireMouseOverEvent(newEventNotification)
-{
-    currentEvent = undefined;
-    nextEventType = &quot;mouseover&quot;;
-    eventNotification = newEventNotification;
-
-    if (window.eventSender) {
-        setTimeout(function() {
-            eventSender.mouseMoveTo(200, 200);
-            eventSender.mouseMoveTo(50, 50);
-        }, 0);
-    }
-}
-
-function fireMouseClickEvent(newEventNotification)
-{
-    currentEvent = undefined;
-    nextEventType = &quot;click&quot;;
-    eventNotification = newEventNotification;
-
-    if (window.eventSender) {
-        setTimeout(function() {
-            eventSender.mouseMoveTo(50, 50);
-            eventSender.mouseDown();
-            eventSender.mouseUp();
-        }, 0);
-    }
-}
-
-function fireSimulatedMouseOverEvent(newEventNotification, eventTarget)
-{
-    currentEvent = undefined;
-    nextEventType = &quot;mouseover&quot;;
-    eventNotification = newEventNotification;
-
-    var event = document.createEvent(&quot;MouseEvents&quot;);
-    event.initMouseEvent(nextEventType, true, true, document.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null);
-
-    eventTarget.dispatchEvent(event);
-}
-
-function fireSimulatedMouseClickEvent(newEventNotification, eventTarget)
-{
-    currentEvent = undefined;
-    nextEventType = &quot;click&quot;;
-    eventNotification = newEventNotification;
-
-    var event = document.createEvent(&quot;MouseEvents&quot;);
-    event.initMouseEvent(nextEventType, true, true, document.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null);
-
-    eventTarget.dispatchEvent(event);
-}
-
-function verifyEvent(evtString, targetString, currentTargetString)
-{
-    shouldBeEqualToString(&quot;currentEvent.toString()&quot;, &quot;[object MouseEvent]&quot;);
-    shouldBeEqualToString(&quot;currentEvent.type.toString()&quot;, evtString);
-    shouldBeEqualToString(&quot;currentEvent.target.toString()&quot;, targetString);
-    shouldBeEqualToString(&quot;currentEvent.currentTarget.toString()&quot;, currentTargetString);
-}
-
-function verifyMouseOverEvent()
-{
-    verifyEvent(&quot;mouseover&quot;, &quot;[object SVGElementInstance]&quot;, &quot;[object SVGElementInstance]&quot;);
-
-    shouldBeTrue(&quot;currentEvent.target.correspondingElement == rectElement&quot;);
-    shouldBeTrue(&quot;currentEvent.target.correspondingUseElement == useElement&quot;);
-    shouldBeTrue(&quot;currentEvent.currentTarget.correspondingElement == rectElement&quot;);
-    shouldBeTrue(&quot;currentEvent.currentTarget.correspondingUseElement == useElement&quot;);
-    shouldBeTrue(&quot;currentEvent.target == currentEvent.currentTarget&quot;);
-    shouldBeTrue(&quot;currentEvent.target.correspondingElement == currentEvent.currentTarget.correspondingElement&quot;);
-    shouldBeTrue(&quot;currentEvent.target.correspondingUseElement == currentEvent.currentTarget.correspondingUseElement&quot;);
-}
-
-function verifyClickEvent()
-{
-    verifyEvent(&quot;click&quot;, &quot;[object SVGElementInstance]&quot;, &quot;[object SVGElementInstance]&quot;);
-
-    shouldBeTrue(&quot;currentEvent.target.correspondingElement == rectElement&quot;);
-    shouldBeTrue(&quot;currentEvent.target.correspondingUseElement == useElement&quot;);
-    shouldBeTrue(&quot;currentEvent.currentTarget.correspondingElement == rectElement&quot;);
-    shouldBeTrue(&quot;currentEvent.currentTarget.correspondingUseElement == useElement&quot;);
-    shouldBeTrue(&quot;currentEvent.target == currentEvent.currentTarget&quot;);
-    shouldBeTrue(&quot;currentEvent.target.correspondingElement == currentEvent.currentTarget.correspondingElement&quot;);
-    shouldBeTrue(&quot;currentEvent.target.correspondingUseElement == currentEvent.currentTarget.correspondingUseElement&quot;);
-}
-
-function verifyClickEventOnReferenced()
-{
-    verifyEvent(&quot;click&quot;, &quot;[object SVGRectElement]&quot;, &quot;[object SVGRectElement]&quot;);
-
-    shouldBeTrue(&quot;currentEvent.target == rectElement&quot;);
-    shouldBeTrue(&quot;currentEvent.currentTarget == rectElement&quot;);
-    shouldBeTrue(&quot;currentEvent.target == currentEvent.currentTarget&quot;);
-}
-
-function checkEventListenerNotReachable()
-{
-    debug(&quot;&quot;);
-    debug(&quot;YOU SHOULD NOT SEE THIS TEXT. OTHERWHISE REMOVING EVENT LISTENERS FAILED!&quot;);
-    debug(&quot;&quot;);
-}
-
-// Event test sections
-function eventTestOne()
-{
-    debug(&quot;&quot;);
-    debug(&quot;Test #1: Verify that the use element and the contained SVGElementInstance objects are valid&quot;);
-    debug(&quot;&quot;);
-
-    shouldBeEqualToString(&quot;useElement.toString()&quot;, &quot;[object SVGUseElement]&quot;);
-    shouldBeEqualToString(&quot;useElement.instanceRoot.toString()&quot;, &quot;[object SVGElementInstance]&quot;);
-
-    shouldBeEqualToString(&quot;useElement.instanceRoot.correspondingElement.toString()&quot;, &quot;[object SVGRectElement]&quot;);
-    shouldBeTrue(&quot;useElement.instanceRoot.correspondingElement == rectElement&quot;);
-
-    shouldBeEqualToString(&quot;useElement.instanceRoot.correspondingUseElement.toString()&quot;, &quot;[object SVGUseElement]&quot;);
-    shouldBeTrue(&quot;useElement.instanceRoot.correspondingUseElement == useElement&quot;);
-
-    shouldBeEqualToString(&quot;typeof useElement.addEventListener&quot;, &quot;function&quot;);
-    shouldBeEqualToString(&quot;typeof useElement.removeEventListener&quot;, &quot;function&quot;);
-    shouldBeEqualToString(&quot;typeof useElement.dispatchEvent&quot;, &quot;function&quot;);
-
-    // Spec: An element and all its corresponding SVGElementInstance objects share an event
-    // listener list. The currentTarget attribute of the event can be used to determine through
-    // which object an event listener was invoked.
-    useElement.instanceRoot.addEventListener(&quot;mouseover&quot;, eventHandler, false);
-    fireMouseOverEvent(&quot;eventTestTwo()&quot;);
-}
-
-function eventTestTwo()
-{
-    debug(&quot;&quot;);
-    debug(&quot;Test #2: Verify that events dispatched to the SVGElementInstance objects have correct target property values&quot;);
-    debug(&quot;&quot;);
-
-    // Spec: The event handling for the non-exposed tree works as if the referenced element had been textually included as
-    // a deeply cloned child of the 'use' element, except that events are dispatched to the SVGElementInstance objects.
-    // The event's target and currentTarget attributes are set to the SVGElementInstance that corresponds to the target
-    // and current target elements in the referenced subtree. An event propagates through the exposed and non-exposed
-    // portions of the tree in the same manner as it would in the regular document tree: first going from the root element
-    // to the 'use' element and then through non-exposed tree elements in the capture phase, followed by the target phase
-    // at the target of the event, then bubbling back through non-exposed tree to the use element and then back through
-    // regular tree to the root element in bubbling phase.
-    verifyMouseOverEvent();
-
-    useElement.instanceRoot.removeEventListener(&quot;mouseover&quot;, eventHandler, false);
-    fireSimulatedMouseOverEvent(&quot;checkEventListenerNotReachable()&quot;, useElement.instanceRoot);
-    fireSimulatedMouseOverEvent(&quot;checkEventListenerNotReachable()&quot;, rectElement);
-    rectElement.addEventListener(&quot;mouseover&quot;, eventHandler, false);
-
-    fireMouseOverEvent(&quot;eventTestThree()&quot;);
-}
-
-function eventTestThree()
-{
-    debug(&quot;&quot;);
-    debug(&quot;Test #3: Verify that events dispatched by the user end up on the SVGElementInstance objects&quot;);
-    debug(&quot;&quot;);
-
-    verifyMouseOverEvent();
-
-    useElement.instanceRoot.removeEventListener(&quot;mouseover&quot;, eventHandler, false);
-    fireSimulatedMouseOverEvent(&quot;checkEventListenerNotReachable()&quot;, useElement.instanceRoot);
-    fireSimulatedMouseOverEvent(&quot;checkEventListenerNotReachable()&quot;, rectElement);
-    fireSimulatedMouseClickEvent(&quot;eventTestFour()&quot;, rectElement);
-}
-
-function eventTestFour()
-{
-    debug(&quot;&quot;);
-    debug(&quot;Test #4: Verify that a click event got dispatched to the original tree as defined in the markup, when sent to the 'rectElement'&quot;); 
-    debug(&quot;&quot;);
-
-    verifyClickEventOnReferenced();
-
-    fireSimulatedMouseClickEvent(&quot;eventTestFive()&quot;, useElement.instanceRoot);
-}
-
-function eventTestFive()
-{
-    debug(&quot;&quot;);
-    debug(&quot;Test #5: Verify that a click event got dispatched to the instance tree when sent to the 'useElement.instanceRoot' with an event listener attached to 'rectElement'&quot;); 
-    debug(&quot;&quot;);
-
-    verifyClickEvent();
-
-    // This tests a webkit specific quirk: removeAttribute() on the target element, causes us to reclone the shadow tree.
-    // All event listener mutations are synchronized with the shadow tree and do not cause reclones. So if we add the
-    // click event listener to the current instanceRoot, remove the existing click listener from markup and then fire
-    // a click event, we're sure that the shadow tree is recloned before the eventTestSix() function is executed.
-    // If eventTestSix() is reached, we've properly preserved the dynamically created click event listener after recloning.
-    useElement.instanceRoot.addEventListener(&quot;click&quot;, eventHandler, false);
-    rectElement.removeAttribute(&quot;onclick&quot;);
-
-    fireMouseClickEvent(&quot;eventTestSix()&quot;);
-}
-
-function eventTestSix()
-{
-    debug(&quot;&quot;);
-    debug(&quot;Test #6: Verify that the original click event listener got removed and a new one attached is attached to the use root SVGElementInstance&quot;);
-    debug(&quot;&quot;);
-
-    verifyClickEvent();
-
-    useElement.instanceRoot.removeEventListener(&quot;click&quot;, eventHandler, false);
-    fireSimulatedMouseClickEvent(&quot;checkEventListenerNotReachable()&quot;, useElement.instanceRoot);
-    fireSimulatedMouseClickEvent(&quot;checkEventListenerNotReachable()&quot;, rectElement);
-    rectElement.addEventListener(&quot;click&quot;, eventHandler, false);
-
-    fireMouseClickEvent(&quot;eventTestSeven()&quot;);
-}
-
-function eventTestSeven()
-{
-    debug(&quot;&quot;);
-    debug(&quot;Test #7: Verify that the recreating the original click event listener dynamically worked and the event is still dispatched to the instance tree&quot;);
-    debug(&quot;&quot;);
-
-    verifyClickEvent();
-
-    // Prepare for next tests
-    fireSimulatedMouseClickEvent(&quot;eventTestEight()&quot;, useElement.instanceRoot);
-}
-
-function eventTestEight()
-{
-    debug(&quot;&quot;);
-    debug(&quot;Test #8: Verify that the simulated click event got dispatched to the right target&quot;);
-    debug(&quot;&quot;);
-
-    verifyClickEvent();
-
-    // Cleanup
-    useElement.instanceRoot.removeEventListener(&quot;click&quot;, eventHandler, false);
-    fireSimulatedMouseClickEvent(&quot;checkEventListenerNotReachable()&quot;, useElement.instanceRoot);
-    fireSimulatedMouseClickEvent(&quot;checkEventListenerNotReachable()&quot;, rectElement);
-
-    // Indicate finish
-    rectElement.setAttribute(&quot;fill&quot;, &quot;green&quot;);
-
-    // Load test finishing script
-    var script = document.createElement('script');
-    script.onload = completeTest;
-    script.src = &quot;../../resources/js-test-post.js&quot;;
-    document.body.appendChild(script);
-}
-
-function completeTest()
-{
-    if (window.testRunner)
-        testRunner.notifyDone();
-}
-&lt;/script&gt;
-
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestssvgcustomuseinstanceRooteventlistenerlivenessexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/svg/custom/use-instanceRoot-event-listener-liveness-expected.txt (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/custom/use-instanceRoot-event-listener-liveness-expected.txt        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/svg/custom/use-instanceRoot-event-listener-liveness-expected.txt        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-Test passed
</del></span></pre></div>
<a id="trunkLayoutTestssvgcustomuseinstanceRooteventlistenerlivenessxhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/svg/custom/use-instanceRoot-event-listener-liveness.xhtml (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/custom/use-instanceRoot-event-listener-liveness.xhtml        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/svg/custom/use-instanceRoot-event-listener-liveness.xhtml        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,53 +0,0 @@
</span><del>-&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
-&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
-&lt;head&gt;
-&lt;/head&gt;
-&lt;body onload=&quot;startTest()&quot;&gt;
-
-&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; width=&quot;100px&quot; height=&quot;100px&quot;&gt;
-  &lt;defs&gt;
-      &lt;rect id=&quot;target&quot; fill=&quot;green&quot; width=&quot;100&quot; height=&quot;100&quot;/&gt;
-  &lt;/defs&gt;
-  &lt;use id=&quot;test&quot; xlink:href=&quot;#target&quot;/&gt;
-&lt;/svg&gt;
-
-&lt;div id=&quot;console&quot;&gt;Test failed&lt;/div&gt;
-
-&lt;script&gt;
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.waitUntilDone();
-}
-
-function eventHandler()
-{
-    var divElement = document.getElementById(&quot;console&quot;);
-    divElement.textContent = &quot;Test passed&quot;;
-
-    if (window.testRunner)
-        testRunner.notifyDone();
-}
-
-function fireSimulatedMouseClickEvent(eventTarget)
-{
-    var event = document.createEvent(&quot;MouseEvents&quot;);
-    event.initMouseEvent(&quot;click&quot;, true, true, document.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null);
-    eventTarget.dispatchEvent(event);
-}
-
-function startTest() {
-    var useElement = document.getElementById(&quot;test&quot;);
-
-    // No-op, as no listener is not yet registered
-    fireSimulatedMouseClickEvent(useElement.instanceRoot);
-
-    // Add listener
-    useElement.instanceRoot.addEventListener(&quot;click&quot;, eventHandler, false);
-
-    // Should fire immediately and finish the test
-    fireSimulatedMouseClickEvent(useElement.instanceRoot);
-}
-&lt;/script&gt;
-
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestssvgcustomuseinstanceRooteventlistenersexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/svg/custom/use-instanceRoot-event-listeners-expected.txt (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/custom/use-instanceRoot-event-listeners-expected.txt        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/svg/custom/use-instanceRoot-event-listeners-expected.txt        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,17 +0,0 @@
</span><del>-Test attaching event listeners on SVG use elements in different ways:
-
-On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
-
-
-Test 1 / 8 PASSED
-Test 2 / 8 PASSED
-Test 3 / 8 PASSED
-Test 4 / 8 PASSED
-Test 5 / 8 PASSED
-Test 6 / 8 PASSED
-Test 7 / 8 PASSED
-Test 8 / 8 PASSED
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
</del></span></pre></div>
<a id="trunkLayoutTestssvgcustomuseinstanceRooteventlistenersxhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/svg/custom/use-instanceRoot-event-listeners.xhtml (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/custom/use-instanceRoot-event-listeners.xhtml        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/svg/custom/use-instanceRoot-event-listeners.xhtml        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,20 +0,0 @@
</span><del>-&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
-&lt;head&gt;
-&lt;script&gt;window.enablePixelTesting = true;&lt;/script&gt;
-&lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
-&lt;script src=&quot;../../fast/repaint/resources/repaint.js&quot;&gt;&lt;/script&gt;
-&lt;/head&gt;
-&lt;body onload=&quot;runRepaintTest()&quot;&gt;
-
-&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; width=&quot;150&quot; height=&quot;150&quot;&gt;
-  &lt;defs&gt;
-      &lt;rect id=&quot;target&quot; fill=&quot;red&quot; width=&quot;100&quot; height=&quot;100&quot; onmousedown=&quot;eventHandler(evt)&quot;/&gt;
-  &lt;/defs&gt;
-  &lt;use id=&quot;test&quot; xlink:href=&quot;#target&quot;/&gt;
-&lt;/svg&gt;
-
-&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
-&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
-&lt;script src=&quot;resources/use-instanceRoot-event-listeners.js&quot;&gt;&lt;/script&gt;
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestssvgcustomuseinstanceRootmodificationssvg"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/svg/custom/use-instanceRoot-modifications.svg (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/custom/use-instanceRoot-modifications.svg        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/svg/custom/use-instanceRoot-modifications.svg        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -16,13 +16,8 @@
</span><span class="cx"> &lt;script&gt;
</span><span class="cx"> function runInstanceRootTest() {
</span><span class="cx">     var useElement = document.getElementsByTagName(&quot;use&quot;)[1];
</span><del>-    if (useElement != useElement.instanceRoot.correspondingUseElement)
-        return;
</del><ins>+    var element = document.getElementById(&quot;g&quot;);
</ins><span class="cx"> 
</span><del>-    var element = useElement.instanceRoot.correspondingElement;
-    if (element != document.getElementById(&quot;g&quot;))
-        return;
-
</del><span class="cx">     // element.firstChild is a #text node! the next sibling gives the rect
</span><span class="cx">     var rect = element.firstChild.nextSibling;
</span><span class="cx">     if (rect != document.getElementById(&quot;rect&quot;))
</span></span></pre></div>
<a id="trunkLayoutTestssvgcustomuseinstanceRootwithuseremovedsvg"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/svg/custom/use-instanceRoot-with-use-removed.svg (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/custom/use-instanceRoot-with-use-removed.svg        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/svg/custom/use-instanceRoot-with-use-removed.svg        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,33 +1,31 @@
</span><del>-&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
-&lt;script&gt;
-&lt;![CDATA[
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.waitUntilDone();
-    gc = function(){window.GCController.collect()};
-} else if (!window.gc)
-    gc = function(){};
-
-window.onload = function(){
-    if (location.hash != &quot;#2&quot;) {
-        if (location.hash)
-            location.hash = &quot;#&quot; + (parseInt(location.hash.slice(1)) + 1).toString();
-        else
-            location.hash = &quot;#1&quot;;
-        var ir = document.getElementById(&quot;use1&quot;).instanceRoot;
-        ir.correspondingUseElement.parentElement.removeChild(ir.correspondingUseElement);
-        gc();
-        ir.correspondingUseElement;
-        setTimeout(function(){location.reload()},0);
-    } else {
-        document.getElementById(&quot;t1&quot;).appendChild(document.createTextNode(&quot;PASS: Successfully removed use element.&quot;));
-        if (window.testRunner)
-            testRunner.notifyDone();
-    }
-}
-//]]&gt;
-&lt;/script&gt;
-&lt;g id=&quot;g1&quot; /&gt;
-&lt;use xlink:href=&quot;#g1&quot; id=&quot;use1&quot; /&gt;
-&lt;text x=&quot;20&quot; y=&quot;20&quot; fill=&quot;green&quot; id=&quot;t1&quot;&gt;&lt;/text&gt;
-&lt;/svg&gt;
</del><ins>+&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
+&lt;script&gt;
+&lt;![CDATA[
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.waitUntilDone();
+    gc = function(){window.GCController.collect()};
+} else if (!window.gc)
+    gc = function(){};
+
+window.onload = function(){
+    if (location.hash != &quot;#2&quot;) {
+        if (location.hash)
+            location.hash = &quot;#&quot; + (parseInt(location.hash.slice(1)) + 1).toString();
+        else
+            location.hash = &quot;#1&quot;;
+        document.getElementById(&quot;use1&quot;).parentElement.removeChild(document.getElementById(&quot;use1&quot;));
+        gc();
+        setTimeout(function(){location.reload()},0);
+    } else {
+        document.getElementById(&quot;t1&quot;).appendChild(document.createTextNode(&quot;PASS: Successfully removed use element.&quot;));
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }
+}
+//]]&gt;
+&lt;/script&gt;
+&lt;g id=&quot;g1&quot; /&gt;
+&lt;use xlink:href=&quot;#g1&quot; id=&quot;use1&quot; /&gt;
+&lt;text x=&quot;20&quot; y=&quot;20&quot; fill=&quot;green&quot; id=&quot;t1&quot;&gt;&lt;/text&gt;
+&lt;/svg&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestssvgcustomuselistenerappendcrashhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/svg/custom/use-listener-append-crash.html (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/custom/use-listener-append-crash.html        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/svg/custom/use-listener-append-crash.html        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -13,8 +13,11 @@
</span><span class="cx">           if (window.testRunner)
</span><span class="cx">         testRunner.dumpAsText();
</span><span class="cx"> 
</span><ins>+    var leftSquare = document.getElementById(&quot;leftSquare&quot;);
+    var square = document.getElementById(&quot;square&quot;);
+
</ins><span class="cx">     leftSquare.addEventListener('mousedown', function() { leftSquare.parentNode.appendChild(leftSquare); });
</span><del>-    leftSquare.addEventListener('mousedown', function() { leftSquare.instanceRoot.correspondingElement.setAttribute(&quot;fill&quot;, &quot;green&quot;); });
</del><ins>+    leftSquare.addEventListener('mousedown', function() { square.setAttribute(&quot;fill&quot;, &quot;green&quot;); });
</ins><span class="cx"> 
</span><span class="cx">     if (window.eventSender) {
</span><span class="cx">         eventSender.mouseMoveTo(20, 20);
</span></span></pre></div>
<a id="trunkLayoutTestssvgcustomusemodifytargetcontainersvg"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/svg/custom/use-modify-target-container.svg (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/custom/use-modify-target-container.svg        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/svg/custom/use-modify-target-container.svg        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -14,9 +14,6 @@
</span><span class="cx"> &lt;text font-size=&quot;10&quot; id=&quot;text&quot; x=&quot;30&quot; y=&quot;70&quot;&gt;You should shapes _above_ this text&lt;/text&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;script&gt;
</span><del>-var useElement = document.getElementsByTagName(&quot;use&quot;)[1];
-var element = useElement.instanceRoot.correspondingElement;
-
-element.setAttribute(&quot;transform&quot;, &quot;&quot;);
</del><ins>+document.getElementById(&quot;g&quot;).setAttribute(&quot;transform&quot;, &quot;&quot;);
</ins><span class="cx"> &lt;/script&gt;
</span><span class="cx"> &lt;/svg&gt;
</span></span></pre></div>
<a id="trunkLayoutTestssvgcustomusemodifytargetsymbolsvg"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/svg/custom/use-modify-target-symbol.svg (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/custom/use-modify-target-symbol.svg        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/svg/custom/use-modify-target-symbol.svg        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -13,8 +13,6 @@
</span><span class="cx"> &lt;text font-size=&quot;10&quot; id=&quot;text&quot; x=&quot;30&quot; y=&quot;70&quot;&gt;You should shapes _above_ this text&lt;/text&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;script&gt;
</span><del>-var useElement = document.getElementsByTagName(&quot;use&quot;)[1];
-var element = useElement.instanceRoot.correspondingElement;
-element.removeAttribute(&quot;viewBox&quot;);
</del><ins>+document.getElementById(&quot;symbol&quot;).removeAttribute(&quot;viewBox&quot;);
</ins><span class="cx"> &lt;/script&gt;
</span><span class="cx"> &lt;/svg&gt;
</span></span></pre></div>
<a id="trunkLayoutTestssvgcustomuseonusewithchildexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/svg/custom/use-on-use-with-child-expected.txt (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/custom/use-on-use-with-child-expected.txt        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/svg/custom/use-on-use-with-child-expected.txt        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,6 +1 @@
</span><del>-The instance tree of use element zoomplus:
-
-     id = loupePlus  this = [object SVGElementInstance]  correspondingElement = [object SVGGElement]
-          id = useRim  this = [object SVGElementInstance]  correspondingElement = [object SVGUseElement]
-               id = rim  this = [object SVGElementInstance]  correspondingElement = [object SVGCircleElement]
-
</del><ins>+PASS if this did not crash
</ins></span></pre></div>
<a id="trunkLayoutTestssvgcustomuseonusewithchildsvg"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/svg/custom/use-on-use-with-child.svg (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/custom/use-on-use-with-child.svg        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/svg/custom/use-on-use-with-child.svg        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -14,38 +14,14 @@
</span><span class="cx">     &lt;/use&gt; 
</span><span class="cx">     &lt;foreignObject&gt;&lt;pre id=&quot;console&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;/&gt;&lt;/foreignObject&gt;
</span><span class="cx">     &lt;script&gt;
</span><del>-        function makeCrash(){
-            if (window.eventSender) {
-                eventSender.dragMode = false;
-                eventSender.mouseMoveTo(300, 300);
-                eventSender.mouseDown();
-                eventSender.mouseUp();
-            }
</del><ins>+        if (window.eventSender) {
+            eventSender.dragMode = false;
+            eventSender.mouseMoveTo(300, 300);
+            eventSender.mouseDown();
+            eventSender.mouseUp();
</ins><span class="cx">         }
</span><del>-        // If you like, you can make a crash.
-        // makeCrash();
-
-        var console = document.getElementById(&quot;console&quot;);
-        function println(string)
-        {
-            console.textContent += string + '\n';
-        }
-
-        function printInstanceTree( obj, indent )
-        {
-            indent += &quot;     &quot;;
-            println(indent + &quot;id = &quot; + obj.correspondingElement.id + &quot;  this = &quot; + obj + &quot;  correspondingElement = &quot; + obj.correspondingElement);
-            for (var m = obj.firstChild; m != null; m = m.nextSibling ) {
-                printInstanceTree(m, indent);
-            }
-        }
-        var useobj = document.getElementById(&quot;zoomplus&quot;).instanceRoot;
-        println(&quot;The instance tree of use element zoomplus:\n&quot;);
-        printInstanceTree(useobj,&quot;&quot;);
-
-        if (window.testRunner){
</del><ins>+        var console = document.getElementById(&quot;console&quot;).textContent = &quot;PASS if this did not crash&quot;;
+        if (window.testRunner)
</ins><span class="cx">             testRunner.dumpAsText();
</span><del>-        }
-
</del><span class="cx">   &lt;/script&gt;
</span><span class="cx"> &lt;/svg&gt; 
</span></span></pre></div>
<a id="trunkLayoutTestssvgdomusetransformsvg"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/svg/dom/use-transform.svg (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/svg/dom/use-transform.svg        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/LayoutTests/svg/dom/use-transform.svg        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -31,11 +31,8 @@
</span><span class="cx">    &lt;script&gt; 
</span><span class="cx">  //
</span><span class="cx"> 
</span><del>-var useElement = document.getElementsByTagName(&quot;use&quot;)[1];
-var element = useElement.instanceRoot.correspondingElement;
</del><ins>+document.getElementById(&quot;g&quot;).setAttribute(&quot;transform&quot;, &quot;&quot;);
</ins><span class="cx"> 
</span><del>-element.setAttribute(&quot;transform&quot;, &quot;&quot;);
-
</del><span class="cx"> if (window.testRunner)
</span><span class="cx">   testRunner.dumpAsText();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/Source/WebCore/ChangeLog        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2015-01-29  Darin Adler  &lt;darin@apple.com&gt;
+
+        Remove SVGUseElement.instanceRoot and all tests that depend on it
+        https://bugs.webkit.org/show_bug.cgi?id=141025
+
+        Reviewed by Anders Carlsson.
+
+        * svg/SVGUseElement.cpp:
+        (WebCore::SVGUseElement::instanceRoot): Deleted.
+        * svg/SVGUseElement.h: Removed instanceRoot.
+        * svg/SVGUseElement.idl: Ditto.
+
</ins><span class="cx"> 2015-01-29  Tim Horton  &lt;timothy_horton@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Fix the build with newer Clang.
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGUseElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGUseElement.cpp (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGUseElement.cpp        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/Source/WebCore/svg/SVGUseElement.cpp        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -104,18 +104,6 @@
</span><span class="cx">     clearResourceReferences();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-SVGElementInstance* SVGUseElement::instanceRoot()
-{
-    // If there is no element instance tree, force immediate SVGElementInstance tree
-    // creation by asking the document to invoke our recalcStyle function - as we can't
-    // wait for the lazy creation to happen if e.g. JS wants to access the instanceRoot
-    // object right after creating the element on-the-fly
-    if (!m_targetElementInstance)
-        document().updateLayoutIgnorePendingStylesheets();
-
-    return m_targetElementInstance.get();
-}
-
</del><span class="cx"> bool SVGUseElement::isSupportedAttribute(const QualifiedName&amp; attrName)
</span><span class="cx"> {
</span><span class="cx">     static NeverDestroyed&lt;HashSet&lt;QualifiedName&gt;&gt; supportedAttributes;
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGUseElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGUseElement.h (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGUseElement.h        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/Source/WebCore/svg/SVGUseElement.h        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -45,7 +45,6 @@
</span><span class="cx">     static Ref&lt;SVGUseElement&gt; create(const QualifiedName&amp;, Document&amp;, bool wasInsertedByParser);
</span><span class="cx">     virtual ~SVGUseElement();
</span><span class="cx"> 
</span><del>-    SVGElementInstance* instanceRoot();
</del><span class="cx">     SVGElementInstance* instanceForShadowTreeElement(Node*) const;
</span><span class="cx">     void invalidateShadowTree();
</span><span class="cx">     void invalidateDependentShadowTrees();
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGUseElementidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGUseElement.idl (179390 => 179391)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGUseElement.idl        2015-01-30 04:02:25 UTC (rev 179390)
+++ trunk/Source/WebCore/svg/SVGUseElement.idl        2015-01-30 04:23:51 UTC (rev 179391)
</span><span class="lines">@@ -28,8 +28,6 @@
</span><span class="cx">     readonly attribute SVGAnimatedLength y;
</span><span class="cx">     readonly attribute SVGAnimatedLength width;
</span><span class="cx">     readonly attribute SVGAnimatedLength height;
</span><del>-
-    readonly attribute SVGElementInstance instanceRoot;
</del><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> SVGUseElement implements SVGExternalResourcesRequired;
</span></span></pre>
</div>
</div>

</body>
</html>