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

Unified Diff: Source/devtools/front_end/console/ConsoleViewMessage.js

Issue 340483003: DevTools: [Console] Separate height caching from willHide event (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: cacheHeight -> cacheFastHeight Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/devtools/front_end/ui/ViewportControl.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/console/ConsoleViewMessage.js
diff --git a/Source/devtools/front_end/console/ConsoleViewMessage.js b/Source/devtools/front_end/console/ConsoleViewMessage.js
index bb3823f1908d65c5577c8e759bdd4055490d7636..16e6bd265f0cc1aee986273780ef08fa28101990 100644
--- a/Source/devtools/front_end/console/ConsoleViewMessage.js
+++ b/Source/devtools/front_end/console/ConsoleViewMessage.js
@@ -84,9 +84,13 @@ WebInspector.ConsoleViewMessage.prototype = {
}
},
- willHide: function()
+ cacheFastHeight: function()
{
this._cachedHeight = this.contentElement().clientHeight;
+ },
+
+ willHide: function()
+ {
for (var i = 0; this._dataGrids && i < this._dataGrids.length; ++i) {
var dataGrid = this._dataGrids[i];
this._dataGridParents.put(dataGrid, dataGrid.element.parentElement);
« no previous file with comments | « no previous file | Source/devtools/front_end/ui/ViewportControl.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698