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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js

Issue 2255983002: DevTools: refactor and fix bugs for DOMBreakpointsSidebarPane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reduce CL changes Created 4 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 379
380 var treeOutline = WebInspector.ElementsTreeOutline.forDOMModel(domModel) ; 380 var treeOutline = WebInspector.ElementsTreeOutline.forDOMModel(domModel) ;
381 treeOutline.rootDOMNode = inspectedRootDocument; 381 treeOutline.rootDOMNode = inspectedRootDocument;
382 382
383 if (!inspectedRootDocument) { 383 if (!inspectedRootDocument) {
384 if (this.isShowing()) 384 if (this.isShowing())
385 domModel.requestDocument(); 385 domModel.requestDocument();
386 return; 386 return;
387 } 387 }
388 388
389 WebInspector.domBreakpointsSidebarPane.restoreBreakpoints(domModel);
390
391 /** 389 /**
392 * @this {WebInspector.ElementsPanel} 390 * @this {WebInspector.ElementsPanel}
393 * @param {?WebInspector.DOMNode} candidateFocusNode 391 * @param {?WebInspector.DOMNode} candidateFocusNode
394 */ 392 */
395 function selectNode(candidateFocusNode) 393 function selectNode(candidateFocusNode)
396 { 394 {
397 if (!candidateFocusNode) 395 if (!candidateFocusNode)
398 candidateFocusNode = inspectedRootDocument.body || inspectedRoot Document.documentElement; 396 candidateFocusNode = inspectedRootDocument.body || inspectedRoot Document.documentElement;
399 397
400 if (!candidateFocusNode) 398 if (!candidateFocusNode)
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 /** 1117 /**
1120 * @override 1118 * @override
1121 * @param {!WebInspector.DOMNode} node 1119 * @param {!WebInspector.DOMNode} node
1122 * @return {?{title: string, color: string}} 1120 * @return {?{title: string, color: string}}
1123 */ 1121 */
1124 decorate: function(node) 1122 decorate: function(node)
1125 { 1123 {
1126 return { color: "orange", title: WebInspector.UIString("Element state: % s", ":" + WebInspector.CSSModel.fromNode(node).pseudoState(node).join(", :")) }; 1124 return { color: "orange", title: WebInspector.UIString("Element state: % s", ":" + WebInspector.CSSModel.fromNode(node).pseudoState(node).join(", :")) };
1127 } 1125 }
1128 } 1126 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698