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

Side by Side Diff: Source/WebCore/platform/mac/ScrollAnimatorMac.mm

Issue 10633026: Merge 120629 - [chromium/mac] Unbreak smooth scrolling. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 6 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 unified diff | Download patch
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | Tools/ChangeLog » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | Tools/ChangeLog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698