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

Side by Side Diff: WebCore/inspector/front-end/treeoutline.js

Issue 3429016: Merge 67601 - 2010-09-16 Pavel Feldman <pfeldman@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/517/
Patch Set: Created 10 years, 3 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 | « WebCore/inspector/front-end/ConsoleView.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 if (event.altKey) 644 if (event.altKey)
645 element.treeElement.collapseRecursively(); 645 element.treeElement.collapseRecursively();
646 else 646 else
647 element.treeElement.collapse(); 647 element.treeElement.collapse();
648 } else { 648 } else {
649 if (event.altKey) 649 if (event.altKey)
650 element.treeElement.expandRecursively(); 650 element.treeElement.expandRecursively();
651 else 651 else
652 element.treeElement.expand(); 652 element.treeElement.expand();
653 } 653 }
654 event.stopPropagation();
654 } 655 }
655 656
656 TreeElement.treeElementDoubleClicked = function(event) 657 TreeElement.treeElementDoubleClicked = function(event)
657 { 658 {
658 var element = event.currentTarget; 659 var element = event.currentTarget;
659 if (!element || !element.treeElement) 660 if (!element || !element.treeElement)
660 return; 661 return;
661 662
662 if (element.treeElement.ondblclick) 663 if (element.treeElement.ondblclick)
663 element.treeElement.ondblclick.call(element.treeElement, event); 664 element.treeElement.ondblclick.call(element.treeElement, event);
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 return null; 884 return null;
884 885
885 return this.parent; 886 return this.parent;
886 } 887 }
887 888
888 TreeElement.prototype.isEventWithinDisclosureTriangle = function(event) 889 TreeElement.prototype.isEventWithinDisclosureTriangle = function(event)
889 { 890 {
890 var left = this._listItemNode.totalOffsetLeft; 891 var left = this._listItemNode.totalOffsetLeft;
891 return event.pageX >= left && event.pageX <= left + this.arrowToggleWidth && this.hasChildren; 892 return event.pageX >= left && event.pageX <= left + this.arrowToggleWidth && this.hasChildren;
892 } 893 }
OLDNEW
« no previous file with comments | « WebCore/inspector/front-end/ConsoleView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698