Chromium Code Reviews| 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;) { |
|
paulirish
2016/04/22 09:50:50
This is the only change I feel bad about.
|
| 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(""); |
| } |
| /** |