Diff
Modified: trunk/Source/WebInspectorUI/.eslintrc (173435 => 173436)
--- trunk/Source/WebInspectorUI/.eslintrc 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/.eslintrc 2014-09-09 19:46:41 UTC (rev 173436)
@@ -60,6 +60,7 @@
"curly": 0,
"no-extra-semi": 2,
"quotes": [2, "double"],
+ "no-trailing-spaces": 2,
"no-underscore-dangle": 0,
"new-parens": 0,
"semi": 2
Modified: trunk/Source/WebInspectorUI/ChangeLog (173435 => 173436)
--- trunk/Source/WebInspectorUI/ChangeLog 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/ChangeLog 2014-09-09 19:46:41 UTC (rev 173436)
@@ -1,3 +1,109 @@
+2014-09-08 Joseph Pecoraro <[email protected]>
+
+ Web Inspector: Fix ESLint no-trailing-spaces warnings
+ https://bugs.webkit.org/show_bug.cgi?id=136657
+
+ Reviewed by Andy Estes.
+
+ * .eslintrc:
+ * UserInterface/Base/DOMUtilities.js:
+ * UserInterface/Base/URLUtilities.js:
+ (relativePath):
+ * UserInterface/Base/Utilities.js:
+ * UserInterface/Controllers/CodeMirrorColorEditingController.js:
+ (WebInspector.CodeMirrorColorEditingController.prototype._colorPickerColorChanged):
+ * UserInterface/Controllers/CodeMirrorDragToAdjustNumberController.js:
+ (WebInspector.CodeMirrorDragToAdjustNumberController.prototype.set enabled):
+ (WebInspector.CodeMirrorDragToAdjustNumberController.prototype.dragToAdjustControllerCanAdjustObjectAtPoint):
+ * UserInterface/Controllers/CodeMirrorEditingController.js:
+ (WebInspector.CodeMirrorEditingController.prototype.handleKeydownEvent):
+ * UserInterface/Controllers/CodeMirrorGradientEditingController.js:
+ (WebInspector.CodeMirrorGradientEditingController.prototype.gradientSliderStopWasSelected):
+ * UserInterface/Controllers/CodeMirrorTokenTrackingController.js:
+ (WebInspector.CodeMirrorTokenTrackingController.prototype._processJavaScriptExpression):
+ * UserInterface/Controllers/DragToAdjustController.js:
+ (WebInspector.DragToAdjustController.prototype.set active):
+ (WebInspector.DragToAdjustController.prototype._setDragging):
+ (WebInspector.DragToAdjustController.prototype._setTracksMouseClickAndDrag):
+ * UserInterface/External/Esprima/esprima.js:
+ * UserInterface/Models/ApplicationCacheFrame.js:
+ (WebInspector.ApplicationCacheFrame):
+ * UserInterface/Models/ApplicationCacheManifest.js:
+ (WebInspector.ApplicationCacheManifest):
+ (WebInspector.ApplicationCacheManifest.prototype.get manifestURL):
+ * UserInterface/Models/CookieStorageObject.js:
+ * UserInterface/Models/DOMSearchMatchObject.js:
+ (WebInspector.DOMSearchMatchObject.prototype.get title):
+ (WebInspector.DOMSearchMatchObject.titleForDOMNode):
+ * UserInterface/Models/DatabaseObject.js:
+ (WebInspector.DatabaseObject.prototype.getTableNames):
+ * UserInterface/Models/DatabaseTableObject.js:
+ (WebInspector.DatabaseTableObject):
+ * UserInterface/Models/Gradient.js:
+ (WebInspector.Gradient.fromString):
+ (WebInspector.RadialGradient.prototype.toString):
+ * UserInterface/Models/IssueMessage.js:
+ (WebInspector.IssueMessage.prototype._formatTextIfNecessary):
+ * UserInterface/Models/Resource.js:
+ (WebInspector.Resource.prototype.getImageSize.imageDidLoad):
+ (WebInspector.Resource.prototype.getImageSize):
+ * UserInterface/Models/Script.js:
+ (WebInspector.Script.prototype._makeSyntaxTree):
+ * UserInterface/Models/SourceCodeLocation.js:
+ (WebInspector.SourceCodeLocation.prototype.hasDifferentDisplayLocation):
+ * UserInterface/Models/TextMarker.js:
+ * UserInterface/Protocol/PageObserver.js:
+ * UserInterface/Views/ApplicationCacheDetailsSidebarPanel.js:
+ (WebInspector.ApplicationCacheDetailsSidebarPanel.prototype.set applicationCacheFrame):
+ (WebInspector.ApplicationCacheDetailsSidebarPanel.prototype.refresh):
+ (WebInspector.ApplicationCacheDetailsSidebarPanel.prototype._networkStateUpdated):
+ * UserInterface/Views/ApplicationCacheFrameTreeElement.js:
+ (WebInspector.ApplicationCacheFrameTreeElement):
+ * UserInterface/Views/ApplicationCacheManifestTreeElement.js:
+ (WebInspector.ApplicationCacheManifestTreeElement.prototype.get name):
+ (WebInspector.ApplicationCacheManifestTreeElement.prototype.get secondaryName):
+ * UserInterface/Views/ButtonNavigationItem.js:
+ (WebInspector.ButtonNavigationItem):
+ * UserInterface/Views/ColorPicker.js:
+ * UserInterface/Views/ColorWheel.js:
+ (WebInspector.ColorWheel.prototype._draw):
+ * UserInterface/Views/CompletionSuggestionsView.js:
+ (WebInspector.CompletionSuggestionsView.prototype.show):
+ * UserInterface/Views/ConsoleCommand.js:
+ * UserInterface/Views/ConsolePrompt.js:
+ * UserInterface/Views/ContentFlowTreeElement.js:
+ * UserInterface/Views/CookieStorageTreeElement.js:
+ (WebInspector.CookieStorageTreeElement):
+ * UserInterface/Views/EventListenerSectionGroup.js:
+ (WebInspector.EventListenerSectionGroup.prototype._functionTextOrLink):
+ * UserInterface/Views/GeneralTreeElementPathComponent.js:
+ * UserInterface/Views/GoToLineDialog.js:
+ (WebInspector.GoToLineDialog.prototype._handleKeydownEvent):
+ * UserInterface/Views/LayerTreeDataGridNode.js:
+ (WebInspector.LayerTreeDataGridNode.prototype._makeNameCell):
+ * UserInterface/Views/LayerTreeSidebarPanel.js:
+ * UserInterface/Views/LogContentView.js:
+ (WebInspector.LogContentView.prototype._highlightRanges):
+ * UserInterface/Views/NavigationBar.js:
+ (WebInspector.NavigationBar):
+ * UserInterface/Views/NavigationItem.js:
+ (WebInspector.NavigationItem):
+ * UserInterface/Views/ResourceDetailsSidebarPanel.js:
+ (WebInspector.ResourceDetailsSidebarPanel.prototype._refreshImageSizeSection):
+ * UserInterface/Views/ScopeBar.js:
+ * UserInterface/Views/ScopeBarItem.js:
+ (WebInspector.ScopeBarItem):
+ * UserInterface/Views/ScopeChainDetailsSidebarPanel.js:
+ (WebInspector.ScopeChainDetailsSidebarPanel):
+ * UserInterface/Views/ScriptTimelineDataGridNode.js:
+ (WebInspector.ScriptTimelineDataGridNode.prototype.updateRangeTimes):
+ * UserInterface/Views/ScriptTreeElement.js:
+ (WebInspector.ScriptTreeElement):
+ * UserInterface/Views/SearchBar.js:
+ * UserInterface/Views/SearchResultTreeElement.js:
+ (WebInspector.SearchResultTreeElement.truncateAndHighlightTitle):
+ * UserInterface/Views/Slider.js:
+
2014-09-09 Joseph Pecoraro <[email protected]>
Web Inspector: Fix ESLint eqeqeq warnings
Modified: trunk/Source/WebInspectorUI/UserInterface/Base/DOMUtilities.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Base/DOMUtilities.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Base/DOMUtilities.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -74,7 +74,7 @@
{
if (!node)
return null;
- // Same as linkifyNodeReference except the link text has the classnames removed...
+ // Same as linkifyNodeReference except the link text has the classnames removed...
// ...for list brevity, and both text and title have roleSelectorForNode appended.
var link = WebInspector.linkifyNodeReference(node);
var tagIdSelector = link.title;
Modified: trunk/Source/WebInspectorUI/UserInterface/Base/URLUtilities.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Base/URLUtilities.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Base/URLUtilities.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -35,7 +35,7 @@
{
console.assert(path.charAt(0) === "/");
console.assert(basePath.charAt(0) === "/");
-
+
var pathComponents = path.split("/");
var baseComponents = basePath.replace(/\/$/, "").split("/");
var finalComponents = [];
Modified: trunk/Source/WebInspectorUI/UserInterface/Base/Utilities.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Base/Utilities.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Base/Utilities.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -584,7 +584,7 @@
}
});
-Object.defineProperty(String.prototype, "startsWith",
+Object.defineProperty(String.prototype, "startsWith",
{
value: function(string)
{
Modified: trunk/Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorColorEditingController.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorColorEditingController.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorColorEditingController.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -31,7 +31,7 @@
WebInspector.CodeMirrorColorEditingController.prototype = {
constructor: WebInspector.CodeMirrorColorEditingController,
__proto__: WebInspector.CodeMirrorEditingController.prototype,
-
+
// Public
get initialValue()
@@ -57,9 +57,9 @@
},
// Private
-
+
_colorPickerColorChanged: function(event)
{
this.value = event.target.color;
- }
+ }
};
Modified: trunk/Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorDragToAdjustNumberController.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorDragToAdjustNumberController.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorDragToAdjustNumberController.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -44,7 +44,7 @@
{
if (this.enabled === enabled)
return;
-
+
this._dragToAdjustController.element = this._codeMirror.getWrapperElement();
this._dragToAdjustController.enabled = enabled;
},
@@ -108,7 +108,7 @@
line: position.line
}
};
-
+
return containsNumber;
}
};
Modified: trunk/Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorEditingController.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorEditingController.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorEditingController.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -42,14 +42,14 @@
WebInspector.CodeMirrorEditingController.prototype = {
constructor: WebInspector.CodeMirrorEditingController,
__proto__: WebInspector.Object.prototype,
-
+
// Public
-
+
get marker()
{
return this._marker;
},
-
+
get range()
{
return this._range;
@@ -59,7 +59,7 @@
{
return this._value;
},
-
+
set value(value)
{
this.text = value.toString();
@@ -82,7 +82,7 @@
var to = {line: this._range.endLine, ch: this._range.endColumn};
return this._codeMirror.getRange(from, to);
},
-
+
set text(text)
{
var from = {line: this._range.startLine, ch: this._range.startColumn};
@@ -100,13 +100,13 @@
// Implemented by subclasses.
return this.text;
},
-
+
get cssClassName()
{
// Implemented by subclasses.
return "";
},
-
+
get popover()
{
return this._popover;
@@ -153,7 +153,7 @@
{
if (!this._keyboardShortcutEsc.matchesEvent(event) || !this._popover.visible)
return false;
-
+
this.value = this._originalValue;
this._popover.dismiss();
@@ -176,7 +176,7 @@
this._originalValue = this._value.copy();
},
-
+
didDismissPopover: function(popover)
{
delete this._popover;
Modified: trunk/Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorGradientEditingController.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorGradientEditingController.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorGradientEditingController.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -159,7 +159,7 @@
{
this.text = this.value.toString();
},
-
+
gradientSliderStopWasSelected: function(gradientSlider, stop)
{
var selectedStop = gradientSlider.selectedStop;
@@ -176,7 +176,7 @@
// Ensure the angle input is not focused since, if it were, it'd make a scrollbar appear as we
// animate the popover's frame to fit its new content.
this._angleInput.blur();
-
+
this.popover.update();
},
@@ -238,7 +238,7 @@
this._gradientSlider.stops = this.value.stops;
this.text = this.value.toString();
},
-
+
_updateCSSClassForGradientType: function()
{
if (this.value instanceof WebInspector.LinearGradient)
Modified: trunk/Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorTokenTrackingController.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorTokenTrackingController.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorTokenTrackingController.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -149,7 +149,7 @@
{
return this._hoveredMarker;
},
-
+
set hoveredMarker(hoveredMarker)
{
this._hoveredMarker = hoveredMarker;
@@ -440,13 +440,13 @@
start: this._codeMirror.getCursor("start"),
end: this._codeMirror.getCursor("end")
};
-
+
function tokenIsInRange(token, range)
{
return token.line >= range.start.line && token.ch >= range.start.ch &&
token.line <= range.end.line && token.ch <= range.end.ch;
}
-
+
if (tokenIsInRange(startPosition, selectionRange) || tokenIsInRange(endPosition, selectionRange)) {
return {
hoveredToken: this._hoveredTokenInfo.token,
@@ -455,7 +455,7 @@
expressionRange: selectionRange,
};
}
- }
+ }
// We only handle vars, definitions, properties, and the keyword 'this'.
var type = this._hoveredTokenInfo.token.type;
Modified: trunk/Source/WebInspectorUI/UserInterface/Controllers/DragToAdjustController.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Controllers/DragToAdjustController.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Controllers/DragToAdjustController.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -74,7 +74,7 @@
{
if (!this._element)
return;
-
+
if (this._active === active)
return;
@@ -143,7 +143,7 @@
{
if (this._dragging === dragging)
return;
-
+
console.assert(window.event);
if (dragging)
WebInspector.elementDragStart(this._element, this, this, window.event, "col-resize", window);
@@ -157,7 +157,7 @@
{
if (this._tracksMouseClickAndDrag === tracksMouseClickAndDrag)
return;
-
+
if (tracksMouseClickAndDrag) {
this._element.classList.add(WebInspector.DragToAdjustController.StyleClassName);
window.addEventListener("mousedown", this, true);
@@ -168,7 +168,7 @@
window.removeEventListener("contextmenu", this, true);
this._setDragging(false);
}
-
+
this._tracksMouseClickAndDrag = tracksMouseClickAndDrag;
},
@@ -180,7 +180,7 @@
this._setTracksMouseClickAndDrag(canBeAdjusted);
},
-
+
_mouseMoved: function(event)
{
var canBeAdjusted = event.altKey;
@@ -189,7 +189,7 @@
this._setTracksMouseClickAndDrag(canBeAdjusted);
},
-
+
_mouseWasPressed: function(event)
{
this._lastX = event.screenX;
Modified: trunk/Source/WebInspectorUI/UserInterface/External/Esprima/esprima.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/External/Esprima/esprima.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/External/Esprima/esprima.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -32,7 +32,7 @@
*/
// WebKit Modifications:
-// - The only edit made to this file is the use 'WebInspector.Esprima' as the 'exports' object for esprima.
+// - The only edit made to this file is the use 'WebInspector.Esprima' as the 'exports' object for esprima.
// The code that determines the context esprima is loaded in (node.js, the browser, etc.) has been replaced with a reference to 'WebInspector.Esprima'.
WebInspector.Esprima = {};
Modified: trunk/Source/WebInspectorUI/UserInterface/Models/ApplicationCacheFrame.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Models/ApplicationCacheFrame.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/ApplicationCacheFrame.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -29,7 +29,7 @@
console.assert(manifest instanceof WebInspector.ApplicationCacheManifest);
WebInspector.Object.call(this);
-
+
this._frame = frame;
this._manifest = manifest;
this._status = status;
@@ -41,7 +41,7 @@
WebInspector.ApplicationCacheFrame.prototype = {
constructor: WebInspector.ApplicationCacheFrame,
-
+
// Public
get frame()
@@ -58,7 +58,7 @@
{
return this._status;
},
-
+
set status(status)
{
this._status = status;
Modified: trunk/Source/WebInspectorUI/UserInterface/Models/ApplicationCacheManifest.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Models/ApplicationCacheManifest.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/ApplicationCacheManifest.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -26,17 +26,17 @@
WebInspector.ApplicationCacheManifest = function(manifestURL)
{
WebInspector.Object.call(this);
-
+
this._manifestURL = manifestURL;
};
WebInspector.ApplicationCacheManifest.prototype = {
constructor: WebInspector.ApplicationCacheManifest,
-
+
get manifestURL()
{
return this._manifestURL;
- }
+ }
};
WebInspector.ApplicationCacheManifest.prototype.__proto__ = WebInspector.Object.prototype;
Modified: trunk/Source/WebInspectorUI/UserInterface/Models/CookieStorageObject.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Models/CookieStorageObject.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/CookieStorageObject.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -38,7 +38,7 @@
{
return this._host;
},
-
+
saveIdentityToCookie: function(cookie)
{
cookie[WebInspector.CookieStorageObject.CookieHostCookieKey] = this.host;
Modified: trunk/Source/WebInspectorUI/UserInterface/Models/DOMSearchMatchObject.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Models/DOMSearchMatchObject.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/DOMSearchMatchObject.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -56,7 +56,7 @@
get title()
{
- return this._title;
+ return this._title;
},
get className()
@@ -78,7 +78,7 @@
},
// Private
-
+
_generateClassName: function()
{
switch (this._domNode.nodeType()) {
@@ -109,7 +109,7 @@
switch (domNode.nodeType()) {
case Node.ELEMENT_NODE:
var title = "<" + domNode.nodeNameInCorrectCase();
-
+
for (var i = 0; i < domNode.attributes().length; ++i) {
title += " " + domNode.attributes()[i].name;
if (domNode.attributes()[i].value.length)
Modified: trunk/Source/WebInspectorUI/UserInterface/Models/DatabaseObject.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Models/DatabaseObject.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/DatabaseObject.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -37,7 +37,7 @@
WebInspector.DatabaseObject.prototype = {
constructor: WebInspector.DatabaseObject,
-
+
// Public
get id()
@@ -54,12 +54,12 @@
{
return this._name;
},
-
+
get version()
{
return this._version;
},
-
+
saveIdentityToCookie: function(cookie)
{
cookie[WebInspector.DatabaseObject.HostCookieKey] = this.host;
@@ -73,7 +73,7 @@
if (!error)
callback(names.sort());
}
-
+
DatabaseAgent.getDatabaseTableNames(this._id, sortingCallback);
},
Modified: trunk/Source/WebInspectorUI/UserInterface/Models/DatabaseTableObject.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Models/DatabaseTableObject.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/DatabaseTableObject.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -26,7 +26,7 @@
WebInspector.DatabaseTableObject = function(name, database)
{
console.assert(database instanceof WebInspector.DatabaseObject);
-
+
this._name = name;
this._database = database;
};
@@ -36,12 +36,12 @@
WebInspector.DatabaseTableObject.prototype = {
constructor: WebInspector.DatabaseTableObject,
-
+
get name()
{
return this._name;
},
-
+
get database()
{
return this._database;
Modified: trunk/Source/WebInspectorUI/UserInterface/Models/Gradient.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Models/Gradient.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/Gradient.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -28,7 +28,7 @@
Linear: "linear-gradient",
Radial: "radial-gradient"
},
-
+
fromString: function(cssString)
{
var type;
@@ -87,13 +87,13 @@
gradient = WebInspector.LinearGradient.linearGradientWithComponents(components);
else
gradient = WebInspector.RadialGradient.radialGradientWithComponents(components);
-
+
if (gradient)
gradient.repeats = typeString.indexOf("repeating") === 0;
-
+
return gradient;
},
-
+
stopsWithComponents: function(components)
{
// FIXME: handle lengths.
@@ -129,7 +129,7 @@
return stops;
},
-
+
stringFromStops: function(stops)
{
var count = stops.length - 1;
@@ -273,7 +273,7 @@
str += ", ";
str += WebInspector.Gradient.stringFromStops(this.stops);
-
+
return (this.repeats ? "repeating-" : "") + this.type + "(" + str + ")";
}
};
Modified: trunk/Source/WebInspectorUI/UserInterface/Models/IssueMessage.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Models/IssueMessage.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/IssueMessage.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -207,7 +207,7 @@
{
if (!this._parameters)
return;
-
+
if (WebInspector.RemoteObject.type(this._parameters[0]) !== "string")
return;
@@ -215,14 +215,14 @@
{
return obj.description;
}
-
+
var formatters = {};
formatters.o = valueFormatter;
formatters.s = valueFormatter;
formatters.f = valueFormatter;
formatters.i = valueFormatter;
formatters.d = valueFormatter;
-
+
function append(a, b)
{
a += b;
@@ -231,10 +231,10 @@
var result = String.format(this._parameters[0].description, this._parameters.slice(1), formatters, "", append);
var resultText = result.formattedResult;
-
+
for (var i = 0; i < result.unusedSubstitutions.length; ++i)
resultText += " " + result.unusedSubstitutions[i].description;
-
+
this._text = resultText;
}
};
Modified: trunk/Source/WebInspectorUI/UserInterface/Models/Resource.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Models/Resource.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/Resource.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -666,7 +666,7 @@
width: image.width,
height: image.height
};
-
+
callback(this._imageSize);
}
Modified: trunk/Source/WebInspectorUI/UserInterface/Models/Script.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Models/Script.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/Script.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -209,7 +209,7 @@
return null;
},
- _makeSyntaxTree: function(sourceText)
+ _makeSyntaxTree: function(sourceText)
{
if (this._scriptSyntaxTree || !sourceText)
return;
Modified: trunk/Source/WebInspectorUI/UserInterface/Models/SourceCodeLocation.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Models/SourceCodeLocation.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/SourceCodeLocation.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -190,7 +190,7 @@
hasDifferentDisplayLocation: function()
{
- return this.hasMappedLocation() || this.hasFormattedLocation();
+ return this.hasMappedLocation() || this.hasFormattedLocation();
},
update: function(sourceCode, lineNumber, columnNumber)
Modified: trunk/Source/WebInspectorUI/UserInterface/Models/TextMarker.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Models/TextMarker.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/TextMarker.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -47,7 +47,7 @@
WebInspector.TextMarker.prototype = {
constructor: WebInspector.TextMarker,
__proto__: WebInspector.Object.prototype,
-
+
// Public
get codeMirrorTextMarker()
@@ -78,7 +78,7 @@
end: range.to
});
},
-
+
clear: function()
{
this._codeMirrorTextMarker.clear();
Modified: trunk/Source/WebInspectorUI/UserInterface/Protocol/PageObserver.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Protocol/PageObserver.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Protocol/PageObserver.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -52,7 +52,7 @@
{
WebInspector.frameResourceManager.frameDidDetach(frameId);
},
-
+
frameStartedLoading: function(frameId)
{
// Not handled yet.
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ApplicationCacheDetailsSidebarPanel.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/ApplicationCacheDetailsSidebarPanel.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ApplicationCacheDetailsSidebarPanel.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -88,17 +88,17 @@
return !!this.applicationCacheFrame;
},
-
+
get applicationCacheFrame()
{
return this._applicationCacheFrame;
},
-
+
set applicationCacheFrame(applicationCacheFrame)
{
if (this._applicationCacheFrame === applicationCacheFrame)
return;
-
+
this._applicationCacheFrame = applicationCacheFrame;
this.needsRefresh();
@@ -111,21 +111,21 @@
this._locationFrameURLRow.value = this.applicationCacheFrame.frame.url;
this._locationManifestURLRow.value = this.applicationCacheFrame.manifest.manifestURL;
-
+
this._refreshOnlineRow();
this._refreshStatusRow();
},
-
+
// Private
-
+
_networkStateUpdated: function(event)
{
if (!this.applicationCacheFrame)
return;
-
+
this._refreshOnlineRow();
},
-
+
_frameManifestStatusChanged: function(event)
{
if (!this.applicationCacheFrame)
@@ -137,12 +137,12 @@
this._refreshStatusRow();
},
-
+
_refreshOnlineRow: function()
{
this._onlineRow.value = WebInspector.applicationCacheManager.online ? WebInspector.UIString("Yes") : WebInspector.UIString("No");
},
-
+
_refreshStatusRow: function()
{
this._statusRow.value = WebInspector.ApplicationCacheDetailsSidebarPanel.Status[this.applicationCacheFrame.status];
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ApplicationCacheFrameTreeElement.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/ApplicationCacheFrameTreeElement.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ApplicationCacheFrameTreeElement.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -30,7 +30,7 @@
WebInspector.GeneralTreeElement.call(this, WebInspector.ApplicationCacheFrameTreeElement.StyleClassName, "", "", representedObject, false);
this.small = true;
-
+
this.updateTitles();
};
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ApplicationCacheManifestTreeElement.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/ApplicationCacheManifestTreeElement.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ApplicationCacheManifestTreeElement.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -41,7 +41,7 @@
{
if (!this._name)
this._generateTitles();
-
+
return this._name;
},
@@ -49,7 +49,7 @@
{
if (!this._secondaryName)
this._generateTitles();
-
+
return this._secondaryName;
},
@@ -57,7 +57,7 @@
{
return WebInspector.UIString("Application Cache");
},
-
+
_generateTitles: function()
{
var parsedURL = parseURL(this.representedObject.manifestURL);
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ButtonNavigationItem.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/ButtonNavigationItem.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ButtonNavigationItem.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -32,10 +32,10 @@
this.toolTip = toolTipOrLabel;
this._element.addEventListener("click", this._mouseClicked.bind(this));
-
+
this._element.setAttribute("role", role || "button");
-
- if (label)
+
+ if (label)
this._element.setAttribute("aria-label", label);
this._imageWidth = imageWidth || 16;
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ColorPicker.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/ColorPicker.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ColorPicker.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -61,12 +61,12 @@
__proto__: WebInspector.Object.prototype,
// Public
-
+
get element()
{
return this._element;
},
-
+
set brightness(brightness)
{
if (brightness === this._brightness)
@@ -77,7 +77,7 @@
this._updateColor();
this._updateSliders(this._colorWheel.rawColor, this._colorWheel.tintedColor);
},
-
+
set opacity(opacity)
{
if (opacity === this._opacity)
@@ -125,9 +125,9 @@
else if (slider === this._brightnessSlider)
this.brightness = value;
},
-
+
// Private
-
+
_updateColor: function()
{
if (this._dontUpdateColor)
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ColorWheel.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/ColorWheel.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ColorWheel.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -65,7 +65,7 @@
this._drawRawCanvas();
this._draw();
},
-
+
get element()
{
return this._element;
@@ -96,7 +96,7 @@
this._setCrosshairPosition(data.point);
this.brightness = data.brightness;
},
-
+
get rawColor()
{
if (this._crosshairPosition)
@@ -249,7 +249,7 @@
1
]);
},
-
+
_drawTintedCanvas: function()
{
var ctx = this._tintedCanvas.getContext("2d");
@@ -264,7 +264,7 @@
}
ctx.restore();
},
-
+
_draw: function()
{
this._drawTintedCanvas();
@@ -276,7 +276,7 @@
ctx.save();
ctx.clearRect(0, 0, dimension, dimension);
ctx.beginPath();
- ctx.arc(dimension / 2, dimension / 2, radius + 1, 0, Math.PI * 2, true);
+ ctx.arc(dimension / 2, dimension / 2, radius + 1, 0, Math.PI * 2, true);
ctx.closePath();
ctx.clip();
ctx.drawImage(this._tintedCanvas, 0, 0, dimension, dimension);
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/CompletionSuggestionsView.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/CompletionSuggestionsView.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/CompletionSuggestionsView.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -151,7 +151,7 @@
var height = Math.min(containerHeight, maximumHeight);
// Position the suggestions below the anchor. If there is no room, position the suggestions above.
- if (underHeight - height < 0)
+ if (underHeight - height < 0)
y = aboveHeight - height;
this._element.style.left = x + "px";
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ConsoleCommand.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/ConsoleCommand.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ConsoleCommand.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -89,7 +89,7 @@
this._formattedCommand.className = "console-message-text source-code";
this._formattedCommand.textContent = this.command;
},
-
+
toClipboardString: function(isPrefixOptional)
{
return (isPrefixOptional ? "" : "> ") + this.command;
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ConsolePrompt.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/ConsolePrompt.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ConsolePrompt.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -158,7 +158,7 @@
},
// Private
-
+
_handleEscapeKey: function(codeMirror)
{
if (this.text)
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ContentFlowTreeElement.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/ContentFlowTreeElement.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ContentFlowTreeElement.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -12,7 +12,7 @@
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials
* provided with the distribution.
- *
+ *
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/CookieStorageTreeElement.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/CookieStorageTreeElement.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/CookieStorageTreeElement.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -26,7 +26,7 @@
WebInspector.CookieStorageTreeElement = function(representedObject)
{
console.assert(representedObject instanceof WebInspector.CookieStorageObject);
-
+
WebInspector.StorageTreeElement.call(this, WebInspector.CookieStorageTreeElement.CookieIconStyleClassName, WebInspector.displayNameForHost(representedObject.host), representedObject);
};
@@ -34,14 +34,14 @@
WebInspector.CookieStorageTreeElement.prototype = {
constructor: WebInspector.CookieStorageTreeElement,
-
+
// Public
-
+
get name()
{
return this.representedObject.host;
},
-
+
get categoryName()
{
return WebInspector.UIString("Cookies");
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/EventListenerSectionGroup.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/EventListenerSectionGroup.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/EventListenerSectionGroup.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -70,7 +70,7 @@
var functionName = match[1];
} else {
var anonymous = true;
- var functionName = WebInspector.UIString("(anonymous function)");
+ var functionName = WebInspector.UIString("(anonymous function)");
}
if (!this._eventListener.location)
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/GeneralTreeElementPathComponent.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/GeneralTreeElementPathComponent.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/GeneralTreeElementPathComponent.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -63,9 +63,9 @@
return new WebInspector.GeneralTreeElementPathComponent(nextSibling);
},
-
+
// Private
-
+
_mainTitleDidChange: function(event)
{
this.displayName = this._generalTreeElement.mainTitle;
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/GoToLineDialog.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/GoToLineDialog.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/GoToLineDialog.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -121,7 +121,7 @@
var valueIsValid = false;
if (this.delegate && typeof this.delegate.isGoToLineDialogValueValid === "function")
valueIsValid = this.delegate.isGoToLineDialogValueValid(this, value);
-
+
if (valueIsValid && this.delegate && typeof this.delegate.goToLineDialogValueWasValidated === "function") {
this.delegate.goToLineDialogValueWasValidated(this, value);
this.dismiss();
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/LayerTreeDataGridNode.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/LayerTreeDataGridNode.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/LayerTreeDataGridNode.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -106,7 +106,7 @@
var label = this._makeOutlet("label", fragment.appendChild(document.createElement("span")));
label.className = "label";
-
+
var nameLabel = this._makeOutlet("nameLabel", label.appendChild(document.createElement("span")));
nameLabel.className = "name";
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/LayerTreeSidebarPanel.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/LayerTreeSidebarPanel.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/LayerTreeSidebarPanel.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -290,7 +290,7 @@
this._childLayersRow.dataGrid = !isEmptyObject(childLayers) ? this._dataGrid : null;
},
-
+
_dataGridNodeForLayer: function(layer)
{
var node = new WebInspector.LayerTreeDataGridNode(layer);
@@ -299,7 +299,7 @@
return node;
},
-
+
_updateMetrics: function(layerForNode, childLayers)
{
var layerCount = 0;
@@ -359,7 +359,7 @@
{
var content = document.createElement("div");
content.className = "layer-tree-popover";
-
+
content.appendChild(document.createElement("p")).textContent = WebInspector.UIString("Reasons for compositing:");
var list = content.appendChild(document.createElement("ul"));
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/LogContentView.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/LogContentView.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/LogContentView.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -233,7 +233,7 @@
var index = this._selectedSearchMatch ? this._searchMatches.indexOf(this._selectedSearchMatch) : this._searchMatches.length;
this._highlightSearchMatchAtIndex(index - 1);
},
-
+
highlightNextSearchMatch: function()
{
if (!this.searchInProgress || isEmptyObject(this._searchMatches))
@@ -858,7 +858,7 @@
{
this._performSearch();
},
-
+
_performSearch: function()
{
if (!isEmptyObject(this._searchHighlightDOMChanges))
@@ -904,13 +904,13 @@
delete this._selectedSearchMatch;
}
},
-
+
_highlightRanges: function(message, matchRanges)
{
var highlightedElements = WebInspector.highlightRangesWithStyleClass(message, matchRanges, WebInspector.LogContentView.HighlightedStyleClassName, this._searchHighlightDOMChanges);
console.assert(highlightedElements.length === matchRanges.length);
-
+
matchRanges.forEach(function (range, index) {
this._searchMatches.push({
message: message,
@@ -927,7 +927,7 @@
}
}, this);
},
-
+
_rangesOverlap: function(range1, range2)
{
return range1.offset <= range2.offset + range2.length && range2.offset <= range1.offset + range1.length;
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/NavigationBar.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/NavigationBar.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/NavigationBar.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -29,7 +29,7 @@
this._element = element || document.createElement("div");
this._element.classList.add(this.constructor.StyleClassName || WebInspector.NavigationBar.StyleClassName);
this._element.tabIndex = 0;
-
+
if (role)
this._element.setAttribute("role", role);
if (label)
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/NavigationItem.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/NavigationItem.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/NavigationItem.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -30,8 +30,8 @@
this._element = document.createElement("div");
this._hidden = false;
-
- if (role)
+
+ if (role)
this._element.setAttribute("role", role);
if (label)
this._element.setAttribute("aria-label", label);
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ResourceDetailsSidebarPanel.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/ResourceDetailsSidebarPanel.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ResourceDetailsSidebarPanel.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -380,7 +380,7 @@
if (!resource)
return;
-
+
// Hide the section if we're not dealing with an image or if the load failed.
if (resource.type !== WebInspector.Resource.Type.Image || resource.failed) {
var imageSectionElement = this._imageSizeSection.element;
@@ -388,10 +388,10 @@
this.element.removeChild(imageSectionElement);
return;
}
-
+
// Ensure the section is displayed, right before the "Location" section.
this.element.insertBefore(this._imageSizeSection.element, this._locationSection.element);
-
+
// Get the metrics for this resource and fill in the metrics rows with that information.
resource.getImageSize(function(size) {
this._imageWidthRow.value = WebInspector.UIString("%fpx").format(size.width);
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ScopeBar.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/ScopeBar.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ScopeBar.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -91,7 +91,7 @@
},
// Private
-
+
_populate: function()
{
var item;
@@ -106,7 +106,7 @@
if (!this.selectedItems.length && this._defaultItem)
this._defaultItem.selected = true;
},
-
+
_itemSelectionDidChange: function(event)
{
var sender = event.target;
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ScopeBarItem.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/ScopeBarItem.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ScopeBarItem.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -29,7 +29,7 @@
this.id = id;
this.label = label;
this.isExclusive = isExclusive;
-
+
this._selectedSetting = new WebInspector.Setting("scopebaritem-" + id, false);
this._markElementSelected(this._selectedSetting.value);
@@ -54,7 +54,7 @@
}
return this._element;
},
-
+
get selected()
{
return this._selectedSetting.value;
@@ -64,7 +64,7 @@
{
this.setSelected(selected, false);
},
-
+
setSelected: function(selected, withModifier)
{
if (this._selectedSetting.value === selected)
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ScopeChainDetailsSidebarPanel.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/ScopeChainDetailsSidebarPanel.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ScopeChainDetailsSidebarPanel.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -27,7 +27,7 @@
WebInspector.DetailsSidebarPanel.call(this, "scope-chain", WebInspector.UIString("Scope Chain"), WebInspector.UIString("Scope Chain"), "Images/NavigationItemVariable.svg", "5");
this._callFrame = null;
-
+
// Update on console prompt eval as objects in the scope chain may have changed.
WebInspector.runtimeManager.addEventListener(WebInspector.RuntimeManager.Event.DidEvaluate, this.needsRefresh, this);
};
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ScriptTimelineDataGridNode.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/ScriptTimelineDataGridNode.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ScriptTimelineDataGridNode.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -88,7 +88,7 @@
this._rangeStartTime = startTime;
this._rangeEndTime = endTime;
-
+
// If we have no duration the range does not matter.
if (!this._record.duration)
return;
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ScriptTreeElement.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/ScriptTreeElement.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ScriptTreeElement.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -26,7 +26,7 @@
WebInspector.ScriptTreeElement = function(script)
{
console.assert(script instanceof WebInspector.Script);
-
+
WebInspector.SourceCodeTreeElement.call(this, script, WebInspector.ScriptTreeElement.StyleClassName, null, null, script, false);
this.mainTitle = script.displayName;
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/SearchBar.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/SearchBar.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/SearchBar.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -76,7 +76,7 @@
{
this.dispatchEventToListeners(WebInspector.SearchBar.Event.TextChanged);
},
-
+
_handleKeydownEvent: function(event)
{
if (this._keyboardShortcutEsc.matchesEvent(event)) {
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/SearchResultTreeElement.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/SearchResultTreeElement.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/SearchResultTreeElement.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -54,7 +54,7 @@
{
// Use the original location, since those line/column offsets match the line text in title.
var textRange = sourceCodeTextRange.textRange;
-
+
var searchTermIndex = textRange.startColumn;
// We should only have one line text ranges, so make sure that is the case.
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/Slider.js (173435 => 173436)
--- trunk/Source/WebInspectorUI/UserInterface/Views/Slider.js 2014-09-09 19:25:21 UTC (rev 173435)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/Slider.js 2014-09-09 19:46:41 UTC (rev 173436)
@@ -42,19 +42,19 @@
WebInspector.Slider.prototype = {
contructor: WebInspector.Slider,
__proto__: WebInspector.Object.prototype,
-
+
// Public
get element()
{
return this._element;
},
-
+
get value()
{
return this._value;
},
-
+
set value(value)
{
value = Math.max(Math.min(value, 1), 0);
@@ -70,7 +70,7 @@
if (this.delegate && typeof this.delegate.sliderValueDidChange === "function")
this.delegate.sliderValueDidChange(this, value);
},
-
+
// Protected
handleEvent: function(event)