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

Unified Diff: Source/platform/scroll/ScrollView.h

Issue 328023002: Layout overflow from transforms should update frame scrollbars (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase & revise 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 | « Source/core/frame/FrameView.cpp ('k') | Source/platform/scroll/ScrollView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/scroll/ScrollView.h
diff --git a/Source/platform/scroll/ScrollView.h b/Source/platform/scroll/ScrollView.h
index aa81e2cb0a32b3858d283b9c5ca304bfd281f6ea..f19d07759c13e6140bacf5450cd8ff7be4dddff5 100644
--- a/Source/platform/scroll/ScrollView.h
+++ b/Source/platform/scroll/ScrollView.h
@@ -35,6 +35,7 @@
#include "platform/scroll/Scrollbar.h"
#include "wtf/HashSet.h"
+#include "wtf/TemporaryChange.h"
namespace WebCore {
@@ -294,6 +295,15 @@ protected:
IntSize excludeScrollbars(const IntSize&) const;
+ class InUpdateScrollbarsScope {
+ public:
+ explicit InUpdateScrollbarsScope(ScrollView* view)
+ : m_scope(view->m_inUpdateScrollbars, true)
+ { }
+ private:
+ TemporaryChange<bool> m_scope;
+ };
+
private:
bool adjustScrollbarExistence(ComputeScrollbarExistenceOption = FirstPass);
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/platform/scroll/ScrollView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698