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 19 matching lines...) Expand all Loading... |
30 #include "core/platform/PlatformGestureEvent.h" | 30 #include "core/platform/PlatformGestureEvent.h" |
31 #include "core/platform/PlatformWheelEvent.h" | 31 #include "core/platform/PlatformWheelEvent.h" |
32 #include "core/platform/ScrollView.h" | 32 #include "core/platform/ScrollView.h" |
33 #include "core/platform/ScrollableArea.h" | 33 #include "core/platform/ScrollableArea.h" |
34 #include "core/platform/ScrollbarTheme.h" | 34 #include "core/platform/ScrollbarTheme.h" |
35 #include "core/platform/graphics/FloatPoint.h" | 35 #include "core/platform/graphics/FloatPoint.h" |
36 #include "core/platform/mac/BlockExceptions.h" | 36 #include "core/platform/mac/BlockExceptions.h" |
37 #include "core/platform/mac/EmptyProtocolDefinitions.h" | 37 #include "core/platform/mac/EmptyProtocolDefinitions.h" |
38 #include "core/platform/mac/NSScrollerImpDetails.h" | 38 #include "core/platform/mac/NSScrollerImpDetails.h" |
39 #include "core/platform/mac/ScrollbarThemeMac.h" | 39 #include "core/platform/mac/ScrollbarThemeMac.h" |
40 #include <wtf/MainThread.h> | 40 #include "wtf/MainThread.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. |
50 static bool globalSupportsUIStateTransitionProgress = [NSClassFromString(@"N
SScrollerImp") instancesRespondToSelector:@selector(mouseEnteredScroller)]; | 50 static bool globalSupportsUIStateTransitionProgress = [NSClassFromString(@"N
SScrollerImp") instancesRespondToSelector:@selector(mouseEnteredScroller)]; |
51 return globalSupportsUIStateTransitionProgress; | 51 return globalSupportsUIStateTransitionProgress; |
52 } | 52 } |
(...skipping 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1286 if (Scrollbar* verticalScrollbar = m_scrollableArea->verticalScrollbar()) | 1286 if (Scrollbar* verticalScrollbar = m_scrollableArea->verticalScrollbar()) |
1287 rectInViewCoordinates = verticalScrollbar->convertToContainingView(scrol
lerThumb); | 1287 rectInViewCoordinates = verticalScrollbar->convertToContainingView(scrol
lerThumb); |
1288 | 1288 |
1289 if (rectInViewCoordinates == m_visibleScrollerThumbRect) | 1289 if (rectInViewCoordinates == m_visibleScrollerThumbRect) |
1290 return; | 1290 return; |
1291 | 1291 |
1292 m_visibleScrollerThumbRect = rectInViewCoordinates; | 1292 m_visibleScrollerThumbRect = rectInViewCoordinates; |
1293 } | 1293 } |
1294 | 1294 |
1295 } // namespace WebCore | 1295 } // namespace WebCore |
OLD | NEW |