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

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

Issue 661103002: DevTools: make web component anchor handling go the generic route. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 686
687 _metricsPaneEdited: function() 687 _metricsPaneEdited: function()
688 { 688 {
689 // Once metrics are edited, the Styles pane should be updated. 689 // Once metrics are edited, the Styles pane should be updated.
690 this.sidebarPanes.styles.needsUpdate = true; 690 this.sidebarPanes.styles.needsUpdate = true;
691 this.updateStyles(true); 691 this.updateStyles(true);
692 }, 692 },
693 693
694 _mouseMovedInCrumbs: function(event) 694 _mouseMovedInCrumbs: function(event)
695 { 695 {
696 var nodeUnderMouse = event.elementFromPoint(); 696 var nodeUnderMouse = event.deepElementFromPoint();
697 var crumbElement = nodeUnderMouse.enclosingNodeOrSelfWithClass("crumb"); 697 var crumbElement = nodeUnderMouse.enclosingNodeOrSelfWithClass("crumb");
698 var node = /** @type {?WebInspector.DOMNode} */ (crumbElement ? crumbEle ment.representedObject : null); 698 var node = /** @type {?WebInspector.DOMNode} */ (crumbElement ? crumbEle ment.representedObject : null);
699 if (node) 699 if (node)
700 node.highlight(); 700 node.highlight();
701 }, 701 },
702 702
703 _mouseMovedOutOfCrumbs: function(event) 703 _mouseMovedOutOfCrumbs: function(event)
704 { 704 {
705 var nodeUnderMouse = event.elementFromPoint(); 705 var nodeUnderMouse = event.deepElementFromPoint();
706 if (nodeUnderMouse && nodeUnderMouse.isDescendant(this.crumbsElement)) 706 if (nodeUnderMouse && nodeUnderMouse.isDescendant(this.crumbsElement))
707 return; 707 return;
708 708
709 for (var i = 0; i < this._treeOutlines.length; ++i) 709 for (var i = 0; i < this._treeOutlines.length; ++i)
710 this._treeOutlines[i].domModel().hideDOMNodeHighlight(); 710 this._treeOutlines[i].domModel().hideDOMNodeHighlight();
711 }, 711 },
712 712
713 /** 713 /**
714 * @param {boolean=} forceUpdate 714 * @param {boolean=} forceUpdate
715 */ 715 */
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
1545 1545
1546 WebInspector.ElementsPanelFactory.prototype = { 1546 WebInspector.ElementsPanelFactory.prototype = {
1547 /** 1547 /**
1548 * @return {!WebInspector.Panel} 1548 * @return {!WebInspector.Panel}
1549 */ 1549 */
1550 createPanel: function() 1550 createPanel: function()
1551 { 1551 {
1552 return WebInspector.ElementsPanel.instance(); 1552 return WebInspector.ElementsPanel.instance();
1553 } 1553 }
1554 } 1554 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/elements/ElementsTreeOutline.js » ('j') | Source/devtools/front_end/main/Main.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698