<!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>[206029] trunk/Source/WebKit2</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/206029">206029</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2016-09-16 10:08:09 -0700 (Fri, 16 Sep 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Unreviewed, rolling out <a href="http://trac.webkit.org/projects/webkit/changeset/206000">r206000</a>.
https://bugs.webkit.org/show_bug.cgi?id=162062

inadvertent GCC requirement bump (Requested by mcatanzaro on
#webkit).

Reverted changeset:

&quot;Add support for enum class parameters in the message
generator&quot;
https://bugs.webkit.org/show_bug.cgi?id=162036
http://trac.webkit.org/changeset/206000</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2Scriptswebkitmessagespy">trunk/Source/WebKit2/Scripts/webkit/messages.py</a></li>
<li><a href="#trunkSourceWebKit2Scriptswebkitparserpy">trunk/Source/WebKit2/Scripts/webkit/parser.py</a></li>
<li><a href="#trunkSourceWebKit2SharedLayerTreeContexth">trunk/Source/WebKit2/Shared/LayerTreeContext.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebPageProxycpp">trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageWebPagecpp">trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageWebPageh">trunk/Source/WebKit2/WebProcess/WebPage/WebPage.h</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageWebPagemessagesin">trunk/Source/WebKit2/WebProcess/WebPage/WebPage.messages.in</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (206028 => 206029)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2016-09-16 16:45:04 UTC (rev 206028)
+++ trunk/Source/WebKit2/ChangeLog        2016-09-16 17:08:09 UTC (rev 206029)
</span><span class="lines">@@ -1,3 +1,18 @@
</span><ins>+2016-09-16  Commit Queue  &lt;commit-queue@webkit.org&gt;
+
+        Unreviewed, rolling out r206000.
+        https://bugs.webkit.org/show_bug.cgi?id=162062
+
+        inadvertent GCC requirement bump (Requested by mcatanzaro on
+        #webkit).
+
+        Reverted changeset:
+
+        &quot;Add support for enum class parameters in the message
+        generator&quot;
+        https://bugs.webkit.org/show_bug.cgi?id=162036
+        http://trac.webkit.org/changeset/206000
+
</ins><span class="cx"> 2016-09-15  Brady Eidson  &lt;beidson@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         WKWebView.hasOnlySecureContent always returns &quot;YES&quot; after going back to a CachedPage (even if it has http resources).
</span></span></pre></div>
<a id="trunkSourceWebKit2Scriptswebkitmessagespy"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Scripts/webkit/messages.py (206028 => 206029)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Scripts/webkit/messages.py        2016-09-16 16:45:04 UTC (rev 206028)
+++ trunk/Source/WebKit2/Scripts/webkit/messages.py        2016-09-16 17:08:09 UTC (rev 206029)
</span><span class="lines">@@ -66,7 +66,7 @@
</span><span class="cx">     return '#if %s\n%s#endif\n' % (condition, string)
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-def function_parameter_type(type, kind):
</del><ins>+def function_parameter_type(type):
</ins><span class="cx">     # Don't use references for built-in types.
</span><span class="cx">     builtin_types = frozenset([
</span><span class="cx">         'bool',
</span><span class="lines">@@ -85,9 +85,6 @@
</span><span class="cx">     if type in builtin_types:
</span><span class="cx">         return type
</span><span class="cx"> 
</span><del>-    if kind == 'enum':
-        return type
-
</del><span class="cx">     return 'const %s&amp;' % type
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -96,7 +93,7 @@
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> def arguments_type(message):
</span><del>-    return 'std::tuple&lt;%s&gt;' % ', '.join(function_parameter_type(parameter.type, parameter.kind) for parameter in message.parameters)
</del><ins>+    return 'std::tuple&lt;%s&gt;' % ', '.join(function_parameter_type(parameter.type) for parameter in message.parameters)
</ins><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> def reply_type(message):
</span><span class="lines">@@ -105,7 +102,7 @@
</span><span class="cx"> 
</span><span class="cx"> def message_to_struct_declaration(message):
</span><span class="cx">     result = []
</span><del>-    function_parameters = [(function_parameter_type(x.type, x.kind), x.name) for x in message.parameters]
</del><ins>+    function_parameters = [(function_parameter_type(x.type), x.name) for x in message.parameters]
</ins><span class="cx">     result.append('class %s {\n' % message.name)
</span><span class="cx">     result.append('public:\n')
</span><span class="cx">     result.append('    typedef %s Arguments;\n' % arguments_type(message))
</span><span class="lines">@@ -116,7 +113,7 @@
</span><span class="cx">     result.append('\n')
</span><span class="cx">     if message.reply_parameters != None:
</span><span class="cx">         if message.has_attribute(DELAYED_ATTRIBUTE):
</span><del>-            send_parameters = [(function_parameter_type(x.type, x.kind), x.name) for x in message.reply_parameters]
</del><ins>+            send_parameters = [(function_parameter_type(x.type), x.name) for x in message.reply_parameters]
</ins><span class="cx">             result.append('    struct DelayedReply : public ThreadSafeRefCounted&lt;DelayedReply&gt; {\n')
</span><span class="cx">             result.append('        DelayedReply(PassRefPtr&lt;IPC::Connection&gt;, std::unique_ptr&lt;IPC::Encoder&gt;);\n')
</span><span class="cx">             result.append('        ~DelayedReply();\n')
</span><span class="lines">@@ -146,21 +143,20 @@
</span><span class="cx">     return surround_in_condition(''.join(result), message.condition)
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-def forward_declaration(namespace, kind_and_type):
</del><ins>+def struct_or_class(namespace, kind_and_type):
</ins><span class="cx">     kind, type = kind_and_type
</span><span class="cx"> 
</span><span class="cx">     qualified_name = '%s::%s' % (namespace, type)
</span><span class="cx">     if kind == 'struct':
</span><span class="cx">         return 'struct %s' % type
</span><del>-    elif kind == 'enum':
-        return 'enum class %s' % type
</del><span class="cx">     else:
</span><span class="cx">         return 'class %s' % type
</span><span class="cx"> 
</span><ins>+
</ins><span class="cx"> def forward_declarations_for_namespace(namespace, kind_and_types):
</span><span class="cx">     result = []
</span><span class="cx">     result.append('namespace %s {\n' % namespace)
</span><del>-    result += ['    %s;\n' % forward_declaration(namespace, x) for x in kind_and_types]
</del><ins>+    result += ['    %s;\n' % struct_or_class(namespace, x) for x in kind_and_types]
</ins><span class="cx">     result.append('}\n')
</span><span class="cx">     return ''.join(result)
</span><span class="cx"> 
</span><span class="lines">@@ -376,7 +372,6 @@
</span><span class="cx">         'struct WebKit::WebUserStyleSheetData': ['&quot;WebUserContentControllerDataTypes.h&quot;'],
</span><span class="cx">         'struct WebKit::WebScriptMessageHandlerData': ['&quot;WebUserContentControllerDataTypes.h&quot;'],
</span><span class="cx">         'std::chrono::system_clock::time_point': ['&lt;chrono&gt;'],
</span><del>-        'WebKit::LayerHostingMode': ['&quot;LayerTreeContext.h&quot;'],
</del><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     headers = []
</span><span class="lines">@@ -480,7 +475,7 @@
</span><span class="cx">         result.append('namespace Messages {\n\nnamespace %s {\n\n' % receiver.name)
</span><span class="cx"> 
</span><span class="cx">         for message in sync_delayed_messages:
</span><del>-            send_parameters = [(function_parameter_type(x.type, x.kind), x.name) for x in message.reply_parameters]
</del><ins>+            send_parameters = [(function_parameter_type(x.type), x.name) for x in message.reply_parameters]
</ins><span class="cx"> 
</span><span class="cx">             if message.condition:
</span><span class="cx">                 result.append('#if %s\n\n' % message.condition)
</span></span></pre></div>
<a id="trunkSourceWebKit2Scriptswebkitparserpy"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Scripts/webkit/parser.py (206028 => 206029)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Scripts/webkit/parser.py        2016-09-16 16:45:04 UTC (rev 206028)
+++ trunk/Source/WebKit2/Scripts/webkit/parser.py        2016-09-16 17:08:09 UTC (rev 206029)
</span><span class="lines">@@ -133,9 +133,6 @@
</span><span class="cx">         if split[0].startswith('struct '):
</span><span class="cx">             parameter_kind = 'struct'
</span><span class="cx">             split[0] = split[0][7:]
</span><del>-        elif split[0].startswith('enum '):
-            parameter_kind = 'enum'
-            split[0] = split[0][5:]
</del><span class="cx"> 
</span><span class="cx">         parameter_type = split[0]
</span><span class="cx">         parameter_name = split[1]
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedLayerTreeContexth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/LayerTreeContext.h (206028 => 206029)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/LayerTreeContext.h        2016-09-16 16:45:04 UTC (rev 206028)
+++ trunk/Source/WebKit2/Shared/LayerTreeContext.h        2016-09-16 17:08:09 UTC (rev 206029)
</span><span class="lines">@@ -23,10 +23,10 @@
</span><span class="cx">  * THE POSSIBILITY OF SUCH DAMAGE.
</span><span class="cx">  */
</span><span class="cx"> 
</span><del>-#pragma once
</del><ins>+#ifndef LayerTreeContext_h
+#define LayerTreeContext_h
</ins><span class="cx"> 
</span><span class="cx"> #include &lt;stdint.h&gt;
</span><del>-#include &lt;wtf/EnumTraits.h&gt;
</del><span class="cx"> 
</span><span class="cx"> namespace IPC {
</span><span class="cx"> class Decoder;
</span><span class="lines">@@ -62,16 +62,6 @@
</span><span class="cx">     return !(a == b);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-}
</del><ins>+};
</ins><span class="cx"> 
</span><del>-namespace WTF {
-template&lt;&gt; struct EnumTraits&lt;WebKit::LayerHostingMode&gt; {
-    using values = EnumValues&lt;
-        WebKit::LayerHostingMode,
-#if HAVE(OUT_OF_PROCESS_LAYER_HOSTING)
-        WebKit::LayerHostingMode::OutOfProcess,
-#endif
-        WebKit::LayerHostingMode::InProcess
-    &gt;;
-};
-}
</del><ins>+#endif // LayerTreeContext_h
</ins></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebPageProxycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp (206028 => 206029)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp        2016-09-16 16:45:04 UTC (rev 206028)
+++ trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp        2016-09-16 17:08:09 UTC (rev 206029)
</span><span class="lines">@@ -1503,7 +1503,7 @@
</span><span class="cx">     LayerHostingMode layerHostingMode = m_pageClient.viewLayerHostingMode();
</span><span class="cx">     if (m_layerHostingMode != layerHostingMode) {
</span><span class="cx">         m_layerHostingMode = layerHostingMode;
</span><del>-        m_process-&gt;send(Messages::WebPage::SetLayerHostingMode(layerHostingMode), m_pageID);
</del><ins>+        m_process-&gt;send(Messages::WebPage::SetLayerHostingMode(static_cast&lt;unsigned&gt;(layerHostingMode)), m_pageID);
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -1620,7 +1620,7 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     m_layerHostingMode = layerHostingMode;
</span><del>-    m_process-&gt;send(Messages::WebPage::SetLayerHostingMode(layerHostingMode), m_pageID);
</del><ins>+    m_process-&gt;send(Messages::WebPage::SetLayerHostingMode(static_cast&lt;unsigned&gt;(layerHostingMode)), m_pageID);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void WebPageProxy::waitForDidUpdateViewState()
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageWebPagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp (206028 => 206029)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp        2016-09-16 16:45:04 UTC (rev 206028)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp        2016-09-16 17:08:09 UTC (rev 206029)
</span><span class="lines">@@ -577,7 +577,7 @@
</span><span class="cx">     if (m_viewState != parameters.viewState)
</span><span class="cx">         setViewState(parameters.viewState, false, Vector&lt;uint64_t&gt;());
</span><span class="cx">     if (m_layerHostingMode != parameters.layerHostingMode)
</span><del>-        setLayerHostingMode(parameters.layerHostingMode);
</del><ins>+        setLayerHostingMode(static_cast&lt;unsigned&gt;(parameters.layerHostingMode));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void WebPage::setPageActivityState(PageActivityState::Flags activityState)
</span><span class="lines">@@ -2608,9 +2608,9 @@
</span><span class="cx">         updateIsInWindow();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void WebPage::setLayerHostingMode(LayerHostingMode layerHostingMode)
</del><ins>+void WebPage::setLayerHostingMode(unsigned layerHostingMode)
</ins><span class="cx"> {
</span><del>-    m_layerHostingMode = layerHostingMode;
</del><ins>+    m_layerHostingMode = static_cast&lt;LayerHostingMode&gt;(layerHostingMode);
</ins><span class="cx"> 
</span><span class="cx">     m_drawingArea-&gt;setLayerHostingMode(m_layerHostingMode);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageWebPageh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebPage.h (206028 => 206029)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/WebPage.h        2016-09-16 16:45:04 UTC (rev 206028)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebPage.h        2016-09-16 17:08:09 UTC (rev 206029)
</span><span class="lines">@@ -439,7 +439,7 @@
</span><span class="cx">     bool isVisibleOrOccluded() const { return m_viewState &amp; WebCore::ViewState::IsVisibleOrOccluded; }
</span><span class="cx"> 
</span><span class="cx">     LayerHostingMode layerHostingMode() const { return m_layerHostingMode; }
</span><del>-    void setLayerHostingMode(LayerHostingMode);
</del><ins>+    void setLayerHostingMode(unsigned);
</ins><span class="cx"> 
</span><span class="cx"> #if PLATFORM(COCOA)
</span><span class="cx">     void updatePluginsActiveAndFocusedState();
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageWebPagemessagesin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebPage.messages.in (206028 => 206029)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/WebPage.messages.in        2016-09-16 16:45:04 UTC (rev 206028)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebPage.messages.in        2016-09-16 17:08:09 UTC (rev 206029)
</span><span class="lines">@@ -23,7 +23,7 @@
</span><span class="cx"> messages -&gt; WebPage LegacyReceiver {
</span><span class="cx">     SetInitialFocus(bool forward, bool isKeyboardEventValid, WebKit::WebKeyboardEvent event, uint64_t callbackID)
</span><span class="cx">     SetViewState(unsigned viewState, bool wantsDidUpdateViewState, Vector&lt;uint64_t&gt; callbackIDs)
</span><del>-    SetLayerHostingMode(enum WebKit::LayerHostingMode layerHostingMode)
</del><ins>+    SetLayerHostingMode(unsigned layerHostingMode)
</ins><span class="cx"> 
</span><span class="cx">     SetSessionID(WebCore::SessionID sessionID)
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>