OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |