<!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>[167778] tags/Safari-538.31</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/167778">167778</a></dd>
<dt>Author</dt> <dd>matthew_hanson@apple.com</dd>
<dt>Date</dt> <dd>2014-04-24 15:24:41 -0700 (Thu, 24 Apr 2014)</dd>
</dl>
<h3>Log Message</h3>
<pre>Rollout <a href="http://trac.webkit.org/projects/webkit/changeset/167689">r167689</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#tagsSafari53831LayoutTestsChangeLog">tags/Safari-538.31/LayoutTests/ChangeLog</a></li>
<li><a href="#tagsSafari53831SourceWebCoreChangeLog">tags/Safari-538.31/Source/WebCore/ChangeLog</a></li>
<li><a href="#tagsSafari53831SourceWebCoredomEventDispatchercpp">tags/Safari-538.31/Source/WebCore/dom/EventDispatcher.cpp</a></li>
</ul>
<h3>Removed Paths</h3>
<ul>
<li><a href="#tagsSafari53831LayoutTestsfasteventsshadoweventpathexpectedtxt">tags/Safari-538.31/LayoutTests/fast/events/shadow-event-path-expected.txt</a></li>
<li><a href="#tagsSafari53831LayoutTestsfasteventsshadoweventpathhtml">tags/Safari-538.31/LayoutTests/fast/events/shadow-event-path.html</a></li>
<li><a href="#tagsSafari53831LayoutTestsplatformmacwk2fasteventsshadoweventpathexpectedtxt">tags/Safari-538.31/LayoutTests/platform/mac-wk2/fast/events/shadow-event-path-expected.txt</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="tagsSafari53831LayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: tags/Safari-538.31/LayoutTests/ChangeLog (167777 => 167778)</h4>
<pre class="diff"><span>
<span class="info">--- tags/Safari-538.31/LayoutTests/ChangeLog        2014-04-24 22:14:14 UTC (rev 167777)
+++ tags/Safari-538.31/LayoutTests/ChangeLog        2014-04-24 22:24:41 UTC (rev 167778)
</span><span class="lines">@@ -167,24 +167,6 @@
</span><span class="cx">
</span><span class="cx"> 2014-04-22 Ryosuke Niwa <rniwa@webkit.org>
</span><span class="cx">
</span><del>- REGRESSION (r157328): popover to check into flight ba.com dismisses instantly when focusing form
- https://bugs.webkit.org/show_bug.cgi?id=131949
-
- Reviewed by Darin Adler.
-
- Add a test that dumps the event target and the related target of every mouse event
- when dispatched inside an input element inside a details element.
-
- This catches the regression as well as other bugs I encountered while fixing the bug.
-
- We need a WK2 specific results because WK1 mac results contain an extra fake mouse move event.
-
- * fast/events/shadow-event-path-expected.txt: Added.
- * fast/events/shadow-event-path.html: Added.
- * platform/mac-wk2/fast/events/shadow-event-expected.txt: Added.
-
-2014-04-22 Ryosuke Niwa <rniwa@webkit.org>
-
</del><span class="cx"> Rollout r156635 since the old behavior was intentional.
</span><span class="cx">
</span><span class="cx"> * editing/caret/selection-with-caret-type-progress-expected.txt: Removed.
</span></span></pre></div>
<a id="tagsSafari53831LayoutTestsfasteventsshadoweventpathexpectedtxt"></a>
<div class="delfile"><h4>Deleted: tags/Safari-538.31/LayoutTests/fast/events/shadow-event-path-expected.txt (167777 => 167778)</h4>
<pre class="diff"><span>
<span class="info">--- tags/Safari-538.31/LayoutTests/fast/events/shadow-event-path-expected.txt        2014-04-24 22:14:14 UTC (rev 167777)
+++ tags/Safari-538.31/LayoutTests/fast/events/shadow-event-path-expected.txt        2014-04-24 22:24:41 UTC (rev 167778)
</span><span class="lines">@@ -1,338 +0,0 @@
</span><del>-This test records target and relatedTarget at each element while dispatching a mouse click event at an input element.
-
-
-Content:<div id="detailsContainer"><details><summary><div id="divInsideSummary"><input id="target" type="text" size="10"></div></summary></details></div>
-
-mouseover@input#target
- target:input#target
- relatedTarget:null
-
-mouseover@div#divInsideSummary
- target:input#target
- relatedTarget:null
-
-mouseover@summary
- target:input#target
- relatedTarget:null
-
-mouseover@details
- target:input#target
- relatedTarget:null
-
-mouseover@div#detailsContainer
- target:input#target
- relatedTarget:null
-
-mouseover@body
- target:input#target
- relatedTarget:null
-
-mouseover@html
- target:input#target
- relatedTarget:null
-
-mouseover@document
- target:input#target
- relatedTarget:null
-
-mouseover@window
- target:input#target
- relatedTarget:null
-
-mouseenter@input#target
- target:input#target
- relatedTarget:null
-
-mouseenter@div#divInsideSummary
- target:div#divInsideSummary
- relatedTarget:null
-
-mouseenter@summary
- target:summary
- relatedTarget:null
-
-mouseenter@details
- target:details
- relatedTarget:null
-
-mouseenter@div#detailsContainer
- target:div#detailsContainer
- relatedTarget:null
-
-mouseenter@body
- target:body
- relatedTarget:null
-
-mouseenter@html
- target:html
- relatedTarget:null
-
-mousemove@input#target
- target:input#target
- relatedTarget:null
-
-mousemove@div#divInsideSummary
- target:input#target
- relatedTarget:null
-
-mousemove@summary
- target:input#target
- relatedTarget:null
-
-mousemove@details
- target:input#target
- relatedTarget:null
-
-mousemove@div#detailsContainer
- target:input#target
- relatedTarget:null
-
-mousemove@body
- target:input#target
- relatedTarget:null
-
-mousemove@html
- target:input#target
- relatedTarget:null
-
-mousemove@document
- target:input#target
- relatedTarget:null
-
-mousemove@window
- target:input#target
- relatedTarget:null
-
-mouseout@input#target
- target:input#target
- relatedTarget:div#divInsideSummary
-
-mouseout@div#divInsideSummary
- target:input#target
- relatedTarget:div#divInsideSummary
-
-mouseout@summary
- target:input#target
- relatedTarget:div#divInsideSummary
-
-mouseout@details
- target:input#target
- relatedTarget:div#divInsideSummary
-
-mouseout@div#detailsContainer
- target:input#target
- relatedTarget:div#divInsideSummary
-
-mouseout@body
- target:input#target
- relatedTarget:div#divInsideSummary
-
-mouseout@html
- target:input#target
- relatedTarget:div#divInsideSummary
-
-mouseout@document
- target:input#target
- relatedTarget:div#divInsideSummary
-
-mouseout@window
- target:input#target
- relatedTarget:div#divInsideSummary
-
-mouseleave@input#target
- target:input#target
- relatedTarget:div#divInsideSummary
-
-mouseover@div#divInsideSummary
- target:div#divInsideSummary
- relatedTarget:input#target
-
-mouseover@summary
- target:div#divInsideSummary
- relatedTarget:input#target
-
-mouseover@details
- target:div#divInsideSummary
- relatedTarget:input#target
-
-mouseover@div#detailsContainer
- target:div#divInsideSummary
- relatedTarget:input#target
-
-mouseover@body
- target:div#divInsideSummary
- relatedTarget:input#target
-
-mouseover@html
- target:div#divInsideSummary
- relatedTarget:input#target
-
-mouseover@document
- target:div#divInsideSummary
- relatedTarget:input#target
-
-mouseover@window
- target:div#divInsideSummary
- relatedTarget:input#target
-
-mousemove@div#divInsideSummary
- target:div#divInsideSummary
- relatedTarget:null
-
-mousemove@summary
- target:div#divInsideSummary
- relatedTarget:null
-
-mousemove@details
- target:div#divInsideSummary
- relatedTarget:null
-
-mousemove@div#detailsContainer
- target:div#divInsideSummary
- relatedTarget:null
-
-mousemove@body
- target:div#divInsideSummary
- relatedTarget:null
-
-mousemove@html
- target:div#divInsideSummary
- relatedTarget:null
-
-mousemove@document
- target:div#divInsideSummary
- relatedTarget:null
-
-mousemove@window
- target:div#divInsideSummary
- relatedTarget:null
-
-mousedown@div#divInsideSummary
- target:div#divInsideSummary
- relatedTarget:null
-
-mousedown@summary
- target:div#divInsideSummary
- relatedTarget:null
-
-mousedown@details
- target:div#divInsideSummary
- relatedTarget:null
-
-mousedown@div#detailsContainer
- target:div#divInsideSummary
- relatedTarget:null
-
-mousedown@body
- target:div#divInsideSummary
- relatedTarget:null
-
-mousedown@html
- target:div#divInsideSummary
- relatedTarget:null
-
-mousedown@document
- target:div#divInsideSummary
- relatedTarget:null
-
-mousedown@window
- target:div#divInsideSummary
- relatedTarget:null
-
-mouseup@div#divInsideSummary
- target:div#divInsideSummary
- relatedTarget:null
-
-mouseup@summary
- target:div#divInsideSummary
- relatedTarget:null
-
-mouseup@details
- target:div#divInsideSummary
- relatedTarget:null
-
-mouseup@div#detailsContainer
- target:div#divInsideSummary
- relatedTarget:null
-
-mouseup@body
- target:div#divInsideSummary
- relatedTarget:null
-
-mouseup@html
- target:div#divInsideSummary
- relatedTarget:null
-
-mouseup@document
- target:div#divInsideSummary
- relatedTarget:null
-
-mouseup@window
- target:div#divInsideSummary
- relatedTarget:null
-
-click@div#divInsideSummary
- target:div#divInsideSummary
- relatedTarget:null
-
-click@summary
- target:div#divInsideSummary
- relatedTarget:null
-
-click@details
- target:div#divInsideSummary
- relatedTarget:null
-
-click@div#detailsContainer
- target:div#divInsideSummary
- relatedTarget:null
-
-click@body
- target:div#divInsideSummary
- relatedTarget:null
-
-click@html
- target:div#divInsideSummary
- relatedTarget:null
-
-click@document
- target:div#divInsideSummary
- relatedTarget:null
-
-click@window
- target:div#divInsideSummary
- relatedTarget:null
-
-mousemove@div#divInsideSummary
- target:div#divInsideSummary
- relatedTarget:null
-
-mousemove@summary
- target:div#divInsideSummary
- relatedTarget:null
-
-mousemove@details
- target:div#divInsideSummary
- relatedTarget:null
-
-mousemove@div#detailsContainer
- target:div#divInsideSummary
- relatedTarget:null
-
-mousemove@body
- target:div#divInsideSummary
- relatedTarget:null
-
-mousemove@html
- target:div#divInsideSummary
- relatedTarget:null
-
-mousemove@document
- target:div#divInsideSummary
- relatedTarget:null
-
-mousemove@window
- target:div#divInsideSummary
- relatedTarget:null
-
-
</del></span></pre></div>
<a id="tagsSafari53831LayoutTestsfasteventsshadoweventpathhtml"></a>
<div class="delfile"><h4>Deleted: tags/Safari-538.31/LayoutTests/fast/events/shadow-event-path.html (167777 => 167778)</h4>
<pre class="diff"><span>
<span class="info">--- tags/Safari-538.31/LayoutTests/fast/events/shadow-event-path.html        2014-04-24 22:14:14 UTC (rev 167777)
+++ tags/Safari-538.31/LayoutTests/fast/events/shadow-event-path.html        2014-04-24 22:24:41 UTC (rev 167778)
</span><span class="lines">@@ -1,65 +0,0 @@
</span><del>-<!DOCTYPE html>
-<html>
-<body>
-<p>This test records target and relatedTarget at each element while dispatching a mouse click event at an input element.</p>
-<div id="detailsContainer"><details><summary><div id="divInsideSummary"><input id="target" type="text" size="10"></summary></div></detials></div>
-<pre id="log"></pre>
-<script>
-
-if (window.testRunner)
- testRunner.dumpAsText();
-
-function targetIdentifier(target) {
- if (target === undefined || target === null)
- return target;
- if (target === window)
- return 'window';
- if (target === document)
- return 'document';
- return target.localName + (target.id ? '#' + target.id : '');
-}
-
-function attachListeners(eventname) {
- var targets = Array.prototype.slice.call(document.querySelectorAll('*'));
- targets.push(window);
- targets.push(document);
- targets.forEach(function (target) {
- target.addEventListener(eventname, function (event) {
- log.textContent += eventname + '@' + targetIdentifier(target) + '\n'
- + ' target:' + targetIdentifier(event.target) + '\n'
- + ' relatedTarget:' + targetIdentifier(event.relatedTarget) + '\n\n';
- });
- });
-}
-
-var log = document.getElementById('log');
-log.textContent = 'Content:' + detailsContainer.outerHTML + '\n\n';
-var target = document.getElementById('target');
-
-attachListeners('mousemove');
-attachListeners('mousedown');
-attachListeners('mouseover');
-attachListeners('mouseout');
-attachListeners('mouseenter');
-attachListeners('mouseleave');
-attachListeners('mouseup');
-attachListeners('click');
-
-function runTest() {
- testRunner.waitUntilDone();
- eventSender.mouseMoveTo(target.offsetLeft + target.offsetWidth / 2, target.offsetTop + target.offsetHeight / 2);
- eventSender.mouseMoveTo(target.offsetLeft + target.offsetWidth + 100, target.offsetTop + target.offsetHeight / 2);
- eventSender.mouseDown();
- eventSender.mouseUp();
- testRunner.notifyDone();
-}
-
-if (window.testRunner && !window.eventSender)
- log.textContent += 'This test requires eventSender.';
-else if (window.eventSender) {
- window.onload = runTest;
-}
-
-</script>
-</body>
-</html>
</del></span></pre></div>
<a id="tagsSafari53831LayoutTestsplatformmacwk2fasteventsshadoweventpathexpectedtxt"></a>
<div class="delfile"><h4>Deleted: tags/Safari-538.31/LayoutTests/platform/mac-wk2/fast/events/shadow-event-path-expected.txt (167777 => 167778)</h4>
<pre class="diff"><span>
<span class="info">--- tags/Safari-538.31/LayoutTests/platform/mac-wk2/fast/events/shadow-event-path-expected.txt        2014-04-24 22:14:14 UTC (rev 167777)
+++ tags/Safari-538.31/LayoutTests/platform/mac-wk2/fast/events/shadow-event-path-expected.txt        2014-04-24 22:24:41 UTC (rev 167778)
</span><span class="lines">@@ -1,306 +0,0 @@
</span><del>-This test records target and relatedTarget at each element while dispatching a mouse click event at an input element.
-
-
-Content:<div id="detailsContainer"><details><summary><div id="divInsideSummary"><input id="target" type="text" size="10"></div></summary></details></div>
-
-mouseover@input#target
- target:input#target
- relatedTarget:null
-
-mouseover@div#divInsideSummary
- target:input#target
- relatedTarget:null
-
-mouseover@summary
- target:input#target
- relatedTarget:null
-
-mouseover@details
- target:input#target
- relatedTarget:null
-
-mouseover@div#detailsContainer
- target:input#target
- relatedTarget:null
-
-mouseover@body
- target:input#target
- relatedTarget:null
-
-mouseover@html
- target:input#target
- relatedTarget:null
-
-mouseover@document
- target:input#target
- relatedTarget:null
-
-mouseover@window
- target:input#target
- relatedTarget:null
-
-mouseenter@input#target
- target:input#target
- relatedTarget:null
-
-mouseenter@div#divInsideSummary
- target:div#divInsideSummary
- relatedTarget:null
-
-mouseenter@summary
- target:summary
- relatedTarget:null
-
-mouseenter@details
- target:details
- relatedTarget:null
-
-mouseenter@div#detailsContainer
- target:div#detailsContainer
- relatedTarget:null
-
-mouseenter@body
- target:body
- relatedTarget:null
-
-mouseenter@html
- target:html
- relatedTarget:null
-
-mousemove@input#target
- target:input#target
- relatedTarget:null
-
-mousemove@div#divInsideSummary
- target:input#target
- relatedTarget:null
-
-mousemove@summary
- target:input#target
- relatedTarget:null
-
-mousemove@details
- target:input#target
- relatedTarget:null
-
-mousemove@div#detailsContainer
- target:input#target
- relatedTarget:null
-
-mousemove@body
- target:input#target
- relatedTarget:null
-
-mousemove@html
- target:input#target
- relatedTarget:null
-
-mousemove@document
- target:input#target
- relatedTarget:null
-
-mousemove@window
- target:input#target
- relatedTarget:null
-
-mouseout@input#target
- target:input#target
- relatedTarget:div#divInsideSummary
-
-mouseout@div#divInsideSummary
- target:input#target
- relatedTarget:div#divInsideSummary
-
-mouseout@summary
- target:input#target
- relatedTarget:div#divInsideSummary
-
-mouseout@details
- target:input#target
- relatedTarget:div#divInsideSummary
-
-mouseout@div#detailsContainer
- target:input#target
- relatedTarget:div#divInsideSummary
-
-mouseout@body
- target:input#target
- relatedTarget:div#divInsideSummary
-
-mouseout@html
- target:input#target
- relatedTarget:div#divInsideSummary
-
-mouseout@document
- target:input#target
- relatedTarget:div#divInsideSummary
-
-mouseout@window
- target:input#target
- relatedTarget:div#divInsideSummary
-
-mouseleave@input#target
- target:input#target
- relatedTarget:div#divInsideSummary
-
-mouseover@div#divInsideSummary
- target:div#divInsideSummary
- relatedTarget:input#target
-
-mouseover@summary
- target:div#divInsideSummary
- relatedTarget:input#target
-
-mouseover@details
- target:div#divInsideSummary
- relatedTarget:input#target
-
-mouseover@div#detailsContainer
- target:div#divInsideSummary
- relatedTarget:input#target
-
-mouseover@body
- target:div#divInsideSummary
- relatedTarget:input#target
-
-mouseover@html
- target:div#divInsideSummary
- relatedTarget:input#target
-
-mouseover@document
- target:div#divInsideSummary
- relatedTarget:input#target
-
-mouseover@window
- target:div#divInsideSummary
- relatedTarget:input#target
-
-mousemove@div#divInsideSummary
- target:div#divInsideSummary
- relatedTarget:null
-
-mousemove@summary
- target:div#divInsideSummary
- relatedTarget:null
-
-mousemove@details
- target:div#divInsideSummary
- relatedTarget:null
-
-mousemove@div#detailsContainer
- target:div#divInsideSummary
- relatedTarget:null
-
-mousemove@body
- target:div#divInsideSummary
- relatedTarget:null
-
-mousemove@html
- target:div#divInsideSummary
- relatedTarget:null
-
-mousemove@document
- target:div#divInsideSummary
- relatedTarget:null
-
-mousemove@window
- target:div#divInsideSummary
- relatedTarget:null
-
-mousedown@div#divInsideSummary
- target:div#divInsideSummary
- relatedTarget:null
-
-mousedown@summary
- target:div#divInsideSummary
- relatedTarget:null
-
-mousedown@details
- target:div#divInsideSummary
- relatedTarget:null
-
-mousedown@div#detailsContainer
- target:div#divInsideSummary
- relatedTarget:null
-
-mousedown@body
- target:div#divInsideSummary
- relatedTarget:null
-
-mousedown@html
- target:div#divInsideSummary
- relatedTarget:null
-
-mousedown@document
- target:div#divInsideSummary
- relatedTarget:null
-
-mousedown@window
- target:div#divInsideSummary
- relatedTarget:null
-
-mouseup@div#divInsideSummary
- target:div#divInsideSummary
- relatedTarget:null
-
-mouseup@summary
- target:div#divInsideSummary
- relatedTarget:null
-
-mouseup@details
- target:div#divInsideSummary
- relatedTarget:null
-
-mouseup@div#detailsContainer
- target:div#divInsideSummary
- relatedTarget:null
-
-mouseup@body
- target:div#divInsideSummary
- relatedTarget:null
-
-mouseup@html
- target:div#divInsideSummary
- relatedTarget:null
-
-mouseup@document
- target:div#divInsideSummary
- relatedTarget:null
-
-mouseup@window
- target:div#divInsideSummary
- relatedTarget:null
-
-click@div#divInsideSummary
- target:div#divInsideSummary
- relatedTarget:null
-
-click@summary
- target:div#divInsideSummary
- relatedTarget:null
-
-click@details
- target:div#divInsideSummary
- relatedTarget:null
-
-click@div#detailsContainer
- target:div#divInsideSummary
- relatedTarget:null
-
-click@body
- target:div#divInsideSummary
- relatedTarget:null
-
-click@html
- target:div#divInsideSummary
- relatedTarget:null
-
-click@document
- target:div#divInsideSummary
- relatedTarget:null
-
-click@window
- target:div#divInsideSummary
- relatedTarget:null
-
-
</del></span></pre></div>
<a id="tagsSafari53831SourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: tags/Safari-538.31/Source/WebCore/ChangeLog (167777 => 167778)</h4>
<pre class="diff"><span>
<span class="info">--- tags/Safari-538.31/Source/WebCore/ChangeLog        2014-04-24 22:14:14 UTC (rev 167777)
+++ tags/Safari-538.31/Source/WebCore/ChangeLog        2014-04-24 22:24:41 UTC (rev 167778)
</span><span class="lines">@@ -1,3 +1,14 @@
</span><ins>+2014-04-24 Matthew Hanson <matthew_hanson@apple.com>
+
+ Rollout r167689.
+
+ 2014-04-22 Ryosuke Niwa <rniwa@webkit.org>
+
+ Rollout r156635 since the old behavior was intentional.
+
+ * page/EventHandler.cpp:
+ (WebCore::EventHandler::selectCursor):
+
</ins><span class="cx"> 2014-04-23 Benjamin Poulain <bpoulain@apple.com>
</span><span class="cx">
</span><span class="cx"> [iOS][WK2] Fix a few mistakes affecting the initial layout and the initial unobscured rect
</span></span></pre></div>
<a id="tagsSafari53831SourceWebCoredomEventDispatchercpp"></a>
<div class="modfile"><h4>Modified: tags/Safari-538.31/Source/WebCore/dom/EventDispatcher.cpp (167777 => 167778)</h4>
<pre class="diff"><span>
<span class="info">--- tags/Safari-538.31/Source/WebCore/dom/EventDispatcher.cpp        2014-04-24 22:14:14 UTC (rev 167777)
+++ tags/Safari-538.31/Source/WebCore/dom/EventDispatcher.cpp        2014-04-24 22:24:41 UTC (rev 167778)
</span><span class="lines">@@ -90,7 +90,7 @@
</span><span class="cx"> #if ENABLE(TOUCH_EVENTS)
</span><span class="cx"> void updateTouchLists(const TouchEvent&);
</span><span class="cx"> #endif
</span><del>- void setRelatedTarget(Node& origin, EventTarget&);
</del><ins>+ void setRelatedTarget(EventTarget&);
</ins><span class="cx">
</span><span class="cx"> bool hasEventListeners(const AtomicString& eventType) const;
</span><span class="cx">
</span><span class="lines">@@ -148,50 +148,18 @@
</span><span class="cx"> ASSERT(m_currentTreeScope->parentTreeScope() == &newTreeScope);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- if (&newTreeScope == &m_relatedNodeTreeScope)
- m_relatedNodeInCurrentTreeScope = &m_relatedNode;
- else if (m_relatedNodeInCurrentTreeScope) {
</del><ins>+ if (m_relatedNodeInCurrentTreeScope) { // relatedNode is under the current tree scope
</ins><span class="cx"> ASSERT(m_currentTreeScope);
</span><span class="cx"> m_relatedNodeInCurrentTreeScope = &newTarget;
</span><del>- } else {
- if (!m_currentTreeScope) {
- TreeScope* newTreeScopeAncestor = &newTreeScope;
- do {
- m_relatedNodeInCurrentTreeScope = findHostOfTreeScopeInTargetTreeScope(m_relatedNodeTreeScope, *newTreeScopeAncestor);
- newTreeScopeAncestor = newTreeScopeAncestor->parentTreeScope();
- if (newTreeScopeAncestor == &m_relatedNodeTreeScope) {
- m_relatedNodeInCurrentTreeScope = &m_relatedNode;
- break;
- }
- } while (newTreeScopeAncestor && !m_relatedNodeInCurrentTreeScope);
- }
- ASSERT(m_relatedNodeInCurrentTreeScope || findHostOfTreeScopeInTargetTreeScope(newTreeScope, m_relatedNodeTreeScope)
- || &newTreeScope.documentScope() != &m_relatedNodeTreeScope.documentScope());
- }
</del><ins>+ } else if (&newTreeScope == &m_relatedNodeTreeScope) // relatedNode is in the current tree scope;
+ m_relatedNodeInCurrentTreeScope = &m_relatedNode;
+ // Otherwise, we haven't reached the tree scope that contains relatedNode yet.
</ins><span class="cx">
</span><span class="cx"> m_currentTreeScope = &newTreeScope;
</span><span class="cx">
</span><span class="cx"> return m_relatedNodeInCurrentTreeScope;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- static Node* findHostOfTreeScopeInTargetTreeScope(const TreeScope& startingTreeScope, const TreeScope& targetScope)
- {
- ASSERT(&targetScope != &startingTreeScope);
- Node* previousHost = 0;
- for (const TreeScope* scope = &startingTreeScope; scope; scope = scope->parentTreeScope()) {
- if (scope == &targetScope) {
- ASSERT(previousHost);
- ASSERT_WITH_SECURITY_IMPLICATION(&previousHost->treeScope() == &targetScope);
- return previousHost;
- }
- if (scope->rootNode().isShadowRoot())
- previousHost = toShadowRoot(scope->rootNode()).hostElement();
- else
- ASSERT_WITH_SECURITY_IMPLICATION(!scope->parentTreeScope());
- }
- return 0;
- }
-
</del><span class="cx"> private:
</span><span class="cx"> Node& m_relatedNode;
</span><span class="cx"> const TreeScope& m_relatedNodeTreeScope;
</span><span class="lines">@@ -337,7 +305,7 @@
</span><span class="cx"> EventPath eventPath(*node, *event);
</span><span class="cx">
</span><span class="cx"> if (EventTarget* relatedTarget = event->relatedTarget())
</span><del>- eventPath.setRelatedTarget(*node, *relatedTarget);
</del><ins>+ eventPath.setRelatedTarget(*relatedTarget);
</ins><span class="cx"> #if ENABLE(TOUCH_EVENTS) && !PLATFORM(IOS)
</span><span class="cx"> if (event->isTouchEvent())
</span><span class="cx"> eventPath.updateTouchLists(*toTouchEvent(event.get()));
</span><span class="lines">@@ -484,7 +452,7 @@
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>-void EventPath::setRelatedTarget(Node& origin, EventTarget& relatedTarget)
</del><ins>+void EventPath::setRelatedTarget(EventTarget& relatedTarget)
</ins><span class="cx"> {
</span><span class="cx"> Node* relatedNode = relatedTarget.toNode();
</span><span class="cx"> if (!relatedNode)
</span><span class="lines">@@ -492,22 +460,9 @@
</span><span class="cx">
</span><span class="cx"> EventRelatedNodeResolver resolver(*relatedNode);
</span><span class="cx">
</span><del>- bool originIsRelatedTarget = &origin == relatedNode;
- Node& rootNodeInOriginTreeScope = origin.treeScope().rootNode();
-
</del><span class="cx"> size_t eventPathSize = m_path.size();
</span><del>- size_t i = 0;
- while (i < eventPathSize) {
- Node* contextNode = m_path[i]->node();
- Node* currentRelatedNode = resolver.moveToParentOrShadowHost(*contextNode);
- if (!originIsRelatedTarget && m_path[i]->target() == currentRelatedNode)
- break;
- toMouseOrFocusEventContext(*m_path[i]).setRelatedTarget(currentRelatedNode);
- i++;
- if (originIsRelatedTarget && &rootNodeInOriginTreeScope == contextNode)
- break;
- }
- m_path.shrink(i);
</del><ins>+ for (size_t i = 0; i < eventPathSize; i++)
+ toMouseOrFocusEventContext(*m_path[i]).setRelatedTarget(resolver.moveToParentOrShadowHost(*m_path[i]->node()));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool EventPath::hasEventListeners(const AtomicString& eventType) const
</span></span></pre>
</div>
</div>
</body>
</html>