| 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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 755 bool& newHasVerticalScrollbar, | 755 bool& newHasVerticalScrollbar, |
| 756 const IntSize& docSize, | 756 const IntSize& docSize, |
| 757 ComputeScrollbarExistenceOption = FirstPass) const; | 757 ComputeScrollbarExistenceOption = FirstPass) const; |
| 758 void updateScrollbarGeometry(); | 758 void updateScrollbarGeometry(); |
| 759 | 759 |
| 760 // Called to update the scrollbars to accurately reflect the state of the | 760 // Called to update the scrollbars to accurately reflect the state of the |
| 761 // view. | 761 // view. |
| 762 void updateScrollbars(); | 762 void updateScrollbars(); |
| 763 void updateScrollbarsIfNeeded(); | 763 void updateScrollbarsIfNeeded(); |
| 764 | 764 |
| 765 void didChangeScrollbarsHidden() override; |
| 766 |
| 765 class InUpdateScrollbarsScope { | 767 class InUpdateScrollbarsScope { |
| 766 STACK_ALLOCATED(); | 768 STACK_ALLOCATED(); |
| 767 | 769 |
| 768 public: | 770 public: |
| 769 explicit InUpdateScrollbarsScope(FrameView* view) | 771 explicit InUpdateScrollbarsScope(FrameView* view) |
| 770 : m_scope(&view->m_inUpdateScrollbars, true) {} | 772 : m_scope(&view->m_inUpdateScrollbars, true) {} |
| 771 | 773 |
| 772 private: | 774 private: |
| 773 AutoReset<bool> m_scope; | 775 AutoReset<bool> m_scope; |
| 774 }; | 776 }; |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1133 widget.isFrameView()); | 1135 widget.isFrameView()); |
| 1134 DEFINE_TYPE_CASTS(FrameView, | 1136 DEFINE_TYPE_CASTS(FrameView, |
| 1135 ScrollableArea, | 1137 ScrollableArea, |
| 1136 scrollableArea, | 1138 scrollableArea, |
| 1137 scrollableArea->isFrameView(), | 1139 scrollableArea->isFrameView(), |
| 1138 scrollableArea.isFrameView()); | 1140 scrollableArea.isFrameView()); |
| 1139 | 1141 |
| 1140 } // namespace blink | 1142 } // namespace blink |
| 1141 | 1143 |
| 1142 #endif // FrameView_h | 1144 #endif // FrameView_h |
| OLD | NEW |