<!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>[212272] trunk/Source</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/212272">212272</a></dd>
<dt>Author</dt> <dd>bburg@apple.com</dd>
<dt>Date</dt> <dd>2017-02-13 18:28:55 -0800 (Mon, 13 Feb 2017)</dd>
</dl>

<h3>Log Message</h3>
<pre>Web Inspector: expose system user interface layout direction through InspectorFrontendHost
https://bugs.webkit.org/show_bug.cgi?id=168209
&lt;rdar://problem/11573736&gt;

Reviewed by Joseph Pecoraro.

Forward the UserInterfaceLayoutDirection of the inspector page. If the WebKit client has
properly set the UI directionality from system settings in PageClient, this will get inherited
automatically by the Inspector's WebPage instance.

Source/WebCore:

* inspector/InspectorFrontendClient.h:
* inspector/InspectorFrontendClientLocal.cpp:
(WebCore::InspectorFrontendClientLocal::userInterfaceLayoutDirection):
* inspector/InspectorFrontendClientLocal.h:

* inspector/InspectorFrontendHost.h:
* inspector/InspectorFrontendHost.idl:
* inspector/InspectorFrontendHost.cpp:
(WebCore::InspectorFrontendHost::userInterfaceLayoutDirection):
Expose the directionality to the frontend as &quot;ltr&quot; or &quot;rtl&quot; strings.

Source/WebKit2:

* WebProcess/WebPage/RemoteWebInspectorUI.cpp:
(WebKit::RemoteWebInspectorUI::userInterfaceLayoutDirection):
* WebProcess/WebPage/RemoteWebInspectorUI.h:
* WebProcess/WebPage/WebInspectorUI.cpp:
(WebKit::WebInspectorUI::userInterfaceLayoutDirection):
* WebProcess/WebPage/WebInspectorUI.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorFrontendClienth">trunk/Source/WebCore/inspector/InspectorFrontendClient.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorFrontendClientLocalcpp">trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorFrontendClientLocalh">trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorFrontendHostcpp">trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorFrontendHosth">trunk/Source/WebCore/inspector/InspectorFrontendHost.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorFrontendHostidl">trunk/Source/WebCore/inspector/InspectorFrontendHost.idl</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceBaseInspectorFrontendHostStubjs">trunk/Source/WebInspectorUI/UserInterface/Base/InspectorFrontendHostStub.js</a></li>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageRemoteWebInspectorUIcpp">trunk/Source/WebKit2/WebProcess/WebPage/RemoteWebInspectorUI.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageRemoteWebInspectorUIh">trunk/Source/WebKit2/WebProcess/WebPage/RemoteWebInspectorUI.h</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageWebInspectorUIcpp">trunk/Source/WebKit2/WebProcess/WebPage/WebInspectorUI.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageWebInspectorUIh">trunk/Source/WebKit2/WebProcess/WebPage/WebInspectorUI.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (212271 => 212272)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2017-02-14 02:20:50 UTC (rev 212271)
+++ trunk/Source/WebCore/ChangeLog        2017-02-14 02:28:55 UTC (rev 212272)
</span><span class="lines">@@ -1,3 +1,26 @@
</span><ins>+2017-02-12  Brian Burg  &lt;bburg@apple.com&gt;
+
+        Web Inspector: expose system user interface layout direction through InspectorFrontendHost
+        https://bugs.webkit.org/show_bug.cgi?id=168209
+        &lt;rdar://problem/11573736&gt;
+
+        Reviewed by Joseph Pecoraro.
+
+        Forward the UserInterfaceLayoutDirection of the inspector page. If the WebKit client has
+        properly set the UI directionality from system settings in PageClient, this will get inherited
+        automatically by the Inspector's WebPage instance.
+
+        * inspector/InspectorFrontendClient.h:
+        * inspector/InspectorFrontendClientLocal.cpp:
+        (WebCore::InspectorFrontendClientLocal::userInterfaceLayoutDirection):
+        * inspector/InspectorFrontendClientLocal.h:
+
+        * inspector/InspectorFrontendHost.h:
+        * inspector/InspectorFrontendHost.idl:
+        * inspector/InspectorFrontendHost.cpp:
+        (WebCore::InspectorFrontendHost::userInterfaceLayoutDirection):
+        Expose the directionality to the frontend as &quot;ltr&quot; or &quot;rtl&quot; strings.
+
</ins><span class="cx"> 2017-02-13  Zalan Bujtas  &lt;zalan@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Simple line layout: Do not measure runs with trailing whitespace when kerning and ligatures are off.
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorFrontendClienth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorFrontendClient.h (212271 => 212272)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorFrontendClient.h        2017-02-14 02:20:50 UTC (rev 212271)
+++ trunk/Source/WebCore/inspector/InspectorFrontendClient.h        2017-02-14 02:28:55 UTC (rev 212272)
</span><span class="lines">@@ -30,6 +30,7 @@
</span><span class="cx"> 
</span><span class="cx"> #pragma once
</span><span class="cx"> 
</span><ins>+#include &quot;UserInterfaceLayoutDirection.h&quot;
</ins><span class="cx"> #include &lt;wtf/Forward.h&gt;
</span><span class="cx"> #include &lt;wtf/text/WTFString.h&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -59,6 +60,8 @@
</span><span class="cx">     virtual void bringToFront() = 0;
</span><span class="cx">     virtual void closeWindow() = 0;
</span><span class="cx"> 
</span><ins>+    virtual UserInterfaceLayoutDirection userInterfaceLayoutDirection() const = 0;
+
</ins><span class="cx">     WEBCORE_EXPORT virtual void requestSetDockSide(DockSide) = 0;
</span><span class="cx">     WEBCORE_EXPORT virtual void changeAttachedWindowHeight(unsigned) = 0;
</span><span class="cx">     WEBCORE_EXPORT virtual void changeAttachedWindowWidth(unsigned) = 0;
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorFrontendClientLocalcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.cpp (212271 => 212272)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.cpp        2017-02-14 02:20:50 UTC (rev 212271)
+++ trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.cpp        2017-02-14 02:28:55 UTC (rev 212272)
</span><span class="lines">@@ -169,6 +169,11 @@
</span><span class="cx">     m_evaluateOnLoad.clear();
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+UserInterfaceLayoutDirection InspectorFrontendClientLocal::userInterfaceLayoutDirection() const
+{
+    return m_frontendPage-&gt;userInterfaceLayoutDirection();
+}
+
</ins><span class="cx"> void InspectorFrontendClientLocal::requestSetDockSide(DockSide dockSide)
</span><span class="cx"> {
</span><span class="cx">     if (dockSide == DockSide::Undocked) {
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorFrontendClientLocalh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.h (212271 => 212272)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.h        2017-02-14 02:20:50 UTC (rev 212271)
+++ trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.h        2017-02-14 02:28:55 UTC (rev 212272)
</span><span class="lines">@@ -64,6 +64,8 @@
</span><span class="cx">     void startWindowDrag() override { }
</span><span class="cx">     WEBCORE_EXPORT void moveWindowBy(float x, float y) final;
</span><span class="cx"> 
</span><ins>+    WEBCORE_EXPORT UserInterfaceLayoutDirection userInterfaceLayoutDirection() const final;
+
</ins><span class="cx">     WEBCORE_EXPORT void requestSetDockSide(DockSide) final;
</span><span class="cx">     WEBCORE_EXPORT void changeAttachedWindowHeight(unsigned) final;
</span><span class="cx">     WEBCORE_EXPORT void changeAttachedWindowWidth(unsigned) final;
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorFrontendHostcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp (212271 => 212272)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp        2017-02-14 02:20:50 UTC (rev 212271)
+++ trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp        2017-02-14 02:28:55 UTC (rev 212272)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2007-2017 Apple Inc. All rights reserved.
</ins><span class="cx">  * Copyright (C) 2008 Matt Lilek &lt;webkit@mattlilek.com&gt;
</span><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="lines">@@ -196,6 +196,14 @@
</span><span class="cx">     return 1.0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+String InspectorFrontendHost::userInterfaceLayoutDirection()
+{
+    if (m_client &amp;&amp; m_client-&gt;userInterfaceLayoutDirection() == UserInterfaceLayoutDirection::RTL)
+        return ASCIILiteral(&quot;rtl&quot;);
+
+    return ASCIILiteral(&quot;ltr&quot;);
+}
+
</ins><span class="cx"> void InspectorFrontendHost::setAttachedWindowHeight(unsigned height)
</span><span class="cx"> {
</span><span class="cx">     if (m_client)
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorFrontendHosth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorFrontendHost.h (212271 => 212272)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorFrontendHost.h        2017-02-14 02:20:50 UTC (rev 212271)
+++ trunk/Source/WebCore/inspector/InspectorFrontendHost.h        2017-02-14 02:28:55 UTC (rev 212272)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2007 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2007-2017 Apple Inc. All rights reserved.
</ins><span class="cx">  *
</span><span class="cx">  * Redistribution and use in source and binary forms, with or without
</span><span class="cx">  * modification, are permitted provided that the following conditions
</span><span class="lines">@@ -61,6 +61,8 @@
</span><span class="cx">     void setZoomFactor(float);
</span><span class="cx">     float zoomFactor();
</span><span class="cx"> 
</span><ins>+    String userInterfaceLayoutDirection();
+
</ins><span class="cx">     void setAttachedWindowHeight(unsigned);
</span><span class="cx">     void setAttachedWindowWidth(unsigned);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorFrontendHostidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorFrontendHost.idl (212271 => 212272)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorFrontendHost.idl        2017-02-14 02:20:50 UTC (rev 212271)
+++ trunk/Source/WebCore/inspector/InspectorFrontendHost.idl        2017-02-14 02:28:55 UTC (rev 212272)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> /*
</span><del>- * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
</del><ins>+ * Copyright (C) 2007-2017 Apple Inc. All rights reserved.
</ins><span class="cx">  * Copyright (C) 2008 Matt Lilek &lt;webkit@mattlilek.com&gt;
</span><span class="cx">  * Copyright (C) 2009 Google Inc. All rights reserved.
</span><span class="cx">  *
</span><span class="lines">@@ -42,6 +42,8 @@
</span><span class="cx">     void setZoomFactor(unrestricted float zoom);
</span><span class="cx">     float zoomFactor();
</span><span class="cx"> 
</span><ins>+    DOMString userInterfaceLayoutDirection();
+
</ins><span class="cx">     void requestSetDockSide(DOMString side);
</span><span class="cx"> 
</span><span class="cx">     void setAttachedWindowHeight(unsigned long height);
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceBaseInspectorFrontendHostStubjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Base/InspectorFrontendHostStub.js (212271 => 212272)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Base/InspectorFrontendHostStub.js        2017-02-14 02:20:50 UTC (rev 212271)
+++ trunk/Source/WebInspectorUI/UserInterface/Base/InspectorFrontendHostStub.js        2017-02-14 02:28:55 UTC (rev 212272)
</span><span class="lines">@@ -64,6 +64,11 @@
</span><span class="cx">             this._windowVisible = false;
</span><span class="cx">         },
</span><span class="cx"> 
</span><ins>+        userInterfaceLayoutDirection: function()
+        {
+            return &quot;ltr&quot;;
+        },
+
</ins><span class="cx">         requestSetDockSide: function(side)
</span><span class="cx">         {
</span><span class="cx">             InspectorFrontendAPI.setDockSide(side);
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (212271 => 212272)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2017-02-14 02:20:50 UTC (rev 212271)
+++ trunk/Source/WebKit2/ChangeLog        2017-02-14 02:28:55 UTC (rev 212272)
</span><span class="lines">@@ -1,3 +1,22 @@
</span><ins>+2017-02-12  Brian Burg  &lt;bburg@apple.com&gt;
+
+        Web Inspector: expose system user interface layout direction through InspectorFrontendHost
+        https://bugs.webkit.org/show_bug.cgi?id=168209
+        &lt;rdar://problem/11573736&gt;
+
+        Reviewed by Joseph Pecoraro.
+
+        Forward the UserInterfaceLayoutDirection of the inspector page. If the WebKit client has
+        properly set the UI directionality from system settings in PageClient, this will get inherited
+        automatically by the Inspector's WebPage instance.
+
+        * WebProcess/WebPage/RemoteWebInspectorUI.cpp:
+        (WebKit::RemoteWebInspectorUI::userInterfaceLayoutDirection):
+        * WebProcess/WebPage/RemoteWebInspectorUI.h:
+        * WebProcess/WebPage/WebInspectorUI.cpp:
+        (WebKit::WebInspectorUI::userInterfaceLayoutDirection):
+        * WebProcess/WebPage/WebInspectorUI.h:
+
</ins><span class="cx"> 2017-02-13  Youenn Fablet  &lt;youennf@gmail.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [WebRTC] Creating RTCPeerConnection with libwebrtc backend is crashing on rwt
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageRemoteWebInspectorUIcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/RemoteWebInspectorUI.cpp (212271 => 212272)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/RemoteWebInspectorUI.cpp        2017-02-14 02:20:50 UTC (rev 212271)
+++ trunk/Source/WebKit2/WebProcess/WebPage/RemoteWebInspectorUI.cpp        2017-02-14 02:28:55 UTC (rev 212272)
</span><span class="lines">@@ -112,6 +112,11 @@
</span><span class="cx">     m_page.corePage()-&gt;chrome().setWindowRect(frameRect);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+WebCore::UserInterfaceLayoutDirection RemoteWebInspectorUI::userInterfaceLayoutDirection() const
+{
+    return m_page.corePage()-&gt;userInterfaceLayoutDirection();
+}
+
</ins><span class="cx"> void RemoteWebInspectorUI::bringToFront()
</span><span class="cx"> {
</span><span class="cx">     WebProcess::singleton().parentProcessConnection()-&gt;send(Messages::RemoteWebInspectorProxy::BringToFront(), m_page.pageID());
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageRemoteWebInspectorUIh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/RemoteWebInspectorUI.h (212271 => 212272)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/RemoteWebInspectorUI.h        2017-02-14 02:20:50 UTC (rev 212271)
+++ trunk/Source/WebKit2/WebProcess/WebPage/RemoteWebInspectorUI.h        2017-02-14 02:28:55 UTC (rev 212272)
</span><span class="lines">@@ -58,6 +58,8 @@
</span><span class="cx">     String backendCommandsURL() override { return m_backendCommandsURL; }
</span><span class="cx">     String debuggableType() override { return m_debuggableType; }
</span><span class="cx"> 
</span><ins>+    WebCore::UserInterfaceLayoutDirection userInterfaceLayoutDirection() const override;
+
</ins><span class="cx">     void bringToFront() override;
</span><span class="cx">     void closeWindow() override;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageWebInspectorUIcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebInspectorUI.cpp (212271 => 212272)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/WebInspectorUI.cpp        2017-02-14 02:20:50 UTC (rev 212271)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebInspectorUI.cpp        2017-02-14 02:28:55 UTC (rev 212272)
</span><span class="lines">@@ -138,6 +138,11 @@
</span><span class="cx">     m_underTest = false;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+WebCore::UserInterfaceLayoutDirection WebInspectorUI::userInterfaceLayoutDirection() const
+{
+    return m_page.corePage()-&gt;userInterfaceLayoutDirection();
+}
+
</ins><span class="cx"> void WebInspectorUI::requestSetDockSide(DockSide side)
</span><span class="cx"> {
</span><span class="cx">     auto&amp; webProcess = WebProcess::singleton();
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageWebInspectorUIh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebInspectorUI.h (212271 => 212272)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/WebInspectorUI.h        2017-02-14 02:20:50 UTC (rev 212271)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebInspectorUI.h        2017-02-14 02:28:55 UTC (rev 212272)
</span><span class="lines">@@ -90,6 +90,8 @@
</span><span class="cx">     void bringToFront() override;
</span><span class="cx">     void closeWindow() override;
</span><span class="cx"> 
</span><ins>+    WebCore::UserInterfaceLayoutDirection userInterfaceLayoutDirection() const override;
+
</ins><span class="cx">     void requestSetDockSide(DockSide) override;
</span><span class="cx">     void changeAttachedWindowHeight(unsigned) override;
</span><span class="cx">     void changeAttachedWindowWidth(unsigned) override;
</span></span></pre>
</div>
</div>

</body>
</html>