Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(557)

Unified Diff: third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js

Issue 1907263002: DevTools: Fix all outstanding JavaScript style issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove yoda disable. fix throw parens Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js
diff --git a/third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js b/third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js
index 90abdf26d69e9ab63c44643ebbef430725fd8e5b..30f588fc3b89e99ca73488a8dc0f4bbc1b3c20ce 100644
--- a/third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js
+++ b/third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js
@@ -186,7 +186,7 @@ Element.prototype.isScrolledToBottom = function()
*/
function removeSubsequentNodes(fromNode, toNode)
{
- for (var node = fromNode; node && node !== toNode; ) {
+ for (var node = fromNode; node && node !== toNode;) {
var nodeToRemove = node;
node = node.nextSibling;
nodeToRemove.remove();
@@ -746,7 +746,7 @@ Node.prototype.appendChildren = function(var_args)
*/
Node.prototype.deepTextContent = function()
{
- return this.childTextNodes().map(function (node) { return node.textContent; }).join("");
+ return this.childTextNodes().map(function(node) { return node.textContent; }).join("");
}
/**

Powered by Google App Engine
This is Rietveld 408576698