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

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

Issue 2422413002: DevTools: popovers use padding instead of margin (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/ui/Popover.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.VBox} 7 * @extends {WebInspector.VBox}
8 * @implements {WebInspector.TargetManager.Observer} 8 * @implements {WebInspector.TargetManager.Observer}
9 */ 9 */
10 WebInspector.AnimationTimeline = function() 10 WebInspector.AnimationTimeline = function()
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 screenshots[0].onload = onFirstScreenshotLoaded.bind(null, screensho ts); 199 screenshots[0].onload = onFirstScreenshotLoaded.bind(null, screensho ts);
200 else 200 else
201 onFirstScreenshotLoaded(screenshots); 201 onFirstScreenshotLoaded(screenshots);
202 202
203 /** 203 /**
204 * @param {!Array.<!Image>} screenshots 204 * @param {!Array.<!Image>} screenshots
205 */ 205 */
206 function onFirstScreenshotLoaded(screenshots) 206 function onFirstScreenshotLoaded(screenshots)
207 { 207 {
208 var content = new WebInspector.AnimationScreenshotPopover(screenshot s); 208 var content = new WebInspector.AnimationScreenshotPopover(screenshot s);
209 popover.setNoMargins(true); 209 popover.setNoPadding(true);
210 popover.showView(content, anchor); 210 popover.showView(content, anchor);
211 } 211 }
212 }, 212 },
213 213
214 _onHidePopover: function() 214 _onHidePopover: function()
215 { 215 {
216 }, 216 },
217 217
218 _togglePauseAll: function() 218 _togglePauseAll: function()
219 { 219 {
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 */ 763 */
764 WebInspector.AnimationTimeline.StepTimingFunction.parse = function(text) { 764 WebInspector.AnimationTimeline.StepTimingFunction.parse = function(text) {
765 var match = text.match(/^steps\((\d+), (start|middle)\)$/); 765 var match = text.match(/^steps\((\d+), (start|middle)\)$/);
766 if (match) 766 if (match)
767 return new WebInspector.AnimationTimeline.StepTimingFunction(parseInt(ma tch[1], 10), match[2]); 767 return new WebInspector.AnimationTimeline.StepTimingFunction(parseInt(ma tch[1], 10), match[2]);
768 match = text.match(/^steps\((\d+)\)$/); 768 match = text.match(/^steps\((\d+)\)$/);
769 if (match) 769 if (match)
770 return new WebInspector.AnimationTimeline.StepTimingFunction(parseInt(ma tch[1], 10), "end"); 770 return new WebInspector.AnimationTimeline.StepTimingFunction(parseInt(ma tch[1], 10), "end");
771 return null; 771 return null;
772 } 772 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/ui/Popover.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698