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

Unified Diff: third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: Created 4 years, 1 month 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/animation/AnimationTimeline.js
diff --git a/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js b/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js
index 8b2cf88a7bca826cce5332067935f6415fd02c98..18f2b9d332f2f60676eaa40231aa293b4d77b8ca 100644
--- a/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js
+++ b/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js
@@ -49,12 +49,18 @@ WebInspector.AnimationTimeline._ControlState = {
};
WebInspector.AnimationTimeline.prototype = {
+ /**
+ * @override
+ */
wasShown: function()
{
for (var target of WebInspector.targetManager.targets(WebInspector.Target.Capability.DOM))
this._addEventListeners(target);
},
+ /**
+ * @override
+ */
willHide: function()
{
for (var target of WebInspector.targetManager.targets(WebInspector.Target.Capability.DOM))
@@ -546,6 +552,9 @@ WebInspector.AnimationTimeline.prototype = {
delete this._redrawing;
},
+ /**
+ * @override
+ */
onResize: function()
{
this._cachedTimelineWidth = Math.max(0, this._animationsContainer.offsetWidth - this._timelineControlsWidth) || 0;

Powered by Google App Engine
This is Rietveld 408576698