<!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>[218651] 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/218651">218651</a></dd>
<dt>Author</dt> <dd>simon.fraser@apple.com</dd>
<dt>Date</dt> <dd>2017-06-21 14:29:21 -0700 (Wed, 21 Jun 2017)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove WILL_REVEAL_EDGE_EVENTS code
https://bugs.webkit.org/show_bug.cgi?id=173632

Reviewed by Sam Weinig, Beth Dakin.

Remove will-reveal-edge events, which never took off.

Source/WebCore:

* dom/Document.cpp:
(WebCore::Document::clearScriptedAnimationController):
(WebCore::Document::sendWillRevealEdgeEventsIfNeeded): Deleted.
* dom/Document.h:
* dom/GlobalEventHandlers.idl:
* html/HTMLBodyElement.idl:
* html/HTMLFrameSetElement.idl:
* page/FrameView.cpp:
(WebCore::FrameView::scrollPositionChanged):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::scrollTo):

Source/WTF:

* wtf/FeatureDefines.h:

LayoutTests:

* fast/events/will-reveal-edge-on-div-expected.txt: Removed.
* fast/events/will-reveal-edge-on-div.html: Removed.
* fast/events/will-reveal-edges-body-attributes-expected.txt: Removed.
* fast/events/will-reveal-edges-body-attributes.html: Removed.
* fast/events/will-reveal-edges-event-listeners-expected.txt: Removed.
* fast/events/will-reveal-edges-event-listeners.html: Removed.
* fast/events/will-reveal-edges-window-attributes-expected.txt: Removed.
* fast/events/will-reveal-edges-window-attributes.html: Removed.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkSourceWTFChangeLog">trunk/Source/WTF/ChangeLog</a></li>
<li><a href="#trunkSourceWTFwtfFeatureDefinesh">trunk/Source/WTF/wtf/FeatureDefines.h</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoredomDocumentcpp">trunk/Source/WebCore/dom/Document.cpp</a></li>
<li><a href="#trunkSourceWebCoredomDocumenth">trunk/Source/WebCore/dom/Document.h</a></li>
<li><a href="#trunkSourceWebCoredomGlobalEventHandlersidl">trunk/Source/WebCore/dom/GlobalEventHandlers.idl</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLBodyElementidl">trunk/Source/WebCore/html/HTMLBodyElement.idl</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLFrameSetElementidl">trunk/Source/WebCore/html/HTMLFrameSetElement.idl</a></li>
<li><a href="#trunkSourceWebCorepageFrameViewcpp">trunk/Source/WebCore/page/FrameView.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderLayercpp">trunk/Source/WebCore/rendering/RenderLayer.cpp</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfasteventswillrevealedgeondivexpectedtxt">trunk/LayoutTests/fast/events/will-reveal-edge-on-div-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasteventswillrevealedgeondivhtml">trunk/LayoutTests/fast/events/will-reveal-edge-on-div.html</a></li>
<li><a href="#trunkLayoutTestsfasteventswillrevealedgesbodyattributesexpectedtxt">trunk/LayoutTests/fast/events/will-reveal-edges-body-attributes-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasteventswillrevealedgesbodyattributeshtml">trunk/LayoutTests/fast/events/will-reveal-edges-body-attributes.html</a></li>
<li><a href="#trunkLayoutTestsfasteventswillrevealedgeseventlistenersexpectedtxt">trunk/LayoutTests/fast/events/will-reveal-edges-event-listeners-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasteventswillrevealedgeseventlistenershtml">trunk/LayoutTests/fast/events/will-reveal-edges-event-listeners.html</a></li>
<li><a href="#trunkLayoutTestsfasteventswillrevealedgeswindowattributesexpectedtxt">trunk/LayoutTests/fast/events/will-reveal-edges-window-attributes-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasteventswillrevealedgeswindowattributeshtml">trunk/LayoutTests/fast/events/will-reveal-edges-window-attributes.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (218650 => 218651)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog      2017-06-21 21:20:11 UTC (rev 218650)
+++ trunk/LayoutTests/ChangeLog 2017-06-21 21:29:21 UTC (rev 218651)
</span><span class="lines">@@ -1,3 +1,21 @@
</span><ins>+2017-06-20  Simon Fraser  <simon.fraser@apple.com>
+
+        Remove WILL_REVEAL_EDGE_EVENTS code
+        https://bugs.webkit.org/show_bug.cgi?id=173632
+
+        Reviewed by Sam Weinig, Beth Dakin.
+
+        Remove will-reveal-edge events, which never took off.
+
+        * fast/events/will-reveal-edge-on-div-expected.txt: Removed.
+        * fast/events/will-reveal-edge-on-div.html: Removed.
+        * fast/events/will-reveal-edges-body-attributes-expected.txt: Removed.
+        * fast/events/will-reveal-edges-body-attributes.html: Removed.
+        * fast/events/will-reveal-edges-event-listeners-expected.txt: Removed.
+        * fast/events/will-reveal-edges-event-listeners.html: Removed.
+        * fast/events/will-reveal-edges-window-attributes-expected.txt: Removed.
+        * fast/events/will-reveal-edges-window-attributes.html: Removed.
+
</ins><span class="cx"> 2017-06-21  Simon Fraser  <simon.fraser@apple.com>
</span><span class="cx"> 
</span><span class="cx">         svgPath.getTotalLength() freezes webkit
</span></span></pre></div>
<a id="trunkLayoutTestsfasteventswillrevealedgeondivexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/events/will-reveal-edge-on-div-expected.txt (218650 => 218651)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/events/will-reveal-edge-on-div-expected.txt       2017-06-21 21:20:11 UTC (rev 218650)
+++ trunk/LayoutTests/fast/events/will-reveal-edge-on-div-expected.txt  2017-06-21 21:29:21 UTC (rev 218651)
</span><span class="lines">@@ -1,10 +0,0 @@
</span><del>-This tests that we can listen for webkitwillrevealbottom, webkitwillrevealtop, webkitwillrevealleft, and webkitwillrevealright
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-All edges were revealed!
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
</del></span></pre></div>
<a id="trunkLayoutTestsfasteventswillrevealedgeondivhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/events/will-reveal-edge-on-div.html (218650 => 218651)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/events/will-reveal-edge-on-div.html       2017-06-21 21:20:11 UTC (rev 218650)
+++ trunk/LayoutTests/fast/events/will-reveal-edge-on-div.html  2017-06-21 21:29:21 UTC (rev 218651)
</span><span class="lines">@@ -1,83 +0,0 @@
</span><del>-<html>
-<script src="../../resources/js-test-pre.js"></script>
-
-<style>
-#scrolly-div {
-    width:200px;
-    height:200px;
-    border:2px solid black;
-    overflow:scroll;
-}
-
-.big {
-    background-color:purple;
-    width:600px;
-    height:600px;
-}
-</style>
-
-<script type="text/javascript">
-description('This tests that we can listen for webkitwillrevealbottom, webkitwillrevealtop, webkitwillrevealleft, and webkitwillrevealright');
-
-var triggeredWillRevealBottom = false;
-var triggeredWillRevealTop = false;
-var triggeredWillRevealRight = false;
-var triggeredWillRevealLeft = false;
-
-function bottomRevealed()
-{
-    triggeredWillRevealBottom = true;
-    var scrolly = document.getElementById("scrolly-div");
-    scrolly.scrollTop = 0;
-    checkComplete();
-}
-
-function topRevealed()
-{
-    triggeredWillRevealTop = true;
-    var scrolly = document.getElementById("scrolly-div");
-    scrolly.scrollLeft = 600;
-    checkComplete();
-}
-
-function rightRevealed()
-{
-    triggeredWillRevealRight = true;
-    var scrolly = document.getElementById("scrolly-div");
-    scrolly.scrollLeft = 0;
-    checkComplete();
-}
-
-function leftRevealed()
-{
-    triggeredWillRevealLeft = true;
-    checkComplete();
-}
-
-function checkComplete()
-{
-    if (triggeredWillRevealBottom && triggeredWillRevealTop && triggeredWillRevealRight && triggeredWillRevealLeft) {
-        debug('All edges were revealed!');
-        finishJSTest();
-    }
-}
-
-var jsTestIsAsync = true;
-
-function runTest() {
-    var scrolly = document.getElementById("scrolly-div");
-    scrolly.addEventListener('webkitwillrevealbottom', bottomRevealed, false);
-    scrolly.addEventListener('webkitwillrevealtop', topRevealed, false);
-    scrolly.addEventListener('webkitwillrevealright', rightRevealed, false);
-    scrolly.addEventListener('webkitwillrevealleft', leftRevealed, false);
-    scrolly.scrollTop = 600;
-}
-</script>
-
-<body onload="runTest()">
-    <div id="scrolly-div">
-        <div class="big"></div>
-    </div>
-    <script src="../../resources/js-test-post.js"></script>
-</body>
-</html>
</del></span></pre></div>
<a id="trunkLayoutTestsfasteventswillrevealedgesbodyattributesexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/events/will-reveal-edges-body-attributes-expected.txt (218650 => 218651)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/events/will-reveal-edges-body-attributes-expected.txt     2017-06-21 21:20:11 UTC (rev 218650)
+++ trunk/LayoutTests/fast/events/will-reveal-edges-body-attributes-expected.txt        2017-06-21 21:29:21 UTC (rev 218651)
</span><span class="lines">@@ -1,10 +0,0 @@
</span><del>-This tests that onwebkitwillrevealbottom, onwebkitwillrevealtop, onwebkitwillrevealleft, and onwebkitwillrevealright work as body attributes
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-All edges were revealed!
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
</del></span></pre></div>
<a id="trunkLayoutTestsfasteventswillrevealedgesbodyattributeshtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/events/will-reveal-edges-body-attributes.html (218650 => 218651)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/events/will-reveal-edges-body-attributes.html     2017-06-21 21:20:11 UTC (rev 218650)
+++ trunk/LayoutTests/fast/events/will-reveal-edges-body-attributes.html        2017-06-21 21:29:21 UTC (rev 218651)
</span><span class="lines">@@ -1,54 +0,0 @@
</span><del>-<html>
-<script src="../../resources/js-test-pre.js"></script>
-
-<script type="text/javascript">
-description('This tests that onwebkitwillrevealbottom, onwebkitwillrevealtop, onwebkitwillrevealleft, and onwebkitwillrevealright work as body attributes');
-
-var triggeredWillRevealBottom = false;
-var triggeredWillRevealTop = false;
-var triggeredWillRevealRight = false;
-var triggeredWillRevealLeft = false;
-
-function willRevealBottom() {
-    triggeredWillRevealBottom = true;
-    window.scrollTo(0,0);
-    checkComplete();
-}
-
-function willRevealTop() {
-    triggeredWillRevealTop = true;
-    window.scrollTo(2000, 0);
-    checkComplete();
-}
-
-function willRevealRight() {
-    triggeredWillRevealRight = true;
-    window.scrollTo(0, 0);
-    checkComplete();
-}
-
-function willRevealLeft() {
-    triggeredWillRevealLeft = true;
-    checkComplete();
-}
-
-function checkComplete()
-{
-    if (triggeredWillRevealBottom && triggeredWillRevealTop && triggeredWillRevealRight && triggeredWillRevealLeft) {
-        debug('All edges were revealed!');
-        finishJSTest();
-    }
-}
-
-var jsTestIsAsync = true;
-
-function runTest() {
-    window.scrollTo(0, 2000);
-}
-</script>
-
-<body style="height:2000px; width:2000px;" onload="runTest()" onwebkitwillrevealbottom="willRevealBottom()"
-    onwebkitwillrevealtop="willRevealTop()" onwebkitwillrevealright="willRevealRight()" onwebkitwillrevealleft="willRevealLeft()">
-    <script src="../../resources/js-test-post.js"></script>
-</body>
-</html>
</del></span></pre></div>
<a id="trunkLayoutTestsfasteventswillrevealedgeseventlistenersexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/events/will-reveal-edges-event-listeners-expected.txt (218650 => 218651)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/events/will-reveal-edges-event-listeners-expected.txt     2017-06-21 21:20:11 UTC (rev 218650)
+++ trunk/LayoutTests/fast/events/will-reveal-edges-event-listeners-expected.txt        2017-06-21 21:29:21 UTC (rev 218651)
</span><span class="lines">@@ -1,10 +0,0 @@
</span><del>-This tests that we can listen for webkitwillrevealbottom, webkitwillrevealtop, webkitwillrevealleft, and webkitwillrevealright
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-All edges were revealed!
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
</del></span></pre></div>
<a id="trunkLayoutTestsfasteventswillrevealedgeseventlistenershtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/events/will-reveal-edges-event-listeners.html (218650 => 218651)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/events/will-reveal-edges-event-listeners.html     2017-06-21 21:20:11 UTC (rev 218650)
+++ trunk/LayoutTests/fast/events/will-reveal-edges-event-listeners.html        2017-06-21 21:29:21 UTC (rev 218651)
</span><span class="lines">@@ -1,65 +0,0 @@
</span><del>-<html>
-<script src="../../resources/js-test-pre.js"></script>
-
-<script type="text/javascript">
-description('This tests that we can listen for webkitwillrevealbottom, webkitwillrevealtop, webkitwillrevealleft, and webkitwillrevealright');
-
-var triggeredWillRevealBottom = false;
-var triggeredWillRevealTop = false;
-var triggeredWillRevealRight = false;
-var triggeredWillRevealLeft = false;
-
-window.addEventListener(
-    'webkitwillrevealbottom',
-    function() {
-        triggeredWillRevealBottom = true;
-        window.scrollTo(0,0);
-        checkComplete();
-    },
-    false);
-
-window.addEventListener(
-    'webkitwillrevealtop',
-    function(event) {
-        triggeredWillRevealTop = true;
-        window.scrollTo(2000, 0);
-        checkComplete();
-    },
-    false);
-
-window.addEventListener(
-    'webkitwillrevealright',
-    function(event) {
-        triggeredWillRevealRight = true;
-        window.scrollTo(0, 0);
-        checkComplete();
-    },
-    false);
-
-window.addEventListener(
-    'webkitwillrevealleft',
-    function(event) {
-        triggeredWillRevealLeft = true;
-        checkComplete();
-    },
-    false);
-
-function checkComplete()
-{
-    if (triggeredWillRevealBottom && triggeredWillRevealTop && triggeredWillRevealRight && triggeredWillRevealLeft) {
-        debug('All edges were revealed!');
-        finishJSTest();
-    }
-}
-
-var jsTestIsAsync = true;
-
-function runTest() {
-    window.scrollTo(0, 2000);
-}
-</script>
-
-<body style="height:2000px; width:2000px;" onload="runTest()">
-    <script src="../../resources/js-test-post.js"></script>
-</body>
-</html>
</del></span></pre></div>
<a id="trunkLayoutTestsfasteventswillrevealedgeswindowattributesexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/events/will-reveal-edges-window-attributes-expected.txt (218650 => 218651)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/events/will-reveal-edges-window-attributes-expected.txt   2017-06-21 21:20:11 UTC (rev 218650)
+++ trunk/LayoutTests/fast/events/will-reveal-edges-window-attributes-expected.txt      2017-06-21 21:29:21 UTC (rev 218651)
</span><span class="lines">@@ -1,10 +0,0 @@
</span><del>-This tests that onwebkitwillrevealbottom, onwebkitwillrevealtop, onwebkitwillrevealleft, and onwebkitwillrevealright work as window attributes.
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-All edges were revealed!
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
</del></span></pre></div>
<a id="trunkLayoutTestsfasteventswillrevealedgeswindowattributeshtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/fast/events/will-reveal-edges-window-attributes.html (218650 => 218651)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/events/will-reveal-edges-window-attributes.html   2017-06-21 21:20:11 UTC (rev 218650)
+++ trunk/LayoutTests/fast/events/will-reveal-edges-window-attributes.html      2017-06-21 21:29:21 UTC (rev 218651)
</span><span class="lines">@@ -1,57 +0,0 @@
</span><del>-<html>
-<script src="../../resources/js-test-pre.js"></script>
-
-<script type="text/javascript">
-description('This tests that onwebkitwillrevealbottom, onwebkitwillrevealtop, onwebkitwillrevealleft, and onwebkitwillrevealright work as window attributes.');
-
-var triggeredWillRevealBottom = false;
-var triggeredWillRevealTop = false;
-var triggeredWillRevealRight = false;
-var triggeredWillRevealLeft = false;
-
-window.onwebkitwillrevealbottom =
-    function() {
-        triggeredWillRevealBottom = true;
-        window.scrollTo(0,0);
-        checkComplete();
-    }
-
-window.onwebkitwillrevealtop =
-    function() {
-        triggeredWillRevealTop = true;
-        window.scrollTo(2000, 0);
-        checkComplete();
-    }
-
-window.onwebkitwillrevealright =
-    function() {
-        triggeredWillRevealRight = true;
-        window.scrollTo(0, 0);
-        checkComplete();
-    }
-
-window.onwebkitwillrevealleft =
-    function() {
-        triggeredWillRevealLeft = true;
-        checkComplete();
-    }
-
-function checkComplete()
-{
-    if (triggeredWillRevealBottom && triggeredWillRevealTop && triggeredWillRevealRight && triggeredWillRevealLeft) {
-        debug('All edges were revealed!');
-        finishJSTest();
-    }
-}
-
-var jsTestIsAsync = true;
-
-function runTest() {
-    window.scrollTo(0, 2000);
-}
-</script>
-
-<body style="height:2000px; width:2000px;" onload="runTest()">
-    <script src="../../resources/js-test-post.js"></script>
-</body>
-</html>
</del></span></pre></div>
<a id="trunkSourceWTFChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/ChangeLog (218650 => 218651)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/ChangeLog       2017-06-21 21:20:11 UTC (rev 218650)
+++ trunk/Source/WTF/ChangeLog  2017-06-21 21:29:21 UTC (rev 218651)
</span><span class="lines">@@ -1,3 +1,14 @@
</span><ins>+2017-06-20  Simon Fraser  <simon.fraser@apple.com>
+
+        Remove WILL_REVEAL_EDGE_EVENTS code
+        https://bugs.webkit.org/show_bug.cgi?id=173632
+
+        Reviewed by Sam Weinig, Beth Dakin.
+
+        Remove will-reveal-edge events, which never took off.
+
+        * wtf/FeatureDefines.h:
+
</ins><span class="cx"> 2017-06-20  Konstantin Tokarev  <annulen@yandex.ru>
</span><span class="cx"> 
</span><span class="cx">         Remove excessive include directives from WTF
</span></span></pre></div>
<a id="trunkSourceWTFwtfFeatureDefinesh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/FeatureDefines.h (218650 => 218651)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/FeatureDefines.h    2017-06-21 21:20:11 UTC (rev 218650)
+++ trunk/Source/WTF/wtf/FeatureDefines.h       2017-06-21 21:29:21 UTC (rev 218651)
</span><span class="lines">@@ -732,10 +732,6 @@
</span><span class="cx"> #define ENABLE_WEB_TIMING 0
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#if !defined(ENABLE_WILL_REVEAL_EDGE_EVENTS)
-#define ENABLE_WILL_REVEAL_EDGE_EVENTS 1
-#endif
-
</del><span class="cx"> #if !defined(ENABLE_XSLT)
</span><span class="cx"> #define ENABLE_XSLT 1
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (218650 => 218651)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog   2017-06-21 21:20:11 UTC (rev 218650)
+++ trunk/Source/WebCore/ChangeLog      2017-06-21 21:29:21 UTC (rev 218651)
</span><span class="lines">@@ -1,3 +1,24 @@
</span><ins>+2017-06-20  Simon Fraser  <simon.fraser@apple.com>
+
+        Remove WILL_REVEAL_EDGE_EVENTS code
+        https://bugs.webkit.org/show_bug.cgi?id=173632
+
+        Reviewed by Sam Weinig, Beth Dakin.
+
+        Remove will-reveal-edge events, which never took off.
+
+        * dom/Document.cpp:
+        (WebCore::Document::clearScriptedAnimationController):
+        (WebCore::Document::sendWillRevealEdgeEventsIfNeeded): Deleted.
+        * dom/Document.h:
+        * dom/GlobalEventHandlers.idl:
+        * html/HTMLBodyElement.idl:
+        * html/HTMLFrameSetElement.idl:
+        * page/FrameView.cpp:
+        (WebCore::FrameView::scrollPositionChanged):
+        * rendering/RenderLayer.cpp:
+        (WebCore::RenderLayer::scrollTo):
+
</ins><span class="cx"> 2017-06-21  Daniel Bates  <dabates@apple.com>
</span><span class="cx"> 
</span><span class="cx">         Cleanup FrameLoadRequest
</span></span></pre></div>
<a id="trunkSourceWebCoredomDocumentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Document.cpp (218650 => 218651)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Document.cpp    2017-06-21 21:20:11 UTC (rev 218650)
+++ trunk/Source/WebCore/dom/Document.cpp       2017-06-21 21:29:21 UTC (rev 218651)
</span><span class="lines">@@ -6270,78 +6270,7 @@
</span><span class="cx">         m_scriptedAnimationController->clearDocumentPointer();
</span><span class="cx">     m_scriptedAnimationController = nullptr;
</span><span class="cx"> }
</span><del>-    
-void Document::sendWillRevealEdgeEventsIfNeeded(const IntPoint& oldPosition, const IntPoint& newPosition, const IntRect& visibleRect, const IntSize& contentsSize, Element* target)
-{
-    // For each edge (top, bottom, left and right), send the will reveal edge event for that direction
-    // if newPosition is at or beyond the notification point, if the scroll direction is heading in the
-    // direction of that edge point, and if oldPosition is before the notification point (which indicates
-    // that this is the first moment that we know we crossed the magic line).
-    
-#if ENABLE(WILL_REVEAL_EDGE_EVENTS)
-    // FIXME: broken in RTL documents.
-    int willRevealBottomNotificationPoint = std::max(0, contentsSize.height() - 2 *  visibleRect.height());
-    int willRevealTopNotificationPoint = visibleRect.height();
</del><span class="cx"> 
</span><del>-    // Bottom edge.
-    if (newPosition.y() >= willRevealBottomNotificationPoint && newPosition.y() > oldPosition.y()
-        && willRevealBottomNotificationPoint >= oldPosition.y()) {
-        Ref<Event> willRevealEvent = Event::create(eventNames().webkitwillrevealbottomEvent, false, false);
-        if (!target)
-            enqueueWindowEvent(WTFMove(willRevealEvent));
-        else {
-            willRevealEvent->setTarget(target);
-            m_eventQueue.enqueueEvent(WTFMove(willRevealEvent));
-        }
-    }
-
-    // Top edge.
-    if (newPosition.y() <= willRevealTopNotificationPoint && newPosition.y() < oldPosition.y()
-        && willRevealTopNotificationPoint <= oldPosition.y()) {
-        Ref<Event> willRevealEvent = Event::create(eventNames().webkitwillrevealtopEvent, false, false);
-        if (!target)
-            enqueueWindowEvent(WTFMove(willRevealEvent));
-        else {
-            willRevealEvent->setTarget(target);
-            m_eventQueue.enqueueEvent(WTFMove(willRevealEvent));
-        }
-    }
-
-    int willRevealRightNotificationPoint = std::max(0, contentsSize.width() - 2 * visibleRect.width());
-    int willRevealLeftNotificationPoint = visibleRect.width();
-
-    // Right edge.
-    if (newPosition.x() >= willRevealRightNotificationPoint && newPosition.x() > oldPosition.x()
-        && willRevealRightNotificationPoint >= oldPosition.x()) {
-        Ref<Event> willRevealEvent = Event::create(eventNames().webkitwillrevealrightEvent, false, false);
-        if (!target)
-            enqueueWindowEvent(WTFMove(willRevealEvent));
-        else {
-            willRevealEvent->setTarget(target);
-            m_eventQueue.enqueueEvent(WTFMove(willRevealEvent));
-        }
-    }
-
-    // Left edge.
-    if (newPosition.x() <= willRevealLeftNotificationPoint && newPosition.x() < oldPosition.x()
-        && willRevealLeftNotificationPoint <= oldPosition.x()) {
-        Ref<Event> willRevealEvent = Event::create(eventNames().webkitwillrevealleftEvent, false, false);
-        if (!target)
-            enqueueWindowEvent(WTFMove(willRevealEvent));
-        else {
-            willRevealEvent->setTarget(target);
-            m_eventQueue.enqueueEvent(WTFMove(willRevealEvent));
-        }
-    }
-#else
-    UNUSED_PARAM(oldPosition);
-    UNUSED_PARAM(newPosition);
-    UNUSED_PARAM(visibleRect);
-    UNUSED_PARAM(contentsSize);
-    UNUSED_PARAM(target);
-#endif
-}
-
</del><span class="cx"> void Document::wheelEventHandlersChanged()
</span><span class="cx"> {
</span><span class="cx">     Page* page = this->page();
</span></span></pre></div>
<a id="trunkSourceWebCoredomDocumenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Document.h (218650 => 218651)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Document.h      2017-06-21 21:20:11 UTC (rev 218650)
+++ trunk/Source/WebCore/dom/Document.h 2017-06-21 21:29:21 UTC (rev 218651)
</span><span class="lines">@@ -1164,8 +1164,6 @@
</span><span class="cx">     void cancelAnimationFrame(int id);
</span><span class="cx">     void serviceScriptedAnimations(double timestamp);
</span><span class="cx"> 
</span><del>-    void sendWillRevealEdgeEventsIfNeeded(const IntPoint& oldPosition, const IntPoint& newPosition, const IntRect& visibleRect, const IntSize& contentsSize, Element* target = nullptr);
-
</del><span class="cx">     EventTarget* errorEventTarget() final;
</span><span class="cx">     void logExceptionToConsole(const String& errorMessage, const String& sourceURL, int lineNumber, int columnNumber, RefPtr<Inspector::ScriptCallStack>&&) final;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoredomGlobalEventHandlersidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/GlobalEventHandlers.idl (218650 => 218651)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/GlobalEventHandlers.idl 2017-06-21 21:20:11 UTC (rev 218650)
+++ trunk/Source/WebCore/dom/GlobalEventHandlers.idl    2017-06-21 21:29:21 UTC (rev 218651)
</span><span class="lines">@@ -122,8 +122,4 @@
</span><span class="cx">     [NotEnumerable, Conditional=MOUSE_FORCE_EVENTS] attribute EventHandler onwebkitmouseforcedown;
</span><span class="cx">     [NotEnumerable, Conditional=MOUSE_FORCE_EVENTS] attribute EventHandler onwebkitmouseforcewillbegin;
</span><span class="cx">     [NotEnumerable, Conditional=MOUSE_FORCE_EVENTS] attribute EventHandler onwebkitmouseforceup;
</span><del>-    [NotEnumerable, Conditional=WILL_REVEAL_EDGE_EVENTS] attribute EventHandler onwebkitwillrevealbottom;
-    [NotEnumerable, Conditional=WILL_REVEAL_EDGE_EVENTS] attribute EventHandler onwebkitwillrevealleft;
-    [NotEnumerable, Conditional=WILL_REVEAL_EDGE_EVENTS] attribute EventHandler onwebkitwillrevealright;
-    [NotEnumerable, Conditional=WILL_REVEAL_EDGE_EVENTS] attribute EventHandler onwebkitwillrevealtop;
</del><span class="cx"> };
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLBodyElementidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLBodyElement.idl (218650 => 218651)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLBodyElement.idl    2017-06-21 21:20:11 UTC (rev 218650)
+++ trunk/Source/WebCore/html/HTMLBodyElement.idl       2017-06-21 21:29:21 UTC (rev 218651)
</span><span class="lines">@@ -39,10 +39,6 @@
</span><span class="cx">     [NotEnumerable, WindowEventHandler, Conditional=MOUSE_FORCE_EVENTS] attribute EventHandler onwebkitmouseforcedown;
</span><span class="cx">     [NotEnumerable, WindowEventHandler, Conditional=MOUSE_FORCE_EVENTS] attribute EventHandler onwebkitmouseforcewillbegin;
</span><span class="cx">     [NotEnumerable, WindowEventHandler, Conditional=MOUSE_FORCE_EVENTS] attribute EventHandler onwebkitmouseforceup;
</span><del>-    [NotEnumerable, WindowEventHandler, Conditional=WILL_REVEAL_EDGE_EVENTS] attribute EventHandler onwebkitwillrevealbottom;
-    [NotEnumerable, WindowEventHandler, Conditional=WILL_REVEAL_EDGE_EVENTS] attribute EventHandler onwebkitwillrevealleft;
-    [NotEnumerable, WindowEventHandler, Conditional=WILL_REVEAL_EDGE_EVENTS] attribute EventHandler onwebkitwillrevealright;
-    [NotEnumerable, WindowEventHandler, Conditional=WILL_REVEAL_EDGE_EVENTS] attribute EventHandler onwebkitwillrevealtop;
</del><span class="cx"> 
</span><span class="cx">     // Unique to Document and HTMLBodyElement
</span><span class="cx">     [NotEnumerable, DocumentEventHandler] attribute EventHandler onselectionchange;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLFrameSetElementidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLFrameSetElement.idl (218650 => 218651)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLFrameSetElement.idl        2017-06-21 21:20:11 UTC (rev 218650)
+++ trunk/Source/WebCore/html/HTMLFrameSetElement.idl   2017-06-21 21:29:21 UTC (rev 218651)
</span><span class="lines">@@ -31,11 +31,6 @@
</span><span class="cx">     [NotEnumerable, WindowEventHandler] attribute EventHandler onresize;
</span><span class="cx">     [NotEnumerable, WindowEventHandler] attribute EventHandler onscroll;
</span><span class="cx"> 
</span><del>-    [NotEnumerable, WindowEventHandler, Conditional=WILL_REVEAL_EDGE_EVENTS] attribute EventHandler onwebkitwillrevealbottom;
-    [NotEnumerable, WindowEventHandler, Conditional=WILL_REVEAL_EDGE_EVENTS] attribute EventHandler onwebkitwillrevealleft;
-    [NotEnumerable, WindowEventHandler, Conditional=WILL_REVEAL_EDGE_EVENTS] attribute EventHandler onwebkitwillrevealright;
-    [NotEnumerable, WindowEventHandler, Conditional=WILL_REVEAL_EDGE_EVENTS] attribute EventHandler onwebkitwillrevealtop;
-    
</del><span class="cx">     // Non-standard named getter
</span><span class="cx">     // FIXME: This is not in the standard, can we remove this?
</span><span class="cx">     getter DOMWindow (DOMString name);
</span></span></pre></div>
<a id="trunkSourceWebCorepageFrameViewcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/FrameView.cpp (218650 => 218651)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/FrameView.cpp  2017-06-21 21:20:11 UTC (rev 218650)
+++ trunk/Source/WebCore/page/FrameView.cpp     2017-06-21 21:29:21 UTC (rev 218651)
</span><span class="lines">@@ -2540,6 +2540,9 @@
</span><span class="cx"> // These scroll positions are affected by zooming.
</span><span class="cx"> void FrameView::scrollPositionChanged(const ScrollPosition& oldPosition, const ScrollPosition& newPosition)
</span><span class="cx"> {
</span><ins>+    UNUSED_PARAM(oldPosition);
+    UNUSED_PARAM(newPosition);
+
</ins><span class="cx">     Page* page = frame().page();
</span><span class="cx">     Seconds throttlingDelay = page ? page->chrome().client().eventThrottlingDelay() : 0_s;
</span><span class="cx"> 
</span><span class="lines">@@ -2549,9 +2552,6 @@
</span><span class="cx">     } else if (!m_delayedScrollEventTimer.isActive())
</span><span class="cx">         m_delayedScrollEventTimer.startOneShot(throttlingDelay);
</span><span class="cx"> 
</span><del>-    if (Document* document = frame().document())
-        document->sendWillRevealEdgeEventsIfNeeded(oldPosition, newPosition, visibleContentRect(), contentsSize());
-
</del><span class="cx">     if (RenderView* renderView = this->renderView()) {
</span><span class="cx">         if (renderView->usesCompositing())
</span><span class="cx">             renderView->compositor().frameViewDidScroll();
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderLayercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderLayer.cpp (218650 => 218651)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderLayer.cpp   2017-06-21 21:20:11 UTC (rev 218650)
+++ trunk/Source/WebCore/rendering/RenderLayer.cpp      2017-06-21 21:29:21 UTC (rev 218651)
</span><span class="lines">@@ -2406,7 +2406,6 @@
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx">     
</span><del>-    ScrollPosition oldPosition = IntPoint(m_scrollPosition);
</del><span class="cx">     m_scrollPosition = newPosition;
</span><span class="cx"> 
</span><span class="cx">     RenderView& view = renderer().view();
</span><span class="lines">@@ -2457,10 +2456,8 @@
</span><span class="cx">         renderer().repaintUsingContainer(repaintContainer, rectForRepaint);
</span><span class="cx"> 
</span><span class="cx">     // Schedule the scroll and scroll-related DOM events.
</span><del>-    if (Element* element = renderer().element()) {
</del><ins>+    if (Element* element = renderer().element())
</ins><span class="cx">         element->document().eventQueue().enqueueOrDispatchScrollEvent(*element);
</span><del>-        element->document().sendWillRevealEdgeEventsIfNeeded(oldPosition, newPosition, visibleContentRect(), contentsSize(), element);
-    }
</del><span class="cx"> 
</span><span class="cx">     if (scrollsOverflow())
</span><span class="cx">         view.frameView().didChangeScrollOffset();
</span></span></pre>
</div>
</div>

</body>
</html>