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

Unified Diff: Source/core/frame/FrameView.cpp

Issue 99663004: Avoid layout/full-repaint on view height change if possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: quicks mode; dialogs Created 7 years 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/core/rendering/RenderBlock.h » ('j') | Source/core/rendering/RenderBox.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index 7a0bc2627cdb397039f409f18b67e3ffe136932f..bb6aa76c4fadea6ef103c1062d2f00b5bc679621 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -3468,7 +3468,13 @@ void FrameView::setLayoutSizeInternal(const IntSize& size)
return;
m_layoutSize = size;
- contentsResized();
+ ScrollView::contentsResized();
ojan 2014/01/03 02:04:26 This deserves a comment as to why we're calling th
Xianzhu 2014/01/03 20:46:24 Done.
+
+ if (RenderView* renderView = this->renderView()) {
+ renderView->viewResized();
+ if (!renderView->selfNeedsLayout())
ojan 2014/01/03 02:04:26 This also deserves a comment explaining why we don
Xianzhu 2014/01/03 20:46:24 Done.
+ sendResizeEventIfNeeded();
+ }
}
void FrameView::didAddScrollbar(Scrollbar* scrollbar, ScrollbarOrientation orientation)
« no previous file with comments | « no previous file | Source/core/rendering/RenderBlock.h » ('j') | Source/core/rendering/RenderBox.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698