| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2008 Apple 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 m_currentPos(0), | 52 m_currentPos(0), |
| 53 m_dragOrigin(0), | 53 m_dragOrigin(0), |
| 54 m_hoveredPart(NoPart), | 54 m_hoveredPart(NoPart), |
| 55 m_pressedPart(NoPart), | 55 m_pressedPart(NoPart), |
| 56 m_pressedPos(0), | 56 m_pressedPos(0), |
| 57 m_scrollPos(0), | 57 m_scrollPos(0), |
| 58 m_draggingDocument(false), | 58 m_draggingDocument(false), |
| 59 m_documentDragPos(0), | 59 m_documentDragPos(0), |
| 60 m_enabled(true), | 60 m_enabled(true), |
| 61 m_scrollTimer(this, &Scrollbar::autoscrollTimerFired), | 61 m_scrollTimer(this, &Scrollbar::autoscrollTimerFired), |
| 62 m_overlapsResizer(false), | |
| 63 m_elasticOverscroll(0), | 62 m_elasticOverscroll(0), |
| 64 m_trackNeedsRepaint(true), | 63 m_trackNeedsRepaint(true), |
| 65 m_thumbNeedsRepaint(true) { | 64 m_thumbNeedsRepaint(true) { |
| 66 m_theme.registerScrollbar(*this); | 65 m_theme.registerScrollbar(*this); |
| 67 | 66 |
| 68 // FIXME: This is ugly and would not be necessary if we fix cross-platform | 67 // FIXME: This is ugly and would not be necessary if we fix cross-platform |
| 69 // code to actually query for scrollbar thickness and use it when sizing | 68 // code to actually query for scrollbar thickness and use it when sizing |
| 70 // scrollbars (rather than leaving one dimension of the scrollbar alone when | 69 // scrollbars (rather than leaving one dimension of the scrollbar alone when |
| 71 // sizing). | 70 // sizing). |
| 72 int thickness = m_theme.scrollbarThickness(controlSize); | 71 int thickness = m_theme.scrollbarThickness(controlSize); |
| (...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 invalidParts = AllParts; | 618 invalidParts = AllParts; |
| 620 if (invalidParts & ~ThumbPart) | 619 if (invalidParts & ~ThumbPart) |
| 621 m_trackNeedsRepaint = true; | 620 m_trackNeedsRepaint = true; |
| 622 if (invalidParts & ThumbPart) | 621 if (invalidParts & ThumbPart) |
| 623 m_thumbNeedsRepaint = true; | 622 m_thumbNeedsRepaint = true; |
| 624 if (m_scrollableArea) | 623 if (m_scrollableArea) |
| 625 m_scrollableArea->setScrollbarNeedsPaintInvalidation(orientation()); | 624 m_scrollableArea->setScrollbarNeedsPaintInvalidation(orientation()); |
| 626 } | 625 } |
| 627 | 626 |
| 628 } // namespace blink | 627 } // namespace blink |
| OLD | NEW |