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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 [m_scrollbarPainterController.get() setDelegate:nil]; | 628 [m_scrollbarPainterController.get() setDelegate:nil]; |
629 [m_horizontalScrollbarPainterDelegate.get() invalidate]; | 629 [m_horizontalScrollbarPainterDelegate.get() invalidate]; |
630 [m_verticalScrollbarPainterDelegate.get() invalidate]; | 630 [m_verticalScrollbarPainterDelegate.get() invalidate]; |
631 [m_scrollAnimationHelperDelegate.get() invalidate]; | 631 [m_scrollAnimationHelperDelegate.get() invalidate]; |
632 END_BLOCK_OBJC_EXCEPTIONS; | 632 END_BLOCK_OBJC_EXCEPTIONS; |
633 } | 633 } |
634 } | 634 } |
635 | 635 |
636 static bool scrollAnimationEnabledForSystem() | 636 static bool scrollAnimationEnabledForSystem() |
637 { | 637 { |
638 #if defined(BUILDING_ON_SNOW_LEOPARD) || defined(BUILDING_ON_LION) | 638 #if defined(BUILDING_ON_SNOW_LEOPARD) || defined(BUILDING_ON_LION) || PLATFORM(C
HROMIUM) |
639 return [[NSUserDefaults standardUserDefaults] boolForKey:@"AppleScrollAnimat
ionEnabled"]; | 639 return [[NSUserDefaults standardUserDefaults] boolForKey:@"AppleScrollAnimat
ionEnabled"]; |
640 #else | 640 #else |
641 return [[NSUserDefaults standardUserDefaults] boolForKey:@"NSScrollAnimation
Enabled"]; | 641 return [[NSUserDefaults standardUserDefaults] boolForKey:@"NSScrollAnimation
Enabled"]; |
642 #endif | 642 #endif |
643 } | 643 } |
644 | 644 |
645 bool ScrollAnimatorMac::scroll(ScrollbarOrientation orientation, ScrollGranulari
ty granularity, float step, float multiplier) | 645 bool ScrollAnimatorMac::scroll(ScrollbarOrientation orientation, ScrollGranulari
ty granularity, float step, float multiplier) |
646 { | 646 { |
647 m_haveScrolledSincePageLoad = true; | 647 m_haveScrolledSincePageLoad = true; |
648 | 648 |
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1253 if (rectInViewCoordinates == m_visibleScrollerThumbRect) | 1253 if (rectInViewCoordinates == m_visibleScrollerThumbRect) |
1254 return; | 1254 return; |
1255 | 1255 |
1256 m_scrollableArea->setVisibleScrollerThumbRect(rectInViewCoordinates); | 1256 m_scrollableArea->setVisibleScrollerThumbRect(rectInViewCoordinates); |
1257 m_visibleScrollerThumbRect = rectInViewCoordinates; | 1257 m_visibleScrollerThumbRect = rectInViewCoordinates; |
1258 } | 1258 } |
1259 | 1259 |
1260 } // namespace WebCore | 1260 } // namespace WebCore |
1261 | 1261 |
1262 #endif // ENABLE(SMOOTH_SCROLLING) | 1262 #endif // ENABLE(SMOOTH_SCROLLING) |
OLD | NEW |