OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2009 Holger Hans Peter Freyther | 3 * Copyright (C) 2009 Holger Hans Peter Freyther |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 public: | 299 public: |
300 explicit InUpdateScrollbarsScope(ScrollView* view) | 300 explicit InUpdateScrollbarsScope(ScrollView* view) |
301 : m_scope(view->m_inUpdateScrollbars, true) | 301 : m_scope(view->m_inUpdateScrollbars, true) |
302 { } | 302 { } |
303 private: | 303 private: |
304 TemporaryChange<bool> m_scope; | 304 TemporaryChange<bool> m_scope; |
305 }; | 305 }; |
306 | 306 |
307 private: | 307 private: |
308 bool adjustScrollbarExistence(ComputeScrollbarExistenceOption = FirstPass); | 308 bool adjustScrollbarExistence(ComputeScrollbarExistenceOption = FirstPass); |
| 309 void adjustScrollbarOpacity(); |
309 | 310 |
310 RefPtr<Scrollbar> m_horizontalScrollbar; | 311 RefPtr<Scrollbar> m_horizontalScrollbar; |
311 RefPtr<Scrollbar> m_verticalScrollbar; | 312 RefPtr<Scrollbar> m_verticalScrollbar; |
312 ScrollbarMode m_horizontalScrollbarMode; | 313 ScrollbarMode m_horizontalScrollbarMode; |
313 ScrollbarMode m_verticalScrollbarMode; | 314 ScrollbarMode m_verticalScrollbarMode; |
314 | 315 |
315 bool m_horizontalScrollbarLock; | 316 bool m_horizontalScrollbarLock; |
316 bool m_verticalScrollbarLock; | 317 bool m_verticalScrollbarLock; |
317 | 318 |
318 HashSet<RefPtr<Widget> > m_children; | 319 HashSet<RefPtr<Widget> > m_children; |
(...skipping 21 matching lines...) Expand all Loading... |
340 | 341 |
341 void calculateOverhangAreasForPainting(IntRect& horizontalOverhangRect, IntR
ect& verticalOverhangRect); | 342 void calculateOverhangAreasForPainting(IntRect& horizontalOverhangRect, IntR
ect& verticalOverhangRect); |
342 void updateOverhangAreas(); | 343 void updateOverhangAreas(); |
343 }; // class ScrollView | 344 }; // class ScrollView |
344 | 345 |
345 DEFINE_TYPE_CASTS(ScrollView, Widget, widget, widget->isScrollView(), widget.isS
crollView()); | 346 DEFINE_TYPE_CASTS(ScrollView, Widget, widget, widget->isScrollView(), widget.isS
crollView()); |
346 | 347 |
347 } // namespace WebCore | 348 } // namespace WebCore |
348 | 349 |
349 #endif // ScrollView_h | 350 #endif // ScrollView_h |
OLD | NEW |