Chromium Code Reviews| Index: Source/platform/scroll/ScrollView.h |
| diff --git a/Source/platform/scroll/ScrollView.h b/Source/platform/scroll/ScrollView.h |
| index aa81e2cb0a32b3858d283b9c5ca304bfd281f6ea..ba7f818bb1b79e1258636b807b4820afb5d23f5a 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,13 @@ protected: |
| IntSize excludeScrollbars(const IntSize&) const; |
| + class InUpdateScrollbarsScope { |
| + public: |
| + explicit InUpdateScrollbarsScope(ScrollView* view) : m_scope(view->m_inUpdateScrollbars, true) { } |
|
esprehn
2014/06/13 05:22:22
ScrollView&, I'd also put the : on the next line l
|
| + private: |
| + TemporaryChange<bool> m_scope; |
| + }; |
| + |
| private: |
| bool adjustScrollbarExistence(ComputeScrollbarExistenceOption = FirstPass); |