<!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>[215181] 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/215181">215181</a></dd>
<dt>Author</dt> <dd>akling@apple.com</dd>
<dt>Date</dt> <dd>2017-04-10 06:49:18 -0700 (Mon, 10 Apr 2017)</dd>
</dl>
<h3>Log Message</h3>
<pre>Don't generate extra scrolling tiles for non-visible pages.
https://bugs.webkit.org/show_bug.cgi?id=167213
<rdar://problem/30105774>
Reviewed by Antti Koivisto.
Source/WebCore:
Reduce the tiling coverage to a minimum when the page is non-visible.
On macOS, this means that fully occluded web views can maintain a smaller set of tiles
in non-volatile surfaces, reducing net footprint.
Test: compositing/tiling/non-visible-window-tile-coverage.html
* rendering/RenderLayerBacking.cpp:
(WebCore::computePageTiledBackingCoverage): If the page's activity state is non-visible, use minimal tile coverage.
* platform/ScrollView.h:
* page/FrameView.h:
* page/FrameView.cpp:
(WebCore::FrameView::hide): Call adjustTiledBackingCoverage() in hide() since it now takes page visibility into account.
(WebCore::FrameView::enableSpeculativeTilingIfNeeded):
* testing/Internals.cpp:
(WebCore::Internals::setSpeculativeTilingDelayDisabledForTesting):
* testing/Internals.h:
* testing/Internals.idl: Add an internals API for disabling the 500ms delay before speculative tiling begins after
the main frame load finishes. This is needed for reliably testing this change.
LayoutTests:
* TestExpectations:
* compositing/tiling/non-visible-window-tile-coverage-expected.txt: Added.
* compositing/tiling/non-visible-window-tile-coverage.html: Added.
* platform/mac-wk2/TestExpectations:</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsTestExpectations">trunk/LayoutTests/TestExpectations</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk2TestExpectations">trunk/LayoutTests/platform/mac-wk2/TestExpectations</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorepageFrameViewcpp">trunk/Source/WebCore/page/FrameView.cpp</a></li>
<li><a href="#trunkSourceWebCorepageFrameViewh">trunk/Source/WebCore/page/FrameView.h</a></li>
<li><a href="#trunkSourceWebCoreplatformScrollViewh">trunk/Source/WebCore/platform/ScrollView.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderLayerBackingcpp">trunk/Source/WebCore/rendering/RenderLayerBacking.cpp</a></li>
<li><a href="#trunkSourceWebCoretestingInternalscpp">trunk/Source/WebCore/testing/Internals.cpp</a></li>
<li><a href="#trunkSourceWebCoretestingInternalsh">trunk/Source/WebCore/testing/Internals.h</a></li>
<li><a href="#trunkSourceWebCoretestingInternalsidl">trunk/Source/WebCore/testing/Internals.idl</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestscompositingtilingnonvisiblewindowtilecoverageexpectedtxt">trunk/LayoutTests/compositing/tiling/non-visible-window-tile-coverage-expected.txt</a></li>
<li><a href="#trunkLayoutTestscompositingtilingnonvisiblewindowtilecoveragehtml">trunk/LayoutTests/compositing/tiling/non-visible-window-tile-coverage.html</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (215180 => 215181)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2017-04-10 12:55:07 UTC (rev 215180)
+++ trunk/LayoutTests/ChangeLog        2017-04-10 13:49:18 UTC (rev 215181)
</span><span class="lines">@@ -1,3 +1,16 @@
</span><ins>+2017-04-10 Andreas Kling <akling@apple.com>
+
+ Don't generate extra scrolling tiles for non-visible pages.
+ https://bugs.webkit.org/show_bug.cgi?id=167213
+ <rdar://problem/30105774>
+
+ Reviewed by Antti Koivisto.
+
+ * TestExpectations:
+ * compositing/tiling/non-visible-window-tile-coverage-expected.txt: Added.
+ * compositing/tiling/non-visible-window-tile-coverage.html: Added.
+ * platform/mac-wk2/TestExpectations:
+
</ins><span class="cx"> 2017-04-10 Carlos Garcia Campos <cgarcia@igalia.com>
</span><span class="cx">
</span><span class="cx"> REGRESSION(r214426): [GTK] Test media/video-click-dblckick-standalone.html started to fail in the bots after r214426
</span></span></pre></div>
<a id="trunkLayoutTestsTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/TestExpectations (215180 => 215181)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/TestExpectations        2017-04-10 12:55:07 UTC (rev 215180)
+++ trunk/LayoutTests/TestExpectations        2017-04-10 13:49:18 UTC (rev 215181)
</span><span class="lines">@@ -1247,3 +1247,6 @@
</span><span class="cx">
</span><span class="cx"> webkit.org/b/170355 [ Release ] fast/mediastream/MediaStream-page-muted.html [ Pass Timeout ]
</span><span class="cx"> webkit.org/b/170355 [ Debug ] fast/mediastream/MediaStream-page-muted.html [ Pass Crash ]
</span><ins>+
+# Only relevant on Mac-WK2
+compositing/tiling/non-visible-window-tile-coverage.html [ Skip ]
</ins></span></pre></div>
<a id="trunkLayoutTestscompositingtilingnonvisiblewindowtilecoverageexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/compositing/tiling/non-visible-window-tile-coverage-expected.txt (0 => 215181)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/compositing/tiling/non-visible-window-tile-coverage-expected.txt         (rev 0)
+++ trunk/LayoutTests/compositing/tiling/non-visible-window-tile-coverage-expected.txt        2017-04-10 13:49:18 UTC (rev 215181)
</span><span class="lines">@@ -0,0 +1,49 @@
</span><ins>+Tiles when window is visible:
+
+(GraphicsLayer
+ (anchor 0.00 0.00)
+ (bounds 3008.00 3092.00)
+ (visible rect 0.00, 0.00 785.00 x 585.00)
+ (coverage rect 0.00, 0.00 785.00 x 585.00)
+ (intersects coverage rect 1)
+ (contentsScale 1.00)
+ (children 1
+ (GraphicsLayer
+ (bounds 3008.00 3092.00)
+ (contentsOpaque 1)
+ (visible rect 0.00, 0.00 785.00 x 585.00)
+ (coverage rect 0.00, 0.00 1570.00 x 1755.00)
+ (intersects coverage rect 1)
+ (contentsScale 1.00)
+ (tile cache coverage 0, 0 2048 x 2048)
+ (tile size 512 x 512)
+ (top left tile 0, 0 tiles grid 4 x 4)
+ (in window 1)
+ )
+ )
+)
+Tiles when window is not visible:
+
+(GraphicsLayer
+ (anchor 0.00 0.00)
+ (bounds 3008.00 3438.00)
+ (visible rect 0.00, 0.00 785.00 x 585.00)
+ (coverage rect 0.00, 0.00 785.00 x 585.00)
+ (intersects coverage rect 1)
+ (contentsScale 1.00)
+ (children 1
+ (GraphicsLayer
+ (bounds 3008.00 3438.00)
+ (contentsOpaque 1)
+ (visible rect 0.00, 0.00 785.00 x 585.00)
+ (coverage rect 0.00, 0.00 785.00 x 585.00)
+ (intersects coverage rect 1)
+ (contentsScale 1.00)
+ (tile cache coverage 0, 0 1024 x 1024)
+ (tile size 512 x 512)
+ (top left tile 0, 0 tiles grid 2 x 2)
+ (in window 1)
+ )
+ )
+)
+
</ins></span></pre></div>
<a id="trunkLayoutTestscompositingtilingnonvisiblewindowtilecoveragehtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/compositing/tiling/non-visible-window-tile-coverage.html (0 => 215181)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/compositing/tiling/non-visible-window-tile-coverage.html         (rev 0)
+++ trunk/LayoutTests/compositing/tiling/non-visible-window-tile-coverage.html        2017-04-10 13:49:18 UTC (rev 215181)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+<!DOCTYPE html>
+<html>
+<body>
+<p>Tiles when window is visible:</p>
+<pre id="visibleResult"></pre>
+<p>Tiles when window is not visible:</p>
+<pre id="nonVisibleResult"></pre>
+<div style="height: 3000px; width: 3000px"></div>
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ internals.setSpeculativeTilingDelayDisabledForTesting(true);
+
+ onload = function() {
+ setTimeout(function() {
+
+ document.getElementById("visibleResult").innerText = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_VISIBLE_RECTS | internals.LAYER_TREE_INCLUDES_TILE_CACHES);
+ document.onvisibilitychange = function() {
+ if (!document.hidden)
+ return;
+ setTimeout(function() {
+ document.getElementById("nonVisibleResult").innerText = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_VISIBLE_RECTS | internals.LAYER_TREE_INCLUDES_TILE_CACHES);
+
+ testRunner.resetPageVisibility();
+ internals.setSpeculativeTilingDelayDisabledForTesting(false);
+ testRunner.notifyDone();
+ }, 0);
+ }
+ testRunner.setPageVisibility("hidden");
+ }, 0);
+ }
+}
+</script>
+</body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2TestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-wk2/TestExpectations (215180 => 215181)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/TestExpectations        2017-04-10 12:55:07 UTC (rev 215180)
+++ trunk/LayoutTests/platform/mac-wk2/TestExpectations        2017-04-10 13:49:18 UTC (rev 215181)
</span><span class="lines">@@ -647,3 +647,5 @@
</span><span class="cx"> webkit.org/b/170203 fast/images/animated-image-different-dest-size.html [ Pass ImageOnlyFailure ]
</span><span class="cx">
</span><span class="cx"> webkit.org/b/170410 fast/images/animated-gif-webkit-transform.html [ Pass Failure ]
</span><ins>+
+compositing/tiling/non-visible-window-tile-coverage.html [ Pass ]
</ins></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (215180 => 215181)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2017-04-10 12:55:07 UTC (rev 215180)
+++ trunk/Source/WebCore/ChangeLog        2017-04-10 13:49:18 UTC (rev 215181)
</span><span class="lines">@@ -1,3 +1,31 @@
</span><ins>+2017-04-10 Andreas Kling <akling@apple.com>
+
+ Don't generate extra scrolling tiles for non-visible pages.
+ https://bugs.webkit.org/show_bug.cgi?id=167213
+ <rdar://problem/30105774>
+
+ Reviewed by Antti Koivisto.
+
+ Reduce the tiling coverage to a minimum when the page is non-visible.
+ On macOS, this means that fully occluded web views can maintain a smaller set of tiles
+ in non-volatile surfaces, reducing net footprint.
+
+ Test: compositing/tiling/non-visible-window-tile-coverage.html
+
+ * rendering/RenderLayerBacking.cpp:
+ (WebCore::computePageTiledBackingCoverage): If the page's activity state is non-visible, use minimal tile coverage.
+ * platform/ScrollView.h:
+ * page/FrameView.h:
+ * page/FrameView.cpp:
+ (WebCore::FrameView::hide): Call adjustTiledBackingCoverage() in hide() since it now takes page visibility into account.
+
+ (WebCore::FrameView::enableSpeculativeTilingIfNeeded):
+ * testing/Internals.cpp:
+ (WebCore::Internals::setSpeculativeTilingDelayDisabledForTesting):
+ * testing/Internals.h:
+ * testing/Internals.idl: Add an internals API for disabling the 500ms delay before speculative tiling begins after
+ the main frame load finishes. This is needed for reliably testing this change.
+
</ins><span class="cx"> 2017-04-10 Per Arne Vollan <pvollan@apple.com>
</span><span class="cx">
</span><span class="cx"> Add fallback fonts to video captions stylesheet.
</span></span></pre></div>
<a id="trunkSourceWebCorepageFrameViewcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/FrameView.cpp (215180 => 215181)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/FrameView.cpp        2017-04-10 12:55:07 UTC (rev 215180)
+++ trunk/Source/WebCore/page/FrameView.cpp        2017-04-10 13:49:18 UTC (rev 215181)
</span><span class="lines">@@ -2931,6 +2931,12 @@
</span><span class="cx"> }
</span><span class="cx"> if (!shouldEnableSpeculativeTilingDuringLoading(*this))
</span><span class="cx"> return;
</span><ins>+
+ if (m_speculativeTilingDelayDisabledForTesting) {
+ speculativeTilingEnableTimerFired();
+ return;
+ }
+
</ins><span class="cx"> if (m_speculativeTilingEnableTimer.isActive())
</span><span class="cx"> return;
</span><span class="cx"> // Delay enabling a bit as load completion may trigger further loading from scripts.
</span><span class="lines">@@ -2958,6 +2964,13 @@
</span><span class="cx"> adjustTiledBackingCoverage();
</span><span class="cx"> }
</span><span class="cx"> }
</span><ins>+
+void FrameView::hide()
+{
+ ScrollView::hide();
+ adjustTiledBackingCoverage();
+}
+
</ins><span class="cx"> void FrameView::convertSubtreeLayoutToFullLayout()
</span><span class="cx"> {
</span><span class="cx"> ASSERT(m_layoutRoot);
</span></span></pre></div>
<a id="trunkSourceWebCorepageFrameViewh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/FrameView.h (215180 => 215181)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/FrameView.h        2017-04-10 12:55:07 UTC (rev 215180)
+++ trunk/Source/WebCore/page/FrameView.h        2017-04-10 13:49:18 UTC (rev 215181)
</span><span class="lines">@@ -582,6 +582,7 @@
</span><span class="cx"> void didChangeScrollOffset();
</span><span class="cx">
</span><span class="cx"> void show() final;
</span><ins>+ void hide() final;
</ins><span class="cx">
</span><span class="cx"> bool shouldPlaceBlockDirectionScrollbarOnLeft() const final;
</span><span class="cx">
</span><span class="lines">@@ -590,6 +591,8 @@
</span><span class="cx"> void willDestroyRenderTree();
</span><span class="cx"> void didDestroyRenderTree();
</span><span class="cx">
</span><ins>+ void setSpeculativeTilingDelayDisabledForTesting(bool disabled) { m_speculativeTilingDelayDisabledForTesting = disabled; }
+
</ins><span class="cx"> protected:
</span><span class="cx"> bool scrollContentsFastPath(const IntSize& scrollDelta, const IntRect& rectToScroll, const IntRect& clipRect) final;
</span><span class="cx"> void scrollContentsSlowPath(const IntRect& updateRect) final;
</span><span class="lines">@@ -862,6 +865,7 @@
</span><span class="cx">
</span><span class="cx"> bool m_visualUpdatesAllowedByClient;
</span><span class="cx"> bool m_hasFlippedBlockRenderers;
</span><ins>+ bool m_speculativeTilingDelayDisabledForTesting { false };
</ins><span class="cx">
</span><span class="cx"> ScrollPinningBehavior m_scrollPinningBehavior;
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformScrollViewh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/ScrollView.h (215180 => 215181)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ScrollView.h        2017-04-10 12:55:07 UTC (rev 215180)
+++ trunk/Source/WebCore/platform/ScrollView.h        2017-04-10 13:49:18 UTC (rev 215181)
</span><span class="lines">@@ -349,7 +349,7 @@
</span><span class="cx">
</span><span class="cx"> // Widget overrides to ensure that our children's visibility status is kept up to date when we get shown and hidden.
</span><span class="cx"> WEBCORE_EXPORT void show() override;
</span><del>- WEBCORE_EXPORT void hide() final;
</del><ins>+ WEBCORE_EXPORT void hide() override;
</ins><span class="cx"> WEBCORE_EXPORT void setParentVisible(bool) final;
</span><span class="cx">
</span><span class="cx"> // Pan scrolling.
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderLayerBackingcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderLayerBacking.cpp (215180 => 215181)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderLayerBacking.cpp        2017-04-10 12:55:07 UTC (rev 215180)
+++ trunk/Source/WebCore/rendering/RenderLayerBacking.cpp        2017-04-10 13:49:18 UTC (rev 215181)
</span><span class="lines">@@ -300,6 +300,10 @@
</span><span class="cx"> // FIXME: When we use TiledBacking for overflow, this should look at RenderView scrollability.
</span><span class="cx"> FrameView& frameView = backing->owningLayer().renderer().view().frameView();
</span><span class="cx">
</span><ins>+ // If the page is non-visible, don't incur the cost of keeping extra tiles for scrolling.
+ if (!backing->owningLayer().page().isVisible())
+ return TiledBacking::CoverageForVisibleArea;
+
</ins><span class="cx"> TiledBacking::TileCoverage tileCoverage = TiledBacking::CoverageForVisibleArea;
</span><span class="cx"> bool useMinimalTilesDuringLiveResize = frameView.inLiveResize();
</span><span class="cx"> if (frameView.speculativeTilingEnabled() && !useMinimalTilesDuringLiveResize) {
</span></span></pre></div>
<a id="trunkSourceWebCoretestingInternalscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/Internals.cpp (215180 => 215181)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/Internals.cpp        2017-04-10 12:55:07 UTC (rev 215180)
+++ trunk/Source/WebCore/testing/Internals.cpp        2017-04-10 13:49:18 UTC (rev 215181)
</span><span class="lines">@@ -800,6 +800,17 @@
</span><span class="cx"> backing->setTileSizeUpdateDelayDisabledForTesting(true);
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+void Internals::setSpeculativeTilingDelayDisabledForTesting(bool disabled)
+{
+ Document* document = contextDocument();
+ if (!document || !document->frame())
+ return;
+
+ if (auto* frameView = document->frame()->view())
+ frameView->setSpeculativeTilingDelayDisabledForTesting(disabled);
+}
+
+
</ins><span class="cx"> Node* Internals::treeScopeRootNode(Node& node)
</span><span class="cx"> {
</span><span class="cx"> return &node.treeScope().rootNode();
</span></span></pre></div>
<a id="trunkSourceWebCoretestingInternalsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/Internals.h (215180 => 215181)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/Internals.h        2017-04-10 12:55:07 UTC (rev 215180)
+++ trunk/Source/WebCore/testing/Internals.h        2017-04-10 13:49:18 UTC (rev 215181)
</span><span class="lines">@@ -128,6 +128,8 @@
</span><span class="cx">
</span><span class="cx"> void disableTileSizeUpdateDelay();
</span><span class="cx">
</span><ins>+ void setSpeculativeTilingDelayDisabledForTesting(bool);
+
</ins><span class="cx"> Ref<CSSComputedStyleDeclaration> computedStyleIncludingVisitedInfo(Element&) const;
</span><span class="cx">
</span><span class="cx"> Node* ensureUserAgentShadowRoot(Element& host);
</span></span></pre></div>
<a id="trunkSourceWebCoretestingInternalsidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/Internals.idl (215180 => 215181)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/Internals.idl        2017-04-10 12:55:07 UTC (rev 215180)
+++ trunk/Source/WebCore/testing/Internals.idl        2017-04-10 13:49:18 UTC (rev 215181)
</span><span class="lines">@@ -524,6 +524,7 @@
</span><span class="cx"> [CallWith=Document] void setAsRunningUserScripts();
</span><span class="cx">
</span><span class="cx"> void disableTileSizeUpdateDelay();
</span><ins>+ void setSpeculativeTilingDelayDisabledForTesting(boolean disabled);
</ins><span class="cx">
</span><span class="cx"> [Conditional=WEBGL] void simulateWebGLContextChanged(WebGLRenderingContextBase context);
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>