<!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>[201620] trunk/Source/WebInspectorUI</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/201620">201620</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2016-06-02 15:11:54 -0700 (Thu, 02 Jun 2016)</dd>
</dl>
<h3>Log Message</h3>
<pre>Web Inspector: Modernize some function expressions that bind(this) to arrow functions
https://bugs.webkit.org/show_bug.cgi?id=158315
Patch by Joseph Pecoraro <pecoraro@apple.com> on 2016-06-02
Reviewed by Brian Burg.
Convert a common "function(x) { ... }.bind(this)" pattern to use arrow
functions "(x) => { ... }", which lexically binds `this`, slightly faster,
and uses less memory.
* UserInterface/Base/Main.js:
(WebInspector._updateNewTabButtonState):
* UserInterface/Controllers/BreakpointPopoverController.js:
(WebInspector.BreakpointPopoverController.prototype._createPopoverContent):
* UserInterface/Controllers/TypeTokenAnnotator.js:
(WebInspector.TypeTokenAnnotator.prototype.insertAnnotations):
(WebInspector.TypeTokenAnnotator.prototype.insertAnnotations.): Deleted.
* UserInterface/Models/RenderingFrameTimelineRecord.js:
(WebInspector.RenderingFrameTimelineRecord.prototype._calculateDurationRemainder):
(WebInspector.RenderingFrameTimelineRecord):
* UserInterface/Models/Resource.js:
(WebInspector.Resource.prototype.requestContent):
* UserInterface/Models/Script.js:
(WebInspector.Script.prototype.requestScriptSyntaxTree):
(WebInspector.Script.prototype.requestScriptSyntaxTree.makeSyntaxTreeAndCallCallback): Deleted.
* UserInterface/Models/SourceCodeLocation.js:
(WebInspector.SourceCodeLocation.prototype.populateLiveDisplayLocationString):
* UserInterface/Models/WrappedPromise.js:
(WebInspector.WrappedPromise):
* UserInterface/Views/BreakpointActionView.js:
(WebInspector.BreakpointActionView.prototype._updateBody):
* UserInterface/Views/BreakpointTreeElement.js:
(WebInspector.BreakpointTreeElement.prototype._dataUpdated):
* UserInterface/Views/CSSStyleDeclarationTextEditor.js:
(WebInspector.CSSStyleDeclarationTextEditor.prototype._updateTextMarkers.update):
(WebInspector.CSSStyleDeclarationTextEditor.prototype._updateTextMarkers):
* UserInterface/Views/DefaultDashboardView.js:
(WebInspector.DefaultDashboardView.prototype._appendElementForNamedItem.set item):
(WebInspector.DefaultDashboardView.prototype._appendElementForNamedItem):
* UserInterface/Views/ErrorObjectView.js:
(WebInspector.ErrorObjectView.prototype.update):
* UserInterface/Views/GeneralTreeElement.js:
(WebInspector.GeneralTreeElement.prototype.onattach):
(WebInspector.GeneralTreeElement.prototype.onattach.this._boundContextMenuEventHandler): Deleted.
* UserInterface/Views/InlineSwatch.js:
(WebInspector.InlineSwatch.prototype._getNextValidHEXFormat):
(WebInspector.InlineSwatch):
* UserInterface/Views/LayerTreeDetailsSidebarPanel.js:
(WebInspector.LayerTreeDetailsSidebarPanel.prototype.refresh):
(WebInspector.LayerTreeDetailsSidebarPanel.prototype._showPopoverForSelectedNode):
(WebInspector.LayerTreeDetailsSidebarPanel.prototype._contentForPopover):
* UserInterface/Views/LogContentView.js:
(WebInspector.LogContentView.prototype._mouseup):
* UserInterface/Views/NavigationSidebarPanel.js:
(WebInspector.NavigationSidebarPanel.prototype._checkElementsForPendingViewStateCookie):
* UserInterface/Views/ObjectTreeBaseTreeElement.js:
(WebInspector.ObjectTreeBaseTreeElement.prototype.createGetterElement):
(WebInspector.ObjectTreeBaseTreeElement.prototype.createGetterElement.): Deleted.
* UserInterface/Views/ObjectTreePropertyTreeElement.js:
(WebInspector.ObjectTreePropertyTreeElement.prototype._updateEntries):
* UserInterface/Views/ObjectTreeView.js:
(WebInspector.ObjectTreeView.prototype._updateEntries):
* UserInterface/Views/ResourceDetailsSidebarPanel.js:
(WebInspector.ResourceDetailsSidebarPanel.prototype._refreshImageSizeSection):
* UserInterface/Views/ScopeChainDetailsSidebarPanel.js:
(WebInspector.ScopeChainDetailsSidebarPanel.prototype._addWatchExpressionButtonClicked):
(WebInspector.ScopeChainDetailsSidebarPanel.prototype._objectTreeElementAddContextMenuItems):
(WebInspector.ScopeChainDetailsSidebarPanel.prototype._addWatchExpressionButtonClicked.this._codeMirror.addKeyMap): Deleted.
* UserInterface/Views/TabBar.js:
* UserInterface/Views/VisualStylePropertyEditor.js:
(WebInspector.VisualStylePropertyEditor.prototype._checkDependencies):</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebInspectorUIChangeLog">trunk/Source/WebInspectorUI/ChangeLog</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceBaseMainjs">trunk/Source/WebInspectorUI/UserInterface/Base/Main.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceControllersBreakpointPopoverControllerjs">trunk/Source/WebInspectorUI/UserInterface/Controllers/BreakpointPopoverController.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceControllersTypeTokenAnnotatorjs">trunk/Source/WebInspectorUI/UserInterface/Controllers/TypeTokenAnnotator.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceModelsRenderingFrameTimelineRecordjs">trunk/Source/WebInspectorUI/UserInterface/Models/RenderingFrameTimelineRecord.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceModelsResourcejs">trunk/Source/WebInspectorUI/UserInterface/Models/Resource.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceModelsScriptjs">trunk/Source/WebInspectorUI/UserInterface/Models/Script.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceModelsSourceCodeLocationjs">trunk/Source/WebInspectorUI/UserInterface/Models/SourceCodeLocation.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceModelsWrappedPromisejs">trunk/Source/WebInspectorUI/UserInterface/Models/WrappedPromise.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsBreakpointActionViewjs">trunk/Source/WebInspectorUI/UserInterface/Views/BreakpointActionView.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsBreakpointTreeElementjs">trunk/Source/WebInspectorUI/UserInterface/Views/BreakpointTreeElement.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsCSSStyleDeclarationTextEditorjs">trunk/Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsDefaultDashboardViewjs">trunk/Source/WebInspectorUI/UserInterface/Views/DefaultDashboardView.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsErrorObjectViewjs">trunk/Source/WebInspectorUI/UserInterface/Views/ErrorObjectView.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsGeneralTreeElementjs">trunk/Source/WebInspectorUI/UserInterface/Views/GeneralTreeElement.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsInlineSwatchjs">trunk/Source/WebInspectorUI/UserInterface/Views/InlineSwatch.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsLayerTreeDetailsSidebarPaneljs">trunk/Source/WebInspectorUI/UserInterface/Views/LayerTreeDetailsSidebarPanel.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsLogContentViewjs">trunk/Source/WebInspectorUI/UserInterface/Views/LogContentView.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsNavigationSidebarPaneljs">trunk/Source/WebInspectorUI/UserInterface/Views/NavigationSidebarPanel.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsObjectTreeBaseTreeElementjs">trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreeBaseTreeElement.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsObjectTreePropertyTreeElementjs">trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreePropertyTreeElement.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsObjectTreeViewjs">trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreeView.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsResourceDetailsSidebarPaneljs">trunk/Source/WebInspectorUI/UserInterface/Views/ResourceDetailsSidebarPanel.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsScopeChainDetailsSidebarPaneljs">trunk/Source/WebInspectorUI/UserInterface/Views/ScopeChainDetailsSidebarPanel.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsTabBarjs">trunk/Source/WebInspectorUI/UserInterface/Views/TabBar.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsVisualStylePropertyEditorjs">trunk/Source/WebInspectorUI/UserInterface/Views/VisualStylePropertyEditor.js</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebInspectorUIChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/ChangeLog (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/ChangeLog        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/ChangeLog        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -1,3 +1,76 @@
</span><ins>+2016-06-02 Joseph Pecoraro <pecoraro@apple.com>
+
+ Web Inspector: Modernize some function expressions that bind(this) to arrow functions
+ https://bugs.webkit.org/show_bug.cgi?id=158315
+
+ Reviewed by Brian Burg.
+
+ Convert a common "function(x) { ... }.bind(this)" pattern to use arrow
+ functions "(x) => { ... }", which lexically binds `this`, slightly faster,
+ and uses less memory.
+
+ * UserInterface/Base/Main.js:
+ (WebInspector._updateNewTabButtonState):
+ * UserInterface/Controllers/BreakpointPopoverController.js:
+ (WebInspector.BreakpointPopoverController.prototype._createPopoverContent):
+ * UserInterface/Controllers/TypeTokenAnnotator.js:
+ (WebInspector.TypeTokenAnnotator.prototype.insertAnnotations):
+ (WebInspector.TypeTokenAnnotator.prototype.insertAnnotations.): Deleted.
+ * UserInterface/Models/RenderingFrameTimelineRecord.js:
+ (WebInspector.RenderingFrameTimelineRecord.prototype._calculateDurationRemainder):
+ (WebInspector.RenderingFrameTimelineRecord):
+ * UserInterface/Models/Resource.js:
+ (WebInspector.Resource.prototype.requestContent):
+ * UserInterface/Models/Script.js:
+ (WebInspector.Script.prototype.requestScriptSyntaxTree):
+ (WebInspector.Script.prototype.requestScriptSyntaxTree.makeSyntaxTreeAndCallCallback): Deleted.
+ * UserInterface/Models/SourceCodeLocation.js:
+ (WebInspector.SourceCodeLocation.prototype.populateLiveDisplayLocationString):
+ * UserInterface/Models/WrappedPromise.js:
+ (WebInspector.WrappedPromise):
+ * UserInterface/Views/BreakpointActionView.js:
+ (WebInspector.BreakpointActionView.prototype._updateBody):
+ * UserInterface/Views/BreakpointTreeElement.js:
+ (WebInspector.BreakpointTreeElement.prototype._dataUpdated):
+ * UserInterface/Views/CSSStyleDeclarationTextEditor.js:
+ (WebInspector.CSSStyleDeclarationTextEditor.prototype._updateTextMarkers.update):
+ (WebInspector.CSSStyleDeclarationTextEditor.prototype._updateTextMarkers):
+ * UserInterface/Views/DefaultDashboardView.js:
+ (WebInspector.DefaultDashboardView.prototype._appendElementForNamedItem.set item):
+ (WebInspector.DefaultDashboardView.prototype._appendElementForNamedItem):
+ * UserInterface/Views/ErrorObjectView.js:
+ (WebInspector.ErrorObjectView.prototype.update):
+ * UserInterface/Views/GeneralTreeElement.js:
+ (WebInspector.GeneralTreeElement.prototype.onattach):
+ (WebInspector.GeneralTreeElement.prototype.onattach.this._boundContextMenuEventHandler): Deleted.
+ * UserInterface/Views/InlineSwatch.js:
+ (WebInspector.InlineSwatch.prototype._getNextValidHEXFormat):
+ (WebInspector.InlineSwatch):
+ * UserInterface/Views/LayerTreeDetailsSidebarPanel.js:
+ (WebInspector.LayerTreeDetailsSidebarPanel.prototype.refresh):
+ (WebInspector.LayerTreeDetailsSidebarPanel.prototype._showPopoverForSelectedNode):
+ (WebInspector.LayerTreeDetailsSidebarPanel.prototype._contentForPopover):
+ * UserInterface/Views/LogContentView.js:
+ (WebInspector.LogContentView.prototype._mouseup):
+ * UserInterface/Views/NavigationSidebarPanel.js:
+ (WebInspector.NavigationSidebarPanel.prototype._checkElementsForPendingViewStateCookie):
+ * UserInterface/Views/ObjectTreeBaseTreeElement.js:
+ (WebInspector.ObjectTreeBaseTreeElement.prototype.createGetterElement):
+ (WebInspector.ObjectTreeBaseTreeElement.prototype.createGetterElement.): Deleted.
+ * UserInterface/Views/ObjectTreePropertyTreeElement.js:
+ (WebInspector.ObjectTreePropertyTreeElement.prototype._updateEntries):
+ * UserInterface/Views/ObjectTreeView.js:
+ (WebInspector.ObjectTreeView.prototype._updateEntries):
+ * UserInterface/Views/ResourceDetailsSidebarPanel.js:
+ (WebInspector.ResourceDetailsSidebarPanel.prototype._refreshImageSizeSection):
+ * UserInterface/Views/ScopeChainDetailsSidebarPanel.js:
+ (WebInspector.ScopeChainDetailsSidebarPanel.prototype._addWatchExpressionButtonClicked):
+ (WebInspector.ScopeChainDetailsSidebarPanel.prototype._objectTreeElementAddContextMenuItems):
+ (WebInspector.ScopeChainDetailsSidebarPanel.prototype._addWatchExpressionButtonClicked.this._codeMirror.addKeyMap): Deleted.
+ * UserInterface/Views/TabBar.js:
+ * UserInterface/Views/VisualStylePropertyEditor.js:
+ (WebInspector.VisualStylePropertyEditor.prototype._checkDependencies):
+
</ins><span class="cx"> 2016-05-31 Nikita Vasilyev <nvasilyev@apple.com>
</span><span class="cx">
</span><span class="cx"> Web Inspector: Storage DataGrids have a half-pixel transparent/white border below the header
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceBaseMainjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Base/Main.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Base/Main.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Base/Main.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -522,11 +522,7 @@
</span><span class="cx"> {
</span><span class="cx"> let allTabs = [...this._knownTabClassesByType.values()];
</span><span class="cx"> let addableTabs = allTabs.filter((tabClass) => !tabClass.isEphemeral());
</span><del>-
- // FIXME: Use arrow functions once http://webkit.org/b/152497 is resolved.
- let canMakeNewTab = addableTabs.some(function(tabClass) {
- return this.isNewTabWithTypeAllowed(tabClass.Type);
- }.bind(this));
</del><ins>+ let canMakeNewTab = addableTabs.some((tabClass) => this.isNewTabWithTypeAllowed(tabClass.Type));
</ins><span class="cx"> this.tabBar.newTabItem.disabled = !canMakeNewTab;
</span><span class="cx"> };
</span><span class="cx">
</span><span class="lines">@@ -2368,19 +2364,19 @@
</span><span class="cx"> this._downloadingPage = true;
</span><span class="cx"> this._updateDownloadToolbarButton();
</span><span class="cx">
</span><del>- PageAgent.archive(function(error, data) {
</del><ins>+ PageAgent.archive((error, data) => {
</ins><span class="cx"> this._downloadingPage = false;
</span><span class="cx"> this._updateDownloadToolbarButton();
</span><span class="cx">
</span><span class="cx"> if (error)
</span><span class="cx"> return;
</span><span class="cx">
</span><del>- var mainFrame = WebInspector.frameResourceManager.mainFrame;
- var archiveName = mainFrame.mainResource.urlComponents.host || mainFrame.mainResource.displayName || "Archive";
- var url = "web-inspector:///" + encodeURI(archiveName) + ".webarchive";
</del><ins>+ let mainFrame = WebInspector.frameResourceManager.mainFrame;
+ let archiveName = mainFrame.mainResource.urlComponents.host || mainFrame.mainResource.displayName || "Archive";
+ let url = "web-inspector:///" + encodeURI(archiveName) + ".webarchive";
</ins><span class="cx">
</span><span class="cx"> InspectorFrontendHost.save(url, data, true, true);
</span><del>- }.bind(this));
</del><ins>+ });
</ins><span class="cx"> };
</span><span class="cx">
</span><span class="cx"> WebInspector.canArchiveMainFrame = function()
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceControllersBreakpointPopoverControllerjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Controllers/BreakpointPopoverController.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Controllers/BreakpointPopoverController.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Controllers/BreakpointPopoverController.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -161,10 +161,10 @@
</span><span class="cx"> completionController.addExtendedCompletionProvider("javascript", WebInspector.javaScriptRuntimeCompletionProvider);
</span><span class="cx">
</span><span class="cx"> // CodeMirror needs a refresh after the popover displays, to layout, otherwise it doesn't appear.
</span><del>- setTimeout(function() {
</del><ins>+ setTimeout(() => {
</ins><span class="cx"> this._conditionCodeMirror.refresh();
</span><span class="cx"> this._conditionCodeMirror.focus();
</span><del>- }.bind(this), 0);
</del><ins>+ }, 0);
</ins><span class="cx">
</span><span class="cx"> // COMPATIBILITY (iOS 7): Debugger.setBreakpoint did not support options.
</span><span class="cx"> if (DebuggerAgent.setBreakpoint.supports("options")) {
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceControllersTypeTokenAnnotatorjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Controllers/TypeTokenAnnotator.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Controllers/TypeTokenAnnotator.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Controllers/TypeTokenAnnotator.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -44,12 +44,11 @@
</span><span class="cx"> var scriptSyntaxTree = this._script.scriptSyntaxTree;
</span><span class="cx">
</span><span class="cx"> if (!scriptSyntaxTree) {
</span><del>- this._script.requestScriptSyntaxTree(function(syntaxTree) {
</del><ins>+ this._script.requestScriptSyntaxTree((syntaxTree) => {
</ins><span class="cx"> // After requesting the tree, we still might get a null tree from a parse error.
</span><span class="cx"> if (syntaxTree)
</span><span class="cx"> this.insertAnnotations();
</span><del>- }.bind(this));
-
</del><ins>+ });
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -60,20 +59,20 @@
</span><span class="cx">
</span><span class="cx"> var startTime = Date.now();
</span><span class="cx"> var allNodesInRange = scriptSyntaxTree.filterByRange(startOffset, endOffset);
</span><del>- scriptSyntaxTree.updateTypes(allNodesInRange, function afterTypeUpdates(nodesWithUpdatedTypes) {
</del><ins>+ scriptSyntaxTree.updateTypes(allNodesInRange, (nodesWithUpdatedTypes) => {
</ins><span class="cx"> // Because this is an asynchronous call, we could have been deactivated before the callback function is called.
</span><span class="cx"> if (!this.isActive())
</span><span class="cx"> return;
</span><span class="cx">
</span><span class="cx"> nodesWithUpdatedTypes.forEach(this._insertTypeToken, this);
</span><span class="cx">
</span><del>- var totalTime = Date.now() - startTime;
- var timeoutTime = Number.constrain(8 * totalTime, 500, 2000);
- this._timeoutIdentifier = setTimeout(function timeoutUpdate() {
</del><ins>+ let totalTime = Date.now() - startTime;
+ let timeoutTime = Number.constrain(8 * totalTime, 500, 2000);
+ this._timeoutIdentifier = setTimeout(() => {
</ins><span class="cx"> this._timeoutIdentifier = null;
</span><span class="cx"> this.insertAnnotations();
</span><del>- }.bind(this), timeoutTime);
- }.bind(this));
</del><ins>+ }, timeoutTime);
+ });
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> clearAnnotations()
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceModelsRenderingFrameTimelineRecordjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Models/RenderingFrameTimelineRecord.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Models/RenderingFrameTimelineRecord.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/RenderingFrameTimelineRecord.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -127,12 +127,12 @@
</span><span class="cx">
</span><span class="cx"> _calculateDurationRemainder()
</span><span class="cx"> {
</span><del>- return Object.keys(WebInspector.RenderingFrameTimelineRecord.TaskType).reduce(function(previousValue, key) {
- var taskType = WebInspector.RenderingFrameTimelineRecord.TaskType[key];
</del><ins>+ return Object.keys(WebInspector.RenderingFrameTimelineRecord.TaskType).reduce((previousValue, key) => {
+ let taskType = WebInspector.RenderingFrameTimelineRecord.TaskType[key];
</ins><span class="cx"> if (taskType === WebInspector.RenderingFrameTimelineRecord.TaskType.Other)
</span><span class="cx"> return previousValue;
</span><span class="cx"> return previousValue - this.durationForTask(taskType);
</span><del>- }.bind(this), this.duration);
</del><ins>+ }, this.duration);
</ins><span class="cx"> }
</span><span class="cx"> };
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceModelsResourcejs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Models/Resource.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Models/Resource.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/Resource.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -650,10 +650,10 @@
</span><span class="cx"> return Promise.resolve({error: WebInspector.UIString("An error occurred trying to load the resource.")});
</span><span class="cx">
</span><span class="cx"> if (!this._finishThenRequestContentPromise) {
</span><del>- this._finishThenRequestContentPromise = new Promise(function (resolve, reject) {
</del><ins>+ this._finishThenRequestContentPromise = new Promise((resolve, reject) => {
</ins><span class="cx"> this.addEventListener(WebInspector.Resource.Event.LoadingDidFinish, resolve);
</span><span class="cx"> this.addEventListener(WebInspector.Resource.Event.LoadingDidFail, reject);
</span><del>- }.bind(this)).then(WebInspector.SourceCode.prototype.requestContent.bind(this));
</del><ins>+ }).then(WebInspector.SourceCode.prototype.requestContent.bind(this));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> return this._finishThenRequestContentPromise;
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceModelsScriptjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Models/Script.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Models/Script.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/Script.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -217,15 +217,14 @@
</span><span class="cx"> requestScriptSyntaxTree(callback)
</span><span class="cx"> {
</span><span class="cx"> if (this._scriptSyntaxTree) {
</span><del>- setTimeout(function() { callback(this._scriptSyntaxTree); }.bind(this), 0);
</del><ins>+ setTimeout(() => { callback(this._scriptSyntaxTree); }, 0);
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- var makeSyntaxTreeAndCallCallback = function(content)
- {
</del><ins>+ var makeSyntaxTreeAndCallCallback = () => {
</ins><span class="cx"> this._makeSyntaxTree(content);
</span><span class="cx"> callback(this._scriptSyntaxTree);
</span><del>- }.bind(this);
</del><ins>+ };
</ins><span class="cx">
</span><span class="cx"> var content = this.content;
</span><span class="cx"> if (!content && this._resource && this._resource.type === WebInspector.Resource.Type.Script && this._resource.finished)
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceModelsSourceCodeLocationjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Models/SourceCodeLocation.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Models/SourceCodeLocation.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/SourceCodeLocation.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -244,10 +244,7 @@
</span><span class="cx"> var boundMouseOverOrMove = mouseOverOrMove.bind(this);
</span><span class="cx"> element.addEventListener("mouseover", boundMouseOverOrMove);
</span><span class="cx"> element.addEventListener("mousemove", boundMouseOverOrMove);
</span><del>-
- element.addEventListener("mouseout", function(event) {
- updateDisplayString.call(this, false);
- }.bind(this));
</del><ins>+ element.addEventListener("mouseout", (event) => { updateDisplayString.call(this, false); });
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // Protected
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceModelsWrappedPromisejs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Models/WrappedPromise.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Models/WrappedPromise.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/WrappedPromise.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -27,13 +27,13 @@
</span><span class="cx"> {
</span><span class="cx"> constructor(work)
</span><span class="cx"> {
</span><del>- this._promise = new Promise(function(resolve, reject) {
</del><ins>+ this._promise = new Promise((resolve, reject) => {
</ins><span class="cx"> this._resolve = resolve;
</span><span class="cx"> this._reject = reject;
</span><span class="cx">
</span><span class="cx"> if (work && typeof work === "function")
</span><span class="cx"> work();
</span><del>- }.bind(this));
</del><ins>+ });
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // Public
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsBreakpointActionViewjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/BreakpointActionView.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/BreakpointActionView.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/BreakpointActionView.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -167,11 +167,11 @@
</span><span class="cx"> completionController.addExtendedCompletionProvider("javascript", WebInspector.javaScriptRuntimeCompletionProvider);
</span><span class="cx">
</span><span class="cx"> // CodeMirror needs a refresh after the popover displays, to layout, otherwise it doesn't appear.
</span><del>- setTimeout(function() {
</del><ins>+ setTimeout(() => {
</ins><span class="cx"> this._codeMirror.refresh();
</span><span class="cx"> if (!omitFocus)
</span><span class="cx"> this._codeMirror.focus();
</span><del>- }.bind(this), 0);
</del><ins>+ }, 0);
</ins><span class="cx">
</span><span class="cx"> break;
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsBreakpointTreeElementjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/BreakpointTreeElement.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/BreakpointTreeElement.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/BreakpointTreeElement.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -231,9 +231,9 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> this.element.classList.add(WebInspector.BreakpointTreeElement.ProbeDataUpdatedStyleClassName);
</span><del>- this._removeIconAnimationTimeoutIdentifier = setTimeout(function() {
</del><ins>+ this._removeIconAnimationTimeoutIdentifier = setTimeout(() => {
</ins><span class="cx"> this.element.classList.remove(WebInspector.BreakpointTreeElement.ProbeDataUpdatedStyleClassName);
</span><del>- }.bind(this), WebInspector.BreakpointTreeElement.ProbeDataUpdatedAnimationDuration);
</del><ins>+ }, WebInspector.BreakpointTreeElement.ProbeDataUpdatedAnimationDuration);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> _breakpointLocationDidChange(event)
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsCSSStyleDeclarationTextEditorjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -803,9 +803,9 @@
</span><span class="cx">
</span><span class="cx"> if (!this._codeMirror.getOption("readOnly")) {
</span><span class="cx"> // Look for comments that look like properties and add checkboxes in front of them.
</span><del>- this._codeMirror.eachLine(function(lineHandler) {
</del><ins>+ this._codeMirror.eachLine((lineHandler) => {
</ins><span class="cx"> this._createCommentedCheckboxMarker(lineHandler);
</span><del>- }.bind(this));
</del><ins>+ });
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // Look for swatchable values and make inline swatches.
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsDefaultDashboardViewjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/DefaultDashboardView.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/DefaultDashboardView.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/DefaultDashboardView.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -122,9 +122,9 @@
</span><span class="cx"> }
</span><span class="cx"> });
</span><span class="cx">
</span><del>- item.container.addEventListener("click", function(event) {
</del><ins>+ item.container.addEventListener("click", (event) => {
</ins><span class="cx"> this._itemWasClicked(name);
</span><del>- }.bind(this));
</del><ins>+ });
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> _itemWasClicked(name)
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsErrorObjectViewjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ErrorObjectView.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/ErrorObjectView.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ErrorObjectView.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -88,14 +88,14 @@
</span><span class="cx">
</span><span class="cx"> update()
</span><span class="cx"> {
</span><del>- this._object.getOwnPropertyDescriptorsAsObject(function(properties) {
</del><ins>+ this._object.getOwnPropertyDescriptorsAsObject((properties) => {
</ins><span class="cx"> console.assert(properties && properties.stack && properties.stack.value);
</span><span class="cx">
</span><span class="cx"> if (!this._hasStackTrace)
</span><span class="cx"> this._buildStackTrace(properties.stack.value.value);
</span><span class="cx">
</span><span class="cx"> this._hasStackTrace = true;
</span><del>- }.bind(this));
</del><ins>+ });
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> expand()
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsGeneralTreeElementjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/GeneralTreeElement.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/GeneralTreeElement.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/GeneralTreeElement.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -215,7 +215,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if (!this._boundContextMenuEventHandler && this.treeOutline.oncontextmenu && typeof this.treeOutline.oncontextmenu === "function") {
</span><del>- this._boundContextMenuEventHandler = function(event) { this.treeOutline.oncontextmenu(event, this); }.bind(this);
</del><ins>+ this._boundContextMenuEventHandler = (event) => { this.treeOutline.oncontextmenu(event, this); };
</ins><span class="cx"> this._listItemNode.addEventListener("contextmenu", this._boundContextMenuEventHandler);
</span><span class="cx"> }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsInlineSwatchjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/InlineSwatch.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/InlineSwatch.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/InlineSwatch.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -254,10 +254,7 @@
</span><span class="cx"> }
</span><span class="cx"> ];
</span><span class="cx">
</span><del>- // FIXME: <https://webkit.org/b/152497> Arrow functions: "this" isn't lexically bound
- let currentColorIsHEX = hexFormats.some(function(info) {
- return info.format === this._value.format;
- }.bind(this));
</del><ins>+ let currentColorIsHEX = hexFormats.some((info) => info.format === this._value.format);
</ins><span class="cx">
</span><span class="cx"> for (let i = 0; i < hexFormats.length; ++i) {
</span><span class="cx"> if (currentColorIsHEX && this._value.format !== hexFormats[i].format)
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsLayerTreeDetailsSidebarPaneljs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/LayerTreeDetailsSidebarPanel.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/LayerTreeDetailsSidebarPanel.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/LayerTreeDetailsSidebarPanel.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -67,10 +67,10 @@
</span><span class="cx"> if (!this.domNode)
</span><span class="cx"> return;
</span><span class="cx">
</span><del>- WebInspector.layerTreeManager.layersForNode(this.domNode, function(layerForNode, childLayers) {
</del><ins>+ WebInspector.layerTreeManager.layersForNode(this.domNode, (layerForNode, childLayers) => {
</ins><span class="cx"> this._unfilteredChildLayers = childLayers;
</span><span class="cx"> this._updateDisplayWithLayers(layerForNode, childLayers);
</span><del>- }.bind(this));
</del><ins>+ });
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // DOMDetailsSidebarPanel Overrides
</span><span class="lines">@@ -318,10 +318,10 @@
</span><span class="cx"> if (!dataGridNode)
</span><span class="cx"> return;
</span><span class="cx">
</span><del>- this._contentForPopover(dataGridNode.layer, function(content) {
</del><ins>+ this._contentForPopover(dataGridNode.layer, (content) => {
</ins><span class="cx"> if (dataGridNode === this._dataGrid.selectedNode)
</span><span class="cx"> this._updatePopoverForSelectedNode(content);
</span><del>- }.bind(this));
</del><ins>+ });
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> _updatePopoverForSelectedNode(content)
</span><span class="lines">@@ -357,7 +357,7 @@
</span><span class="cx">
</span><span class="cx"> var list = content.appendChild(document.createElement("ul"));
</span><span class="cx">
</span><del>- WebInspector.layerTreeManager.reasonsForCompositingLayer(layer, function(compositingReasons) {
</del><ins>+ WebInspector.layerTreeManager.reasonsForCompositingLayer(layer, (compositingReasons) => {
</ins><span class="cx"> if (isEmptyObject(compositingReasons)) {
</span><span class="cx"> callback(content);
</span><span class="cx"> return;
</span><span class="lines">@@ -366,7 +366,7 @@
</span><span class="cx"> this._populateListOfCompositingReasons(list, compositingReasons);
</span><span class="cx">
</span><span class="cx"> callback(content);
</span><del>- }.bind(this));
</del><ins>+ });
</ins><span class="cx">
</span><span class="cx"> return content;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsLogContentViewjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/LogContentView.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/LogContentView.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/LogContentView.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -444,7 +444,7 @@
</span><span class="cx"> this._clearMessagesSelection();
</span><span class="cx">
</span><span class="cx"> // Focus the prompt. Focusing the prompt needs to happen after the click to work.
</span><del>- setTimeout(function () { this.prompt.focus(); }.bind(this), 0);
</del><ins>+ setTimeout(() => { this.prompt.focus(); }, 0);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> delete this._mouseMoveIsRowSelection;
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsNavigationSidebarPaneljs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/NavigationSidebarPanel.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/NavigationSidebarPanel.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/NavigationSidebarPanel.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -780,9 +780,9 @@
</span><span class="cx">
</span><span class="cx"> // Delay clearing the restoringState flag until the next runloop so listeners
</span><span class="cx"> // checking for it in this runloop still know state was being restored.
</span><del>- setTimeout(function() {
</del><ins>+ setTimeout(() => {
</ins><span class="cx"> this._restoringState = false;
</span><del>- }.bind(this));
</del><ins>+ }, 0);
</ins><span class="cx">
</span><span class="cx"> if (this._finalAttemptToRestoreViewStateTimeout) {
</span><span class="cx"> clearTimeout(this._finalAttemptToRestoreViewStateTimeout);
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsObjectTreeBaseTreeElementjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreeBaseTreeElement.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreeBaseTreeElement.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreeBaseTreeElement.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -124,17 +124,17 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> getterElement.title = WebInspector.UIString("Invoke getter");
</span><del>- getterElement.addEventListener("click", function(event) {
</del><ins>+ getterElement.addEventListener("click", (event) => {
</ins><span class="cx"> event.stopPropagation();
</span><span class="cx"> var lastNonPrototypeObject = this._propertyPath.lastNonPrototypeObject;
</span><span class="cx"> var getterObject = this._property.get;
</span><del>- lastNonPrototypeObject.invokeGetter(getterObject, function(error, result, wasThrown) {
</del><ins>+ lastNonPrototypeObject.invokeGetter(getterObject, (error, result, wasThrown) => {
</ins><span class="cx"> this._getterHadError = !!(error || wasThrown);
</span><span class="cx"> this._getterValue = result;
</span><span class="cx"> if (this.invokedGetter && typeof this.invokedGetter === "function")
</span><span class="cx"> this.invokedGetter();
</span><del>- }.bind(this));
- }.bind(this));
</del><ins>+ });
+ });
</ins><span class="cx">
</span><span class="cx"> return getterElement;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsObjectTreePropertyTreeElementjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreePropertyTreeElement.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreePropertyTreeElement.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreePropertyTreeElement.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -344,10 +344,10 @@
</span><span class="cx">
</span><span class="cx"> // Show the prototype so users can see the API.
</span><span class="cx"> var resolvedValue = this.resolvedValue();
</span><del>- resolvedValue.getOwnPropertyDescriptor("__proto__", function(propertyDescriptor) {
</del><ins>+ resolvedValue.getOwnPropertyDescriptor("__proto__", (propertyDescriptor) => {
</ins><span class="cx"> if (propertyDescriptor)
</span><span class="cx"> this.appendChild(new WebInspector.ObjectTreePropertyTreeElement(propertyDescriptor, propertyPath, mode));
</span><del>- }.bind(this));
</del><ins>+ });
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> _updateProperties(properties, propertyPath, mode)
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsObjectTreeViewjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreeView.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreeView.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreeView.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -279,10 +279,10 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // Show the prototype so users can see the API.
</span><del>- this._object.getOwnPropertyDescriptor("__proto__", function(propertyDescriptor) {
</del><ins>+ this._object.getOwnPropertyDescriptor("__proto__", (propertyDescriptor) => {
</ins><span class="cx"> if (propertyDescriptor)
</span><span class="cx"> this._outline.appendChild(new WebInspector.ObjectTreePropertyTreeElement(propertyDescriptor, propertyPath, this._mode));
</span><del>- }.bind(this));
</del><ins>+ });
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> _updateProperties(properties, propertyPath)
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsResourceDetailsSidebarPaneljs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ResourceDetailsSidebarPanel.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/ResourceDetailsSidebarPanel.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ResourceDetailsSidebarPanel.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -415,10 +415,10 @@
</span><span class="cx"> this.contentView.element.insertBefore(this._imageSizeSection.element, this._locationSection.element);
</span><span class="cx">
</span><span class="cx"> // Get the metrics for this resource and fill in the metrics rows with that information.
</span><del>- resource.getImageSize(function(size) {
</del><ins>+ resource.getImageSize((size) => {
</ins><span class="cx"> this._imageWidthRow.value = WebInspector.UIString("%dpx").format(size.width);
</span><span class="cx"> this._imageHeightRow.value = WebInspector.UIString("%dpx").format(size.height);
</span><del>- }.bind(this));
</del><ins>+ });
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> _goToRequestDataClicked()
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsScopeChainDetailsSidebarPaneljs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ScopeChainDetailsSidebarPanel.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/ScopeChainDetailsSidebarPanel.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ScopeChainDetailsSidebarPanel.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -416,7 +416,7 @@
</span><span class="cx"> this._popoverCommitted = false;
</span><span class="cx">
</span><span class="cx"> this._codeMirror.addKeyMap({
</span><del>- "Enter": function() { this._popoverCommitted = true; popover.dismiss(); }.bind(this),
</del><ins>+ "Enter": () => { this._popoverCommitted = true; popover.dismiss(); },
</ins><span class="cx"> });
</span><span class="cx">
</span><span class="cx"> let completionController = new WebInspector.CodeMirrorCompletionController(this._codeMirror);
</span><span class="lines">@@ -440,11 +440,11 @@
</span><span class="cx"> presentPopoverOverTargetElement();
</span><span class="cx">
</span><span class="cx"> // CodeMirror needs a refresh after the popover displays, to layout, otherwise it doesn't appear.
</span><del>- setTimeout(function() {
</del><ins>+ setTimeout(() => {
</ins><span class="cx"> this._codeMirror.refresh();
</span><span class="cx"> this._codeMirror.focus();
</span><span class="cx"> popover.update();
</span><del>- }.bind(this), 0);
</del><ins>+ }, 0);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> willDismissPopover(popover)
</span><span class="lines">@@ -492,10 +492,10 @@
</span><span class="cx"> if (objectTreeElement.parent !== objectTreeElement.treeOutline)
</span><span class="cx"> return;
</span><span class="cx">
</span><del>- contextMenu.appendItem(WebInspector.UIString("Remove Watch Expression"), function() {
</del><ins>+ contextMenu.appendItem(WebInspector.UIString("Remove Watch Expression"), () => {
</ins><span class="cx"> let expression = objectTreeElement.property.name;
</span><span class="cx"> this._removeWatchExpression(expression);
</span><del>- }.bind(this));
</del><ins>+ });
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> _propertyPathIdentifierForTreeElement(identifier, objectPropertyTreeElement)
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsTabBarjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/TabBar.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/TabBar.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/TabBar.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -96,9 +96,9 @@
</span><span class="cx">
</span><span class="cx"> if (this._tabAnimatedClosedSinceMouseEnter) {
</span><span class="cx"> // Delay adding the new tab until we can expand the tabs after a closed tab.
</span><del>- this._finishExpandingTabsAfterClose().then(function() {
</del><ins>+ this._finishExpandingTabsAfterClose().then(() => {
</ins><span class="cx"> this.insertTabBarItem(tabBarItem, index, doNotAnimate);
</span><del>- }.bind(this));
</del><ins>+ });
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsVisualStylePropertyEditorjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/VisualStylePropertyEditor.js (201619 => 201620)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/VisualStylePropertyEditor.js        2016-06-02 22:01:50 UTC (rev 201619)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/VisualStylePropertyEditor.js        2016-06-02 22:11:54 UTC (rev 201620)
</span><span class="lines">@@ -538,10 +538,9 @@
</span><span class="cx">
</span><span class="cx"> let title = "";
</span><span class="cx">
</span><del>- // FIXME: <https://webkit.org/b/152497> Arrow functions: "this" isn't lexically bound
- let dependencies = this._style.nodeStyles.computedStyle.properties.filter(function(property) {
</del><ins>+ let dependencies = this._style.nodeStyles.computedStyle.properties.filter((property) => {
</ins><span class="cx"> return this._dependencies.has(property.name) || this._dependencies.has(property.canonicalName);
</span><del>- }.bind(this));
</del><ins>+ });
</ins><span class="cx">
</span><span class="cx"> for (let property of dependencies) {
</span><span class="cx"> let dependencyValues = this._dependencies.get(property.name);
</span></span></pre>
</div>
</div>
</body>
</html>