Changeset 147860 in webkit
- Timestamp:
- Apr 6, 2013 4:23:17 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r147859 r147860 1 2013-04-06 Benjamin Poulain <bpoulain@apple.com> 2 3 Remove the chromium code from WebCore/platform/mac 4 https://bugs.webkit.org/show_bug.cgi?id=114104 5 6 Reviewed by Sam Weinig. 7 8 * platform/mac/NSScrollerImpDetails.h: 9 (WebCore::isScrollbarOverlayAPIAvailable): 10 * platform/mac/NSScrollerImpDetails.mm: 11 * platform/mac/ScrollAnimatorMac.mm: 12 (-[WebScrollbarPainterDelegate layer]): 13 (WebCore::scrollAnimationEnabledForSystem): 14 * platform/mac/ScrollElasticityController.mm: 15 (WebCore): 16 * platform/mac/ScrollbarThemeMac.h: 17 (ScrollbarThemeMac): 18 * platform/mac/ScrollbarThemeMac.mm: 19 (WebCore::ScrollbarTheme::nativeTheme): 20 (WebCore::ScrollbarThemeMac::paint): 21 (WebCore): 22 * platform/mac/ThemeMac.mm: 23 (WebCore::ThemeMac::ensuredView): 24 * platform/mac/WebCoreNSCellExtras.h: 25 1 26 2013-04-06 Benjamin Poulain <benjamin@webkit.org> 2 27 -
trunk/Source/WebCore/platform/mac/NSScrollerImpDetails.h
r141610 r147860 111 111 namespace WebCore { 112 112 113 #if PLATFORM(CHROMIUM)114 bool isScrollbarOverlayAPIAvailable();115 #else116 113 static inline bool isScrollbarOverlayAPIAvailable() 117 114 { … … 122 119 #endif 123 120 } 124 #endif125 121 126 122 NSScrollerStyle recommendedScrollerStyle(); -
trunk/Source/WebCore/platform/mac/NSScrollerImpDetails.mm
r128963 r147860 32 32 namespace WebCore { 33 33 34 #if PLATFORM(CHROMIUM)35 bool isScrollbarOverlayAPIAvailable()36 {37 static bool apiAvailable;38 static bool shouldInitialize = true;39 if (shouldInitialize) {40 shouldInitialize = false;41 Class scrollerImpClass = NSClassFromString(@"NSScrollerImp");42 Class scrollerImpPairClass = NSClassFromString(@"NSScrollerImpPair");43 apiAvailable = [scrollerImpClass respondsToSelector:@selector(scrollerImpWithStyle:controlSize:horizontal:replacingScrollerImp:)]44 && [scrollerImpPairClass instancesRespondToSelector:@selector(scrollerStyle)];45 }46 return apiAvailable;47 }48 #endif49 50 34 NSScrollerStyle recommendedScrollerStyle() { 51 35 if (Settings::usesOverlayScrollbars()) -
trunk/Source/WebCore/platform/mac/ScrollAnimatorMac.mm
r147039 r147860 433 433 } 434 434 435 #if !PLATFORM(CHROMIUM)436 435 - (CALayer *)layer 437 436 { … … 446 445 return dummyLayer; 447 446 } 448 #endif449 447 450 448 - (NSPoint)mouseLocationInScrollerForScrollerImp:(id)scrollerImp … … 643 641 { 644 642 NSString* scrollAnimationDefaultsKey = 645 #if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1070 || PLATFORM(CHROMIUM)643 #if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1070 646 644 @"AppleScrollAnimationEnabled"; 647 645 #else -
trunk/Source/WebCore/platform/mac/ScrollElasticityController.mm
r147710 r147860 64 64 static const float rubberbandMinimumRequiredDeltaBeforeStretch = 10; 65 65 66 #if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1070 || PLATFORM(CHROMIUM)66 #if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1070 67 67 static const float rubberbandStiffness = 20; 68 68 static const float rubberbandAmplitude = 0.31f; -
trunk/Source/WebCore/platform/mac/ScrollbarThemeMac.h
r144397 r147860 42 42 virtual void updateEnabledState(ScrollbarThemeClient*); 43 43 44 #if !PLATFORM(CHROMIUM)45 44 virtual bool paint(ScrollbarThemeClient*, GraphicsContext*, const IntRect& damageRect); 46 #endif47 45 48 46 virtual int scrollbarThickness(ScrollbarControlSize = RegularScrollbar); … … 82 80 int scrollbarPartToHIPressedState(ScrollbarPart); 83 81 84 #if !PLATFORM(CHROMIUM) &&USE(ACCELERATED_COMPOSITING) && ENABLE(RUBBER_BANDING)82 #if USE(ACCELERATED_COMPOSITING) && ENABLE(RUBBER_BANDING) 85 83 virtual void setUpOverhangAreasLayerContents(GraphicsLayer*, const Color&) OVERRIDE; 86 84 virtual void setUpContentShadowLayer(GraphicsLayer*) OVERRIDE; -
trunk/Source/WebCore/platform/mac/ScrollbarThemeMac.mm
r144397 r147860 114 114 namespace WebCore { 115 115 116 #if !PLATFORM(CHROMIUM)117 116 ScrollbarTheme* ScrollbarTheme::nativeTheme() 118 117 { … … 120 119 return &theme; 121 120 } 122 #endif123 121 124 122 // FIXME: Get these numbers from CoreUI. … … 479 477 } 480 478 481 #if !PLATFORM(CHROMIUM)482 479 static void scrollbarPainterPaint(ScrollbarPainter scrollbarPainter, bool enabled, double value, CGFloat proportion, CGRect frameRect) 483 480 { … … 598 595 return true; 599 596 } 600 #endif 601 602 #if !PLATFORM(CHROMIUM) && USE(ACCELERATED_COMPOSITING) && ENABLE(RUBBER_BANDING) 597 598 #if USE(ACCELERATED_COMPOSITING) && ENABLE(RUBBER_BANDING) 603 599 static RetainPtr<CGColorRef> linenBackgroundColor() 604 600 { -
trunk/Source/WebCore/platform/mac/ThemeMac.mm
r147039 r147860 573 573 NSView *ThemeMac::ensuredView(ScrollView* scrollView) 574 574 { 575 #if !PLATFORM(CHROMIUM)576 575 if (NSView *documentView = scrollView->documentView()) 577 576 return documentView; 578 #endif 579 577 580 578 // Use a fake flipped view. 581 579 static NSView *flippedView = [[WebCoreFlippedView alloc] init]; -
trunk/Source/WebCore/platform/mac/WebCoreNSCellExtras.h
r122400 r147860 26 26 #import <AppKit/AppKit.h> 27 27 28 #define BUTTON_CELL_DRAW_WITH_FRAME_DRAWS_FOCUS_RING (__MAC_OS_X_VERSION_MIN_REQUIRED <= 1070 || PLATFORM(CHROMIUM))28 #define BUTTON_CELL_DRAW_WITH_FRAME_DRAWS_FOCUS_RING (__MAC_OS_X_VERSION_MIN_REQUIRED <= 1070) 29 29 30 30 #if !BUTTON_CELL_DRAW_WITH_FRAME_DRAWS_FOCUS_RING
Note: See TracChangeset
for help on using the changeset viewer.