<!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>[188548] trunk/Tools</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/188548">188548</a></dd>
<dt>Author</dt> <dd>andersca@apple.com</dd>
<dt>Date</dt> <dd>2015-08-17 15:49:42 -0700 (Mon, 17 Aug 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Simplify how PlatformWebViews are created when view options change
https://bugs.webkit.org/show_bug.cgi?id=148093

Reviewed by Sam Weinig.

Instead of letting each port dictate when the PlatformWebView should be recreated we now do the following:

TestController::ensureViewSupportsOptionsForTest gets the view options for a test by calling
TestController::viewOptionsForTest, which returns a filled in ViewOptions struct for a given test. It also allows
ports to add/override settings by calling TestController::updatePlatformSpecificViewOptionsForTest.

If the current PlatformWebView doesn't support the given view options, delete the web view and create a new one.

Also, get rid of the first call to TestController::createWebViewWithOptions in TestController::initialize and
always rely on TestController::ensureViewSupportsOptionsForTest creating a PlatformWebView for us.

* WebKitTestRunner/TestController.cpp:
(WTR::TestController::ensureViewSupportsOptionsForTest):
(WTR::shouldUseFixedLayout):
(WTR::TestController::viewOptionsForTest):
(WTR::TestController::updateWebViewSizeForTest):
(WTR::TestController::updateWindowScaleForTest):
(WTR::TestController::configureViewForTest):
(WTR::TestController::initialize): Deleted.
(WTR::TestController::ensureViewSupportsOptions): Deleted.
(WTR::TestController::updateLayoutTypeForTest): Deleted.
(WTR::TestController::platformConfigureViewForTest): Deleted.
(WTR::TestController::platformResetPreferencesToConsistentValues): Deleted.
(WTR::TestController::run): Deleted.
* WebKitTestRunner/TestController.h:
* WebKitTestRunner/efl/TestControllerEfl.cpp:
(WTR::shouldUseFixedLayout):
(WTR::TestController::updatePlatformSpecificViewOptionsForTest):
(WTR::TestController::platformConfigureViewForTest):
(WTR::TestController::platformResetPreferencesToConsistentValues):
* WebKitTestRunner/ios/TestControllerIOS.mm:
(WTR::TestController::updatePlatformSpecificViewOptionsForTest):
* WebKitTestRunner/mac/TestControllerMac.mm:
(WTR::TestController::updatePlatformSpecificViewOptionsForTest):
(WTR::TestController::platformConfigureViewForTest):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
<li><a href="#trunkToolsWebKitTestRunnerTestControllercpp">trunk/Tools/WebKitTestRunner/TestController.cpp</a></li>
<li><a href="#trunkToolsWebKitTestRunnerTestControllerh">trunk/Tools/WebKitTestRunner/TestController.h</a></li>
<li><a href="#trunkToolsWebKitTestRunnereflTestControllerEflcpp">trunk/Tools/WebKitTestRunner/efl/TestControllerEfl.cpp</a></li>
<li><a href="#trunkToolsWebKitTestRunneriosTestControllerIOSmm">trunk/Tools/WebKitTestRunner/ios/TestControllerIOS.mm</a></li>
<li><a href="#trunkToolsWebKitTestRunnermacTestControllerMacmm">trunk/Tools/WebKitTestRunner/mac/TestControllerMac.mm</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (188547 => 188548)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog        2015-08-17 22:27:56 UTC (rev 188547)
+++ trunk/Tools/ChangeLog        2015-08-17 22:49:42 UTC (rev 188548)
</span><span class="lines">@@ -1,3 +1,46 @@
</span><ins>+2015-08-17  Anders Carlsson  &lt;andersca@apple.com&gt;
+
+        Simplify how PlatformWebViews are created when view options change
+        https://bugs.webkit.org/show_bug.cgi?id=148093
+
+        Reviewed by Sam Weinig.
+
+        Instead of letting each port dictate when the PlatformWebView should be recreated we now do the following:
+
+        TestController::ensureViewSupportsOptionsForTest gets the view options for a test by calling
+        TestController::viewOptionsForTest, which returns a filled in ViewOptions struct for a given test. It also allows
+        ports to add/override settings by calling TestController::updatePlatformSpecificViewOptionsForTest.
+
+        If the current PlatformWebView doesn't support the given view options, delete the web view and create a new one.
+
+        Also, get rid of the first call to TestController::createWebViewWithOptions in TestController::initialize and
+        always rely on TestController::ensureViewSupportsOptionsForTest creating a PlatformWebView for us.
+
+        * WebKitTestRunner/TestController.cpp:
+        (WTR::TestController::ensureViewSupportsOptionsForTest):
+        (WTR::shouldUseFixedLayout):
+        (WTR::TestController::viewOptionsForTest):
+        (WTR::TestController::updateWebViewSizeForTest):
+        (WTR::TestController::updateWindowScaleForTest):
+        (WTR::TestController::configureViewForTest):
+        (WTR::TestController::initialize): Deleted.
+        (WTR::TestController::ensureViewSupportsOptions): Deleted.
+        (WTR::TestController::updateLayoutTypeForTest): Deleted.
+        (WTR::TestController::platformConfigureViewForTest): Deleted.
+        (WTR::TestController::platformResetPreferencesToConsistentValues): Deleted.
+        (WTR::TestController::run): Deleted.
+        * WebKitTestRunner/TestController.h:
+        * WebKitTestRunner/efl/TestControllerEfl.cpp:
+        (WTR::shouldUseFixedLayout):
+        (WTR::TestController::updatePlatformSpecificViewOptionsForTest):
+        (WTR::TestController::platformConfigureViewForTest):
+        (WTR::TestController::platformResetPreferencesToConsistentValues):
+        * WebKitTestRunner/ios/TestControllerIOS.mm:
+        (WTR::TestController::updatePlatformSpecificViewOptionsForTest):
+        * WebKitTestRunner/mac/TestControllerMac.mm:
+        (WTR::TestController::updatePlatformSpecificViewOptionsForTest):
+        (WTR::TestController::platformConfigureViewForTest):
+
</ins><span class="cx"> 2015-08-17  Sam Weinig  &lt;sam@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         API::PageConfiguration's sessionID needs to be set whenever the API::WebsiteDataStore is set
</span></span></pre></div>
<a id="trunkToolsWebKitTestRunnerTestControllercpp"></a>
<div class="modfile"><h4>Modified: trunk/Tools/WebKitTestRunner/TestController.cpp (188547 => 188548)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/WebKitTestRunner/TestController.cpp        2015-08-17 22:27:56 UTC (rev 188547)
+++ trunk/Tools/WebKitTestRunner/TestController.cpp        2015-08-17 22:49:42 UTC (rev 188548)
</span><span class="lines">@@ -432,12 +432,6 @@
</span><span class="cx"> 
</span><span class="cx">     // Some preferences (notably mock scroll bars setting) currently cannot be re-applied to an existing view, so we need to set them now.
</span><span class="cx">     resetPreferencesToConsistentValues();
</span><del>-
-    ViewOptions viewOptions;
-    viewOptions.useRemoteLayerTree = m_shouldUseRemoteLayerTree;
-    viewOptions.shouldShowWebView = m_shouldShowWebView;
-
-    createWebViewWithOptions(viewOptions);
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void TestController::createWebViewWithOptions(const ViewOptions&amp; options)
</span><span class="lines">@@ -543,18 +537,25 @@
</span><span class="cx">     m_mainWebView-&gt;changeWindowScaleIfNeeded(1);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void TestController::ensureViewSupportsOptions(const ViewOptions&amp; options)
</del><ins>+void TestController::ensureViewSupportsOptionsForTest(const TestInvocation&amp; test)
</ins><span class="cx"> {
</span><del>-    if (m_mainWebView &amp;&amp; !m_mainWebView-&gt;viewSupportsOptions(options)) {
-        WKPageSetPageUIClient(m_mainWebView-&gt;page(), 0);
-        WKPageSetPageNavigationClient(m_mainWebView-&gt;page(), 0);
</del><ins>+    auto viewOptions = viewOptionsForTest(test);
+
+    if (m_mainWebView) {
+        if (m_mainWebView-&gt;viewSupportsOptions(viewOptions))
+            return;
+
+        WKPageSetPageUIClient(m_mainWebView-&gt;page(), nullptr);
+        WKPageSetPageNavigationClient(m_mainWebView-&gt;page(), nullptr);
</ins><span class="cx">         WKPageClose(m_mainWebView-&gt;page());
</span><del>-        
-        m_mainWebView = nullptr;
</del><span class="cx"> 
</span><del>-        createWebViewWithOptions(options);
-        resetStateToConsistentValues();
</del><ins>+        m_mainWebView = nullptr;
</ins><span class="cx">     }
</span><ins>+
+    createWebViewWithOptions(viewOptions);
+
+    if (!resetStateToConsistentValues())
+        TestInvocation::dumpWebProcessUnresponsiveness(&quot;&lt;unknown&gt; - TestController::run - Failed to reset state to consistent values\n&quot;);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void TestController::resetPreferencesToConsistentValues()
</span><span class="lines">@@ -747,67 +748,54 @@
</span><span class="cx"> #endif
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void TestController::updateWebViewSizeForTest(const TestInvocation&amp; test)
-{
-    bool isSVGW3CTest = test.urlContains(&quot;svg/W3C-SVG-1.1&quot;) || test.urlContains(&quot;svg\\W3C-SVG-1.1&quot;);
-
-    unsigned width = viewWidth;
-    unsigned height = viewHeight;
-    if (isSVGW3CTest) {
-        width = w3cSVGViewWidth;
-        height = w3cSVGViewHeight;
-    }
-
-    mainWebView()-&gt;resizeTo(width, height);
-}
-
-void TestController::updateWindowScaleForTest(PlatformWebView* view, const TestInvocation&amp; test)
-{
-    bool needsHighDPIWindow = test.urlContains(&quot;/hidpi-&quot;);
-    view-&gt;changeWindowScaleIfNeeded(needsHighDPIWindow ? 2 : 1);
-}
-
-// FIXME: move into relevant platformConfigureViewForTest()?
</del><span class="cx"> static bool shouldUseFixedLayout(const TestInvocation&amp; test)
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(CSS_DEVICE_ADAPTATION)
</span><del>-    if (test.urlContains(&quot;device-adapt/&quot;) || test.urlContains(&quot;device-adapt\\&quot;))
-        return true;
</del><ins>+        if (test.urlContains(&quot;device-adapt/&quot;) || test.urlContains(&quot;device-adapt\\&quot;))
+            return true;
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#if USE(COORDINATED_GRAPHICS) &amp;&amp; PLATFORM(EFL)
-    if (test.urlContains(&quot;sticky/&quot;) || test.urlContains(&quot;sticky\\&quot;))
-        return true;
-#endif
</del><span class="cx">     return false;
</span><del>-
-    UNUSED_PARAM(test);
</del><span class="cx"> }
</span><span class="cx"> 
</span><del>-void TestController::updateLayoutTypeForTest(const TestInvocation&amp; test)
</del><ins>+ViewOptions TestController::viewOptionsForTest(const TestInvocation&amp; test) const
</ins><span class="cx"> {
</span><span class="cx">     ViewOptions viewOptions;
</span><span class="cx"> 
</span><ins>+    viewOptions.useRemoteLayerTree = m_shouldUseRemoteLayerTree;
+    viewOptions.shouldShowWebView = m_shouldShowWebView;
</ins><span class="cx">     viewOptions.useFixedLayout = shouldUseFixedLayout(test);
</span><span class="cx"> 
</span><del>-    ensureViewSupportsOptions(viewOptions);
</del><ins>+    updatePlatformSpecificViewOptionsForTest(viewOptions, test);
+
+    return viewOptions;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-#if !PLATFORM(COCOA) &amp;&amp; !PLATFORM(GTK)
-void TestController::platformConfigureViewForTest(const TestInvocation&amp;)
</del><ins>+void TestController::updateWebViewSizeForTest(const TestInvocation&amp; test)
</ins><span class="cx"> {
</span><ins>+    bool isSVGW3CTest = test.urlContains(&quot;svg/W3C-SVG-1.1&quot;) || test.urlContains(&quot;svg\\W3C-SVG-1.1&quot;);
+
+    unsigned width = viewWidth;
+    unsigned height = viewHeight;
+    if (isSVGW3CTest) {
+        width = w3cSVGViewWidth;
+        height = w3cSVGViewHeight;
+    }
+
+    mainWebView()-&gt;resizeTo(width, height);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-void TestController::platformResetPreferencesToConsistentValues()
</del><ins>+void TestController::updateWindowScaleForTest(PlatformWebView* view, const TestInvocation&amp; test)
</ins><span class="cx"> {
</span><ins>+    bool needsHighDPIWindow = test.urlContains(&quot;/hidpi-&quot;);
+    view-&gt;changeWindowScaleIfNeeded(needsHighDPIWindow ? 2 : 1);
</ins><span class="cx"> }
</span><del>-#endif
</del><span class="cx"> 
</span><span class="cx"> void TestController::configureViewForTest(const TestInvocation&amp; test)
</span><span class="cx"> {
</span><ins>+    ensureViewSupportsOptionsForTest(test);
</ins><span class="cx">     updateWebViewSizeForTest(test);
</span><span class="cx">     updateWindowScaleForTest(mainWebView(), test);
</span><del>-    updateLayoutTypeForTest(test);
</del><span class="cx"> 
</span><span class="cx">     platformConfigureViewForTest(test);
</span><span class="cx"> }
</span><span class="lines">@@ -935,11 +923,6 @@
</span><span class="cx"> 
</span><span class="cx"> void TestController::run()
</span><span class="cx"> {
</span><del>-    if (!resetStateToConsistentValues()) {
-        TestInvocation::dumpWebProcessUnresponsiveness(&quot;&lt;unknown&gt; - TestController::run - Failed to reset state to consistent values\n&quot;);
-        return;
-    }
-
</del><span class="cx">     if (m_usingServerMode)
</span><span class="cx">         runTestingServerLoop();
</span><span class="cx">     else {
</span></span></pre></div>
<a id="trunkToolsWebKitTestRunnerTestControllerh"></a>
<div class="modfile"><h4>Modified: trunk/Tools/WebKitTestRunner/TestController.h (188547 => 188548)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/WebKitTestRunner/TestController.h        2015-08-17 22:27:56 UTC (rev 188547)
+++ trunk/Tools/WebKitTestRunner/TestController.h        2015-08-17 22:49:42 UTC (rev 188548)
</span><span class="lines">@@ -68,7 +68,6 @@
</span><span class="cx"> 
</span><span class="cx">     EventSenderProxy* eventSenderProxy() { return m_eventSenderProxy.get(); }
</span><span class="cx"> 
</span><del>-    void ensureViewSupportsOptions(const ViewOptions&amp;);
</del><span class="cx">     bool shouldUseRemoteLayerTree() const { return m_shouldUseRemoteLayerTree; }
</span><span class="cx">     
</span><span class="cx">     // Runs the run loop until `done` is true or the timeout elapses.
</span><span class="lines">@@ -142,9 +141,12 @@
</span><span class="cx">     void initializeInjectedBundlePath();
</span><span class="cx">     void initializeTestPluginDirectory();
</span><span class="cx"> 
</span><ins>+    void ensureViewSupportsOptionsForTest(const TestInvocation&amp;);
+    ViewOptions viewOptionsForTest(const TestInvocation&amp;) const;
+    void updatePlatformSpecificViewOptionsForTest(ViewOptions&amp;, const TestInvocation&amp;) const;
+
</ins><span class="cx">     void updateWebViewSizeForTest(const TestInvocation&amp;);
</span><span class="cx">     void updateWindowScaleForTest(PlatformWebView*, const TestInvocation&amp;);
</span><del>-    void updateLayoutTypeForTest(const TestInvocation&amp;);
</del><span class="cx"> 
</span><span class="cx">     void decidePolicyForGeolocationPermissionRequestIfPossible();
</span><span class="cx">     void decidePolicyForUserMediaPermissionRequestIfPossible();
</span></span></pre></div>
<a id="trunkToolsWebKitTestRunnereflTestControllerEflcpp"></a>
<div class="modfile"><h4>Modified: trunk/Tools/WebKitTestRunner/efl/TestControllerEfl.cpp (188547 => 188548)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/WebKitTestRunner/efl/TestControllerEfl.cpp        2015-08-17 22:27:56 UTC (rev 188547)
+++ trunk/Tools/WebKitTestRunner/efl/TestControllerEfl.cpp        2015-08-17 22:49:42 UTC (rev 188548)
</span><span class="lines">@@ -21,6 +21,7 @@
</span><span class="cx"> #include &quot;TestController.h&quot;
</span><span class="cx"> 
</span><span class="cx"> #include &quot;PlatformWebView.h&quot;
</span><ins>+#include &quot;TestInvocation.h&quot;
</ins><span class="cx"> #include &lt;Ecore.h&gt;
</span><span class="cx"> #include &lt;Evas.h&gt;
</span><span class="cx"> #include &lt;stdio.h&gt;
</span><span class="lines">@@ -132,4 +133,26 @@
</span><span class="cx">     return 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+static bool shouldUseFixedLayout(const TestInvocation&amp; test)
+{
+#if USE(COORDINATED_GRAPHICS)
+    if (test.urlContains(&quot;sticky/&quot;) || test.urlContains(&quot;sticky\\&quot;))
+        return true;
+#endif
+    return false;
+}
+
+void TestController::updatePlatformSpecificViewOptionsForTest(ViewOptions&amp; viewOptions, const TestInvocation&amp; test) const
+{
+    viewOptions.useFixedLayout = shouldUseFixedLayout(test);
+}
+
+void TestController::platformConfigureViewForTest(const TestInvocation&amp;)
+{
+}
+
+void TestController::platformResetPreferencesToConsistentValues()
+{
+}
+
</ins><span class="cx"> } // namespace WTR
</span></span></pre></div>
<a id="trunkToolsWebKitTestRunneriosTestControllerIOSmm"></a>
<div class="modfile"><h4>Modified: trunk/Tools/WebKitTestRunner/ios/TestControllerIOS.mm (188547 => 188548)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/WebKitTestRunner/ios/TestControllerIOS.mm        2015-08-17 22:27:56 UTC (rev 188547)
+++ trunk/Tools/WebKitTestRunner/ios/TestControllerIOS.mm        2015-08-17 22:49:42 UTC (rev 188548)
</span><span class="lines">@@ -98,6 +98,10 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+void TestController::updatePlatformSpecificViewOptionsForTest(ViewOptions&amp;, const TestInvocation&amp;) const
+{
+}
+
</ins><span class="cx"> void TestController::platformRunUntil(bool&amp; done, double timeout)
</span><span class="cx"> {
</span><span class="cx">     NSDate *endDate = (timeout &gt; 0) ? [NSDate dateWithTimeIntervalSinceNow:timeout] : [NSDate distantFuture];
</span></span></pre></div>
<a id="trunkToolsWebKitTestRunnermacTestControllerMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Tools/WebKitTestRunner/mac/TestControllerMac.mm (188547 => 188548)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/WebKitTestRunner/mac/TestControllerMac.mm        2015-08-17 22:27:56 UTC (rev 188547)
+++ trunk/Tools/WebKitTestRunner/mac/TestControllerMac.mm        2015-08-17 22:49:42 UTC (rev 188548)
</span><span class="lines">@@ -96,16 +96,15 @@
</span><span class="cx"> #endif
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void TestController::platformConfigureViewForTest(const TestInvocation&amp; test)
</del><ins>+void TestController::updatePlatformSpecificViewOptionsForTest(ViewOptions&amp; viewOptions, const TestInvocation&amp; test) const
</ins><span class="cx"> {
</span><del>-    ViewOptions viewOptions;
-
</del><span class="cx">     viewOptions.useThreadedScrolling = shouldUseThreadedScrolling(test);
</span><span class="cx">     viewOptions.useRemoteLayerTree = shouldUseRemoteLayerTree();
</span><span class="cx">     viewOptions.shouldShowWebView = shouldShowWebView();
</span><ins>+}
</ins><span class="cx"> 
</span><del>-    ensureViewSupportsOptions(viewOptions);
-
</del><ins>+void TestController::platformConfigureViewForTest(const TestInvocation&amp; test)
+{
</ins><span class="cx"> #if WK_API_ENABLED
</span><span class="cx">     if (!test.urlContains(&quot;contentextensions/&quot;))
</span><span class="cx">         return;
</span></span></pre>
</div>
</div>

</body>
</html>