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

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: Protect the feature with a runtime flag 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 91a37524021e1d8c599965b0db2654ebe5726af7..d3d15c1c7b3d324fd7048e479dbfea13264021ee 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -3464,7 +3464,13 @@ void FrameView::setLayoutSizeInternal(const IntSize& size)
return;
m_layoutSize = size;
- contentsResized();
+ ScrollView::contentsResized();
+
+ if (RenderView* renderView = this->renderView()) {
+ renderView->viewResized();
+ if (!renderView->selfNeedsLayout())
+ sendResizeEventIfNeeded();
ojan 2013/12/18 00:48:20 Why do you need to change this as part of this pat
Xianzhu 2013/12/18 20:22:45 Before the change, FrameView::performPostLayoutTas
+ }
}
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