| 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 "core/platform/mac/WebCoreSystemInterface.h" | |
| 41 #include <wtf/MainThread.h> | 40 #include <wtf/MainThread.h> |
| 42 #include <wtf/PassOwnPtr.h> | 41 #include <wtf/PassOwnPtr.h> |
| 43 #include <wtf/UnusedParam.h> | 42 #include <wtf/UnusedParam.h> |
| 44 | 43 |
| 45 using namespace WebCore; | 44 using namespace WebCore; |
| 46 using namespace std; | 45 using namespace std; |
| 47 | 46 |
| 48 static bool supportsUIStateTransitionProgress() | 47 static bool supportsUIStateTransitionProgress() |
| 49 { | 48 { |
| 50 // 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 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1285 rectInViewCoordinates = verticalScrollbar->convertToContainingView(scrol
lerThumb); | 1284 rectInViewCoordinates = verticalScrollbar->convertToContainingView(scrol
lerThumb); |
| 1286 | 1285 |
| 1287 if (rectInViewCoordinates == m_visibleScrollerThumbRect) | 1286 if (rectInViewCoordinates == m_visibleScrollerThumbRect) |
| 1288 return; | 1287 return; |
| 1289 | 1288 |
| 1290 m_scrollableArea->setVisibleScrollerThumbRect(rectInViewCoordinates); | 1289 m_scrollableArea->setVisibleScrollerThumbRect(rectInViewCoordinates); |
| 1291 m_visibleScrollerThumbRect = rectInViewCoordinates; | 1290 m_visibleScrollerThumbRect = rectInViewCoordinates; |
| 1292 } | 1291 } |
| 1293 | 1292 |
| 1294 } // namespace WebCore | 1293 } // namespace WebCore |
| OLD | NEW |