OLD | NEW |
1 /* | 1 /* |
2 Copyright (C) 1997 Martin Jones (mjones@kde.org) | 2 Copyright (C) 1997 Martin Jones (mjones@kde.org) |
3 (C) 1998 Waldo Bastian (bastian@kde.org) | 3 (C) 1998 Waldo Bastian (bastian@kde.org) |
4 (C) 1998, 1999 Torben Weis (weis@kde.org) | 4 (C) 1998, 1999 Torben Weis (weis@kde.org) |
5 (C) 1999 Lars Knoll (knoll@kde.org) | 5 (C) 1999 Lars Knoll (knoll@kde.org) |
6 (C) 1999 Antti Koivisto (koivisto@kde.org) | 6 (C) 1999 Antti Koivisto (koivisto@kde.org) |
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights | 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights |
8 reserved. | 8 reserved. |
9 | 9 |
10 This library is free software; you can redistribute it and/or | 10 This library is free software; you can redistribute it and/or |
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 bool& newHasVerticalScrollbar, | 754 bool& newHasVerticalScrollbar, |
755 const IntSize& docSize, | 755 const IntSize& docSize, |
756 ComputeScrollbarExistenceOption = FirstPass) const; | 756 ComputeScrollbarExistenceOption = FirstPass) const; |
757 void updateScrollbarGeometry(); | 757 void updateScrollbarGeometry(); |
758 | 758 |
759 // Called to update the scrollbars to accurately reflect the state of the | 759 // Called to update the scrollbars to accurately reflect the state of the |
760 // view. | 760 // view. |
761 void updateScrollbars(); | 761 void updateScrollbars(); |
762 void updateScrollbarsIfNeeded(); | 762 void updateScrollbarsIfNeeded(); |
763 | 763 |
| 764 void didChangeScrollbarsHidden() override; |
| 765 |
764 class InUpdateScrollbarsScope { | 766 class InUpdateScrollbarsScope { |
765 STACK_ALLOCATED(); | 767 STACK_ALLOCATED(); |
766 | 768 |
767 public: | 769 public: |
768 explicit InUpdateScrollbarsScope(FrameView* view) | 770 explicit InUpdateScrollbarsScope(FrameView* view) |
769 : m_scope(&view->m_inUpdateScrollbars, true) {} | 771 : m_scope(&view->m_inUpdateScrollbars, true) {} |
770 | 772 |
771 private: | 773 private: |
772 AutoReset<bool> m_scope; | 774 AutoReset<bool> m_scope; |
773 }; | 775 }; |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1132 widget.isFrameView()); | 1134 widget.isFrameView()); |
1133 DEFINE_TYPE_CASTS(FrameView, | 1135 DEFINE_TYPE_CASTS(FrameView, |
1134 ScrollableArea, | 1136 ScrollableArea, |
1135 scrollableArea, | 1137 scrollableArea, |
1136 scrollableArea->isFrameView(), | 1138 scrollableArea->isFrameView(), |
1137 scrollableArea.isFrameView()); | 1139 scrollableArea.isFrameView()); |
1138 | 1140 |
1139 } // namespace blink | 1141 } // namespace blink |
1140 | 1142 |
1141 #endif // FrameView_h | 1143 #endif // FrameView_h |
OLD | NEW |