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

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

Issue 235893007: DevTools: [Elements] Do update tree outlines on width change (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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
« no previous file with comments | « no previous file | 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, 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 }, 164 },
165 165
166 _updateTreeOutlineVisibleWidth: function() 166 _updateTreeOutlineVisibleWidth: function()
167 { 167 {
168 if (!this._treeOutlines.length) 168 if (!this._treeOutlines.length)
169 return; 169 return;
170 170
171 var width = this._splitView.element.offsetWidth; 171 var width = this._splitView.element.offsetWidth;
172 if (this._splitView.isVertical()) 172 if (this._splitView.isVertical())
173 width -= this._splitView.sidebarSize(); 173 width -= this._splitView.sidebarSize();
174 for (var i = 0; i > this._treeOutlines.length; ++i) { 174 for (var i = 0; i < this._treeOutlines.length; ++i) {
175 this._treeOutlines[i].setVisibleWidth(width); 175 this._treeOutlines[i].setVisibleWidth(width);
176 this._treeOutlines[i].updateSelection(); 176 this._treeOutlines[i].updateSelection();
177 } 177 }
178 this.updateBreadcrumbSizes(); 178 this.updateBreadcrumbSizes();
179 }, 179 },
180 180
181 /** 181 /**
182 * @return {!Element} 182 * @return {!Element}
183 */ 183 */
184 defaultFocusedElement: function() 184 defaultFocusedElement: function()
(...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1467 /** 1467 /**
1468 * @suppressReceiverCheck 1468 * @suppressReceiverCheck
1469 * @this {Element} 1469 * @this {Element}
1470 */ 1470 */
1471 function parentElement() 1471 function parentElement()
1472 { 1472 {
1473 return this.parentElement; 1473 return this.parentElement;
1474 } 1474 }
1475 } 1475 }
1476 } 1476 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698