Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1472)

Unified Diff: third_party/WebKit/Source/platform/scroll/Scrollbar.cpp

Issue 1849343003: mac: Remove IsOSSnowLeopard(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/Scrollbar.h ('k') | third_party/apple_apsl/CFBase.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/scroll/Scrollbar.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp b/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp
index 25516fd1809127c4504a402c2cc043782528a81b..eb2e4846a0e7a768aef7ce276443f7e79efc6912 100644
--- a/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp
+++ b/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp
@@ -31,11 +31,6 @@
#include "platform/PlatformMouseEvent.h"
#include "platform/geometry/FloatRect.h"
#include "platform/graphics/paint/CullRect.h"
-// See windowActiveChangedForSnowLeopardOnly() below.
-// TODO(ellyjones): remove this when Snow Leopard support is gone.
-#if OS(MACOSX)
-#include "platform/mac/VersionUtilMac.h"
-#endif
#include "platform/scroll/ScrollAnimatorBase.h"
#include "platform/scroll/ScrollableArea.h"
#include "platform/scroll/ScrollbarTheme.h"
@@ -535,21 +530,6 @@ bool Scrollbar::shouldParticipateInHitTesting()
return m_scrollableArea->scrollAnimator().shouldScrollbarParticipateInHitTesting(*this);
}
-// Don't use this method. It will be removed later.
-// TODO(ellyjones): remove this method after Snow Leopard support drops.
-void Scrollbar::windowActiveChangedForSnowLeopardOnly()
-{
-#if OS(MACOSX)
- // On Snow Leopard, scrollbars need to be invalidated when the window
- // activity changes so that they take on the "inactive" scrollbar
- // appearance. Later OS X releases do not have such an appearance.
- if (m_theme.invalidateOnWindowActiveChange()) {
- ASSERT(IsOSSnowLeopard());
- invalidate();
- }
-#endif
-}
-
bool Scrollbar::isWindowActive() const
{
return m_scrollableArea && m_scrollableArea->isActive();
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/Scrollbar.h ('k') | third_party/apple_apsl/CFBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698