| 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 | |
| 766 class InUpdateScrollbarsScope { | 764 class InUpdateScrollbarsScope { |
| 767 STACK_ALLOCATED(); | 765 STACK_ALLOCATED(); |
| 768 | 766 |
| 769 public: | 767 public: |
| 770 explicit InUpdateScrollbarsScope(FrameView* view) | 768 explicit InUpdateScrollbarsScope(FrameView* view) |
| 771 : m_scope(&view->m_inUpdateScrollbars, true) {} | 769 : m_scope(&view->m_inUpdateScrollbars, true) {} |
| 772 | 770 |
| 773 private: | 771 private: |
| 774 AutoReset<bool> m_scope; | 772 AutoReset<bool> m_scope; |
| 775 }; | 773 }; |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1134 widget.isFrameView()); | 1132 widget.isFrameView()); |
| 1135 DEFINE_TYPE_CASTS(FrameView, | 1133 DEFINE_TYPE_CASTS(FrameView, |
| 1136 ScrollableArea, | 1134 ScrollableArea, |
| 1137 scrollableArea, | 1135 scrollableArea, |
| 1138 scrollableArea->isFrameView(), | 1136 scrollableArea->isFrameView(), |
| 1139 scrollableArea.isFrameView()); | 1137 scrollableArea.isFrameView()); |
| 1140 | 1138 |
| 1141 } // namespace blink | 1139 } // namespace blink |
| 1142 | 1140 |
| 1143 #endif // FrameView_h | 1141 #endif // FrameView_h |
| OLD | NEW |