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

Unified Diff: chrome/browser/ui/views/frame/contents_container.cc

Issue 12036075: alternate ntp: fix website page jankiness when suggestions show and top bars are hidden (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove redundant param Created 7 years, 11 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
Index: chrome/browser/ui/views/frame/contents_container.cc
diff --git a/chrome/browser/ui/views/frame/contents_container.cc b/chrome/browser/ui/views/frame/contents_container.cc
index 3af337b2c7abc59064ac6667c17e9d6226df0b87..7da065cb0861a8adb03248acbd01e9a95798bcc1 100644
--- a/chrome/browser/ui/views/frame/contents_container.cc
+++ b/chrome/browser/ui/views/frame/contents_container.cc
@@ -175,6 +175,10 @@ void ContentsContainer::MaybeStackPreviewAtTop() {
Layout();
}
+int ContentsContainer::preview_height() const {
+ return preview_ ? preview_->bounds().height() : 0;
+}
+
void ContentsContainer::SetActiveTopMargin(int margin) {
if (active_top_margin_ == margin)
return;

Powered by Google App Engine
This is Rietveld 408576698