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

Unified Diff: Source/WebCore/dom/Document.cpp

Issue 13665002: Fold ScrollingCoordinatorChromium into ScrollingCoordinator and devirtualize (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 9 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: Source/WebCore/dom/Document.cpp
diff --git a/Source/WebCore/dom/Document.cpp b/Source/WebCore/dom/Document.cpp
index 7f052417c4158fa91d3fe090121ff1c763695cb3..6fd4c7e42c8bc132a14c86d98bf3a42342d05343 100644
--- a/Source/WebCore/dom/Document.cpp
+++ b/Source/WebCore/dom/Document.cpp
@@ -4104,11 +4104,9 @@ void Document::setInPageCache(bool flag)
// function. It would be nice if there was more symmetry here.
// https://bugs.webkit.org/show_bug.cgi?id=98698
v->cacheCurrentScrollPosition();
- if (page && page->mainFrame() == m_frame) {
+ if (page && page->mainFrame() == m_frame)
v->resetScrollbarsAndClearContentsSize();
- if (ScrollingCoordinator* scrollingCoordinator = page->scrollingCoordinator())
- scrollingCoordinator->clearStateTree();
- } else
+ else
v->resetScrollbars();
}
m_styleRecalcTimer.stop();

Powered by Google App Engine
This is Rietveld 408576698