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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/Widget.js

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline Created 4 years, 2 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/ui/Widget.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/Widget.js b/third_party/WebKit/Source/devtools/front_end/ui/Widget.js
index 6322a817ff52051ca91540e7e343ee607df60114..c14e5b86aed93382997eb800be1d7ccda6e00d12 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/Widget.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/Widget.js
@@ -49,7 +49,7 @@ WebInspector.Widget = function(isWebComponent)
this._notificationDepth = 0;
this._invalidationsSuspended = 0;
this._defaultFocusedChild = null;
-}
+};
WebInspector.Widget.prototype = {
markAsRoot: function()
@@ -593,7 +593,7 @@ WebInspector.Widget.prototype = {
},
__proto__: WebInspector.Object.prototype
-}
+};
WebInspector.Widget._originalAppendChild = Element.prototype.appendChild;
WebInspector.Widget._originalInsertBefore = Element.prototype.insertBefore;
@@ -610,7 +610,7 @@ WebInspector.Widget._incrementWidgetCounter = function(parentElement, childEleme
parentElement.__widgetCounter = (parentElement.__widgetCounter || 0) + count;
parentElement = parentElement.parentElementOrShadowHost();
}
-}
+};
WebInspector.Widget._decrementWidgetCounter = function(parentElement, childElement)
{
@@ -622,7 +622,7 @@ WebInspector.Widget._decrementWidgetCounter = function(parentElement, childEleme
parentElement.__widgetCounter -= count;
parentElement = parentElement.parentElementOrShadowHost();
}
-}
+};
WebInspector.Widget.__assert = function(condition, message)
{
@@ -630,7 +630,7 @@ WebInspector.Widget.__assert = function(condition, message)
console.trace();
throw new Error(message);
}
-}
+};
/**
* @param {?Node} node
@@ -650,7 +650,7 @@ WebInspector.Widget.focusWidgetForNode = function(node)
widget._parentWidget._defaultFocusedChild = widget;
widget = widget._parentWidget;
}
-}
+};
/**
* @constructor
@@ -737,7 +737,7 @@ WebInspector.VBoxWithResizeCallback = function(resizeCallback)
{
WebInspector.VBox.call(this);
this._resizeCallback = resizeCallback;
-}
+};
WebInspector.VBoxWithResizeCallback.prototype = {
onResize: function()
@@ -746,7 +746,7 @@ WebInspector.VBoxWithResizeCallback.prototype = {
},
__proto__: WebInspector.VBox.prototype
-}
+};
/**
* @param {!WebInspector.Widget} widget
@@ -757,7 +757,7 @@ WebInspector.WidgetFocusRestorer = function(widget)
this._widget = widget;
this._previous = widget.element.ownerDocument.deepActiveElement();
widget.focus();
-}
+};
WebInspector.WidgetFocusRestorer.prototype = {
restore: function()
@@ -769,7 +769,7 @@ WebInspector.WidgetFocusRestorer.prototype = {
this._previous = null;
this._widget = null;
}
-}
+};
/**
* @override
@@ -781,7 +781,7 @@ Element.prototype.appendChild = function(child)
{
WebInspector.Widget.__assert(!child.__widget || child.parentElement === this, "Attempt to add widget via regular DOM operation.");
return WebInspector.Widget._originalAppendChild.call(this, child);
-}
+};
/**
* @override
@@ -794,7 +794,7 @@ Element.prototype.insertBefore = function(child, anchor)
{
WebInspector.Widget.__assert(!child.__widget || child.parentElement === this, "Attempt to add widget via regular DOM operation.");
return WebInspector.Widget._originalInsertBefore.call(this, child, anchor);
-}
+};
/**
* @override
@@ -806,10 +806,10 @@ Element.prototype.removeChild = function(child)
{
WebInspector.Widget.__assert(!child.__widgetCounter && !child.__widget, "Attempt to remove element containing widget via regular DOM operation");
return WebInspector.Widget._originalRemoveChild.call(this, child);
-}
+};
Element.prototype.removeChildren = function()
{
WebInspector.Widget.__assert(!this.__widgetCounter, "Attempt to remove element containing widget via regular DOM operation");
WebInspector.Widget._originalRemoveChildren.call(this);
-}
+};

Powered by Google App Engine
This is Rietveld 408576698