| 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 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 bool& newHasVerticalScrollbar, | 756 bool& newHasVerticalScrollbar, |
| 757 const IntSize& docSize, | 757 const IntSize& docSize, |
| 758 ComputeScrollbarExistenceOption = FirstPass) const; | 758 ComputeScrollbarExistenceOption = FirstPass) const; |
| 759 void updateScrollbarGeometry(); | 759 void updateScrollbarGeometry(); |
| 760 | 760 |
| 761 // Called to update the scrollbars to accurately reflect the state of the | 761 // Called to update the scrollbars to accurately reflect the state of the |
| 762 // view. | 762 // view. |
| 763 void updateScrollbars(); | 763 void updateScrollbars(); |
| 764 void updateScrollbarsIfNeeded(); | 764 void updateScrollbarsIfNeeded(); |
| 765 | 765 |
| 766 void didChangeScrollbarsHidden() override; |
| 767 |
| 766 class InUpdateScrollbarsScope { | 768 class InUpdateScrollbarsScope { |
| 767 STACK_ALLOCATED(); | 769 STACK_ALLOCATED(); |
| 768 | 770 |
| 769 public: | 771 public: |
| 770 explicit InUpdateScrollbarsScope(FrameView* view) | 772 explicit InUpdateScrollbarsScope(FrameView* view) |
| 771 : m_scope(&view->m_inUpdateScrollbars, true) {} | 773 : m_scope(&view->m_inUpdateScrollbars, true) {} |
| 772 | 774 |
| 773 private: | 775 private: |
| 774 AutoReset<bool> m_scope; | 776 AutoReset<bool> m_scope; |
| 775 }; | 777 }; |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1113 widget.isFrameView()); | 1115 widget.isFrameView()); |
| 1114 DEFINE_TYPE_CASTS(FrameView, | 1116 DEFINE_TYPE_CASTS(FrameView, |
| 1115 ScrollableArea, | 1117 ScrollableArea, |
| 1116 scrollableArea, | 1118 scrollableArea, |
| 1117 scrollableArea->isFrameView(), | 1119 scrollableArea->isFrameView(), |
| 1118 scrollableArea.isFrameView()); | 1120 scrollableArea.isFrameView()); |
| 1119 | 1121 |
| 1120 } // namespace blink | 1122 } // namespace blink |
| 1121 | 1123 |
| 1122 #endif // FrameView_h | 1124 #endif // FrameView_h |
| OLD | NEW |