OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006 Apple Computer, Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 int m_documentDragPos; | 213 int m_documentDragPos; |
214 | 214 |
215 bool m_enabled; | 215 bool m_enabled; |
216 | 216 |
217 Timer<Scrollbar> m_scrollTimer; | 217 Timer<Scrollbar> m_scrollTimer; |
218 bool m_overlapsResizer; | 218 bool m_overlapsResizer; |
219 | 219 |
220 float m_elasticOverscroll; | 220 float m_elasticOverscroll; |
221 | 221 |
222 private: | 222 private: |
| 223 DISPLAY_ITEM_CACHE_STATUS_UNCACHEABLE_IMPLEMENTATION |
| 224 |
223 bool isScrollbar() const override { return true; } | 225 bool isScrollbar() const override { return true; } |
224 | 226 |
225 void invalidate() override { setNeedsPaintInvalidation(AllParts); } | 227 void invalidate() override { setNeedsPaintInvalidation(AllParts); } |
226 void invalidateRect(const IntRect&) override { setNeedsPaintInvalidation(All
Parts); } | 228 void invalidateRect(const IntRect&) override { setNeedsPaintInvalidation(All
Parts); } |
227 | 229 |
228 float scrollableAreaCurrentPos() const; | 230 float scrollableAreaCurrentPos() const; |
229 float scrollableAreaTargetPos() const; | 231 float scrollableAreaTargetPos() const; |
230 bool thumbWillBeUnderMouse() const; | 232 bool thumbWillBeUnderMouse() const; |
231 | 233 |
232 bool m_trackNeedsRepaint; | 234 bool m_trackNeedsRepaint; |
233 bool m_thumbNeedsRepaint; | 235 bool m_thumbNeedsRepaint; |
234 }; | 236 }; |
235 | 237 |
236 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); | 238 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); |
237 | 239 |
238 } // namespace blink | 240 } // namespace blink |
239 | 241 |
240 #endif // Scrollbar_h | 242 #endif // Scrollbar_h |
OLD | NEW |