OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010, 2011 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 12 matching lines...) Expand all Loading... |
23 * THE POSSIBILITY OF SUCH DAMAGE. | 23 * THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 | 27 |
28 #include "ScrollAnimatorMac.h" | 28 #include "ScrollAnimatorMac.h" |
29 | 29 |
30 #include "BlockExceptions.h" | 30 #include "BlockExceptions.h" |
31 #include "EmptyProtocolDefinitions.h" | 31 #include "EmptyProtocolDefinitions.h" |
32 #include "NSScrollerImpDetails.h" | 32 #include "NSScrollerImpDetails.h" |
33 #include "PlatformGestureEvent.h" | |
34 #include "PlatformWheelEvent.h" | |
35 #include "ScrollView.h" | |
36 #include "ScrollableArea.h" | |
37 #include "ScrollbarTheme.h" | |
38 #include "ScrollbarThemeMac.h" | 33 #include "ScrollbarThemeMac.h" |
39 #include "WebCoreSystemInterface.h" | 34 #include "WebCoreSystemInterface.h" |
| 35 #include "core/platform/PlatformGestureEvent.h" |
| 36 #include "core/platform/PlatformWheelEvent.h" |
| 37 #include "core/platform/ScrollView.h" |
| 38 #include "core/platform/ScrollableArea.h" |
| 39 #include "core/platform/ScrollbarTheme.h" |
40 #include "core/platform/graphics/FloatPoint.h" | 40 #include "core/platform/graphics/FloatPoint.h" |
41 #include <wtf/PassOwnPtr.h> | 41 #include <wtf/PassOwnPtr.h> |
42 #include <wtf/UnusedParam.h> | 42 #include <wtf/UnusedParam.h> |
43 | 43 |
44 using namespace WebCore; | 44 using namespace WebCore; |
45 using namespace std; | 45 using namespace std; |
46 | 46 |
47 static bool supportsUIStateTransitionProgress() | 47 static bool supportsUIStateTransitionProgress() |
48 { | 48 { |
49 // FIXME: This is temporary until all platforms that support ScrollbarPainte
r support this part of the API. | 49 // FIXME: This is temporary until all platforms that support ScrollbarPainte
r support this part of the API. |
(...skipping 1227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 rectInViewCoordinates = verticalScrollbar->convertToContainingView(scrol
lerThumb); | 1277 rectInViewCoordinates = verticalScrollbar->convertToContainingView(scrol
lerThumb); |
1278 | 1278 |
1279 if (rectInViewCoordinates == m_visibleScrollerThumbRect) | 1279 if (rectInViewCoordinates == m_visibleScrollerThumbRect) |
1280 return; | 1280 return; |
1281 | 1281 |
1282 m_scrollableArea->setVisibleScrollerThumbRect(rectInViewCoordinates); | 1282 m_scrollableArea->setVisibleScrollerThumbRect(rectInViewCoordinates); |
1283 m_visibleScrollerThumbRect = rectInViewCoordinates; | 1283 m_visibleScrollerThumbRect = rectInViewCoordinates; |
1284 } | 1284 } |
1285 | 1285 |
1286 } // namespace WebCore | 1286 } // namespace WebCore |
OLD | NEW |