Changeset 89016 in webkit


Ignore:
Timestamp:
Jun 16, 2011 1:31:21 AM (13 years ago)
Author:
vitalyr@chromium.org
Message:

2011-06-16 Sheriff Bot <webkit.review.bot@gmail.com>

Unreviewed, rolling out r89011.
http://trac.webkit.org/changeset/89011
https://bugs.webkit.org/show_bug.cgi?id=62789

Broke mac build (Requested by vitalyr_ on #webkit).

  • platform/chromium/ScrollAnimatorChromiumMac.h:
  • platform/chromium/ScrollAnimatorChromiumMac.mm: (-[ScrollAnimationHelperDelegate _immediateScrollToPoint:]): (-[ScrollbarPainterControllerDelegate scrollerImpPair:updateScrollerStyleForNewRecommendedScrollerStyle:]): (WebCore::ScrollAnimatorChromiumMac::ScrollAnimatorChromiumMac): (WebCore::ScrollAnimatorChromiumMac::scroll): (WebCore::ScrollAnimatorChromiumMac::handleWheelEvent): (WebCore::ScrollAnimatorChromiumMac::smoothScrollWithEvent): (WebCore::ScrollAnimatorChromiumMac::beginScrollGesture): (WebCore::ScrollAnimatorChromiumMac::snapRubberBand): (WebCore::ScrollAnimatorChromiumMac::snapRubberBandTimerFired):
  • platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.h:
  • platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm:
Location:
trunk/Source/WebCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r89011 r89016  
     12011-06-16  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r89011.
     4        http://trac.webkit.org/changeset/89011
     5        https://bugs.webkit.org/show_bug.cgi?id=62789
     6
     7        Broke mac build (Requested by vitalyr_ on #webkit).
     8
     9        * platform/chromium/ScrollAnimatorChromiumMac.h:
     10        * platform/chromium/ScrollAnimatorChromiumMac.mm:
     11        (-[ScrollAnimationHelperDelegate _immediateScrollToPoint:]):
     12        (-[ScrollbarPainterControllerDelegate scrollerImpPair:updateScrollerStyleForNewRecommendedScrollerStyle:]):
     13        (WebCore::ScrollAnimatorChromiumMac::ScrollAnimatorChromiumMac):
     14        (WebCore::ScrollAnimatorChromiumMac::scroll):
     15        (WebCore::ScrollAnimatorChromiumMac::handleWheelEvent):
     16        (WebCore::ScrollAnimatorChromiumMac::smoothScrollWithEvent):
     17        (WebCore::ScrollAnimatorChromiumMac::beginScrollGesture):
     18        (WebCore::ScrollAnimatorChromiumMac::snapRubberBand):
     19        (WebCore::ScrollAnimatorChromiumMac::snapRubberBandTimerFired):
     20        * platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.h:
     21        * platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm:
     22
    1232011-06-16  Sailesh Agrawal  <sail@chromium.org>
    224
  • trunk/Source/WebCore/platform/chromium/ScrollAnimatorChromiumMac.h

    r89011 r89016  
    7272    void immediateScrollByDeltaY(float deltaY);
    7373
    74     void immediateScrollToPointForScrollAnimation(const FloatPoint& newPosition);
    75 
    7674    void setIsDrawingIntoLayer(bool b) { m_drawingIntoLayer = b; }
    7775    bool isDrawingIntoLayer() const { return m_drawingIntoLayer; }
     
    7977    bool haveScrolledSincePageLoad() const { return m_haveScrolledSincePageLoad; }
    8078
    81     virtual void setIsActive(bool);
    82 
    8379#if USE(WK_SCROLLBAR_PAINTER)
    84     void updateScrollerStyle();
    85 
    8680    bool scrollbarPaintTimerIsActive() const;
    8781    void startScrollbarPaintTimer();
     
    122116    virtual void willRemoveHorizontalScrollbar(Scrollbar*);
    123117
    124     void setNeedsScrollerStyleUpdate(bool needsUpdate) { m_needsScrollerStyleUpdate = needsUpdate; }
    125     bool needsScrollerStyleUpdate() const { return m_needsScrollerStyleUpdate; }
    126 
    127118    float adjustScrollXPositionIfNecessary(float) const;
    128119    float adjustScrollYPositionIfNecessary(float) const;
     
    142133    bool m_momentumScrollInProgress;
    143134    bool m_ignoreMomentumScrolls;
    144 
    145     bool m_scrollerInitiallyPinnedOnLeft;
    146     bool m_scrollerInitiallyPinnedOnRight;
    147     int m_cumulativeHorizontalScroll;
    148     bool m_didCumulativeHorizontalScrollEverSwitchToOppositeDirectionOfPin;
    149 
    150     CFTimeInterval m_lastMomentumScrollTimestamp;
     135   
     136    CFTimeInterval m_lastMomemtumScrollTimestamp;
    151137    FloatSize m_overflowScrollDelta;
    152138    FloatSize m_stretchScrollForce;
     
    162148    bool m_drawingIntoLayer;
    163149    bool m_haveScrolledSincePageLoad;
    164     bool m_needsScrollerStyleUpdate;
    165150    IntRect m_visibleScrollerThumbRect;
    166151};
  • trunk/Source/WebCore/platform/chromium/ScrollAnimatorChromiumMac.mm

    r89011 r89016  
    5757- (BOOL)_isAnimating;
    5858- (NSPoint)targetOrigin;
    59 - (CGFloat)_progress;
    6059@end
    6160
     
    107106    if (!_animator)
    108107        return;
    109     _animator->immediateScrollToPointForScrollAnimation(newPosition);
     108    _animator->immediateScrollToPoint(newPosition);
    110109}
    111110
     
    244243        return;
    245244
    246     wkSetScrollbarPainterControllerStyle((WKScrollbarPainterControllerRef)scrollerImpPair, newRecommendedScrollerStyle);
    247     _animator->updateScrollerStyle();
     245    WKScrollbarPainterControllerRef painterController = (WKScrollbarPainterControllerRef)scrollerImpPair;
     246    WebCore::ScrollbarThemeChromiumMac* macTheme = (WebCore::ScrollbarThemeChromiumMac*)WebCore::ScrollbarTheme::nativeTheme();
     247
     248    WKScrollbarPainterRef oldVerticalPainter = wkVerticalScrollbarPainterForController(painterController);
     249    if (oldVerticalPainter) {
     250        WebCore::Scrollbar* verticalScrollbar = _animator->scrollableArea()->verticalScrollbar();
     251        WKScrollbarPainterRef newVerticalPainter = wkMakeScrollbarReplacementPainter(oldVerticalPainter,
     252                                                                                     newRecommendedScrollerStyle,
     253                                                                                     verticalScrollbar->controlSize(),
     254                                                                                     false);
     255        macTheme->setNewPainterForScrollbar(verticalScrollbar, newVerticalPainter);
     256        wkSetPainterForPainterController(painterController, newVerticalPainter, false);
     257
     258        // The different scrollbar styles have different thicknesses, so we must re-set the
     259        // frameRect to the new thickness, and the re-layout below will ensure the position
     260        // and length are properly updated.
     261        int thickness = macTheme->scrollbarThickness(verticalScrollbar->controlSize());
     262        verticalScrollbar->setFrameRect(WebCore::IntRect(0, 0, thickness, thickness));
     263    }
     264
     265    WKScrollbarPainterRef oldHorizontalPainter = wkHorizontalScrollbarPainterForController(painterController);
     266    if (oldHorizontalPainter) {
     267        WebCore::Scrollbar* horizontalScrollbar = _animator->scrollableArea()->horizontalScrollbar();
     268        WKScrollbarPainterRef newHorizontalPainter = wkMakeScrollbarReplacementPainter(oldHorizontalPainter,
     269                                                                                       newRecommendedScrollerStyle,
     270                                                                                       horizontalScrollbar->controlSize(),
     271                                                                                       true);
     272        macTheme->setNewPainterForScrollbar(horizontalScrollbar, newHorizontalPainter);
     273        wkSetPainterForPainterController(painterController, newHorizontalPainter, true);
     274
     275        // The different scrollbar styles have different thicknesses, so we must re-set the
     276        // frameRect to the new thickness, and the re-layout below will ensure the position
     277        // and length are properly updated.
     278        int thickness = macTheme->scrollbarThickness(horizontalScrollbar->controlSize());
     279        horizontalScrollbar->setFrameRect(WebCore::IntRect(0, 0, thickness, thickness));
     280    }
     281
     282    wkSetScrollbarPainterControllerStyle(painterController, newRecommendedScrollerStyle);
     283
     284    // The different scrollbar styles affect layout, so we must re-layout everything.
     285    _animator->scrollableArea()->scrollbarStyleChanged();
    248286}
    249287
     
    469507    , m_momentumScrollInProgress(false)
    470508    , m_ignoreMomentumScrolls(false)
    471     , m_lastMomentumScrollTimestamp(0)
     509    , m_lastMomemtumScrollTimestamp(0)
    472510    , m_startTime(0)
    473511    , m_snapRubberBandTimer(this, &ScrollAnimatorChromiumMac::snapRubberBandTimerFired)
     
    475513    , m_drawingIntoLayer(false)
    476514    , m_haveScrolledSincePageLoad(false)
    477     , m_needsScrollerStyleUpdate(false)
    478515{
    479516    m_scrollAnimationHelperDelegate.adoptNS([[ScrollAnimationHelperDelegate alloc] initWithScrollAnimator:this]);
     
    520557        NSPoint targetOrigin = [m_scrollAnimationHelper.get() targetOrigin];
    521558        newPoint = orientation == HorizontalScrollbar ? NSMakePoint(newPos, targetOrigin.y) : NSMakePoint(targetOrigin.x, newPos);
    522     } else {
     559    } else
    523560        newPoint = orientation == HorizontalScrollbar ? NSMakePoint(newPos, m_currentPosY) : NSMakePoint(m_currentPosX, newPos);
    524         m_scrollableArea->didStartAnimatedScroll();
    525     }
     561
    526562    [m_scrollAnimationHelper.get() scrollToPoint:newPoint];
    527563    return true;
     
    593629    m_currentPosY = newPosY;
    594630    notityPositionChanged();
    595 }
    596 
    597 void ScrollAnimatorChromiumMac::immediateScrollToPointForScrollAnimation(const FloatPoint& newPosition)
    598 {
    599     ASSERT(m_scrollAnimationHelper);
    600     CGFloat progress = [m_scrollAnimationHelper.get() _progress];
    601    
    602     immediateScrollToPoint(newPosition);
    603 
    604     if (progress >= 1.0)
    605         m_scrollableArea->didCompleteAnimatedScroll();
    606631}
    607632
     
    768793    }
    769794    return multiplier;
    770 }
    771 
    772 static inline bool isScrollingLeftAndShouldNotRubberBand(PlatformWheelEvent& wheelEvent, ScrollableArea* scrollableArea)
    773 {
    774     return wheelEvent.deltaX() > 0 && !scrollableArea->shouldRubberBandInDirection(ScrollLeft);
    775 }
    776 
    777 static inline bool isScrollingRightAndShouldNotRubberBand(PlatformWheelEvent& wheelEvent, ScrollableArea* scrollableArea)
    778 {
    779     return wheelEvent.deltaX() < 0 && !scrollableArea->shouldRubberBandInDirection(ScrollRight);
    780795}
    781796
     
    803818            return;
    804819        }
    805        
    806         if (m_scrollableArea->horizontalScrollbar()) {
    807             // If there is a scrollbar, we aggregate the wheel events to get an
    808             // overall trend of the scroll. If the direction of the scroll is ever
    809             // in the opposite direction of the pin location, then we switch the
    810             // boolean, and rubber band. That is, if we were pinned to the left,
    811             // and we ended up scrolling to the right, we rubber band.
    812             m_cumulativeHorizontalScroll += wheelEvent.deltaX();
    813             if (m_scrollerInitiallyPinnedOnLeft && m_cumulativeHorizontalScroll < 0)
    814                 m_didCumulativeHorizontalScrollEverSwitchToOppositeDirectionOfPin = true;
    815             if (m_scrollerInitiallyPinnedOnRight && m_cumulativeHorizontalScroll > 0)
    816                 m_didCumulativeHorizontalScrollEverSwitchToOppositeDirectionOfPin = true;
    817         }
    818 
    819         // After a gesture begins, we go through:
    820         // 1+ PlatformWheelEventPhaseNone
    821         // 0+ PlatformWheelEventPhaseChanged
    822         // 1 PlatformWheelEventPhaseEnded if there was at least one changed event
    823         if (wheelEvent.momentumPhase() == PlatformWheelEventPhaseNone && !m_didCumulativeHorizontalScrollEverSwitchToOppositeDirectionOfPin) {
    824             if ((isScrollingLeftAndShouldNotRubberBand(wheelEvent, m_scrollableArea) &&
    825                 m_scrollerInitiallyPinnedOnLeft &&
    826                 m_scrollableArea->isHorizontalScrollerPinnedToMinimumPosition()) ||
    827                 (isScrollingRightAndShouldNotRubberBand(wheelEvent, m_scrollableArea) &&
    828                 m_scrollerInitiallyPinnedOnRight &&
    829                 m_scrollableArea->isHorizontalScrollerPinnedToMaximumPosition())) {
    830                 ScrollAnimator::handleWheelEvent(wheelEvent);
    831                 return;
    832             }
    833         }
    834     }
    835 
    836     bool isMomentumScrollEvent = (wheelEvent.momentumPhase() != PlatformWheelEventPhaseNone);
    837     if (m_ignoreMomentumScrolls && (isMomentumScrollEvent || m_snapRubberBandTimer.isActive())) {
    838         if (wheelEvent.momentumPhase() == PlatformWheelEventPhaseEnded) {
     820    }
     821
     822    wheelEvent.accept();
     823
     824    bool isMometumScrollEvent = (wheelEvent.momentumPhase() != PlatformWheelEventPhaseNone);
     825    if (m_ignoreMomentumScrolls && (isMometumScrollEvent || m_snapRubberBandTimer.isActive())) {
     826        if (wheelEvent.momentumPhase() == PlatformWheelEventPhaseEnded)
    839827            m_ignoreMomentumScrolls = false;
    840             wheelEvent.accept();
    841         }
    842         return;
    843     }
    844 
    845     wheelEvent.accept();
     828        return;
     829    }
     830
    846831    smoothScrollWithEvent(wheelEvent);
    847832}
     
    927912    m_overflowScrollDelta = FloatSize();
    928913
    929     float eventCoalescedDeltaX = -wheelEvent.deltaX();
    930     float eventCoalescedDeltaY = -wheelEvent.deltaY();
    931 
    932     deltaX += eventCoalescedDeltaX;
    933     deltaY += eventCoalescedDeltaY;
     914    float eventCoallescedDeltaX = -wheelEvent.deltaX();
     915    float eventCoallescedDeltaY = -wheelEvent.deltaY();
     916
     917    deltaX += eventCoallescedDeltaX;
     918    deltaY += eventCoallescedDeltaY;
    934919
    935920    // Slightly prefer scrolling vertically by applying the = case to deltaY
     
    954939        m_momentumScrollInProgress = true;
    955940
    956     CFTimeInterval timeDelta = wheelEvent.timestamp() - m_lastMomentumScrollTimestamp;
     941    CFTimeInterval timeDelta = wheelEvent.timestamp() - m_lastMomemtumScrollTimestamp;
    957942    if (m_inScrollGesture || m_momentumScrollInProgress) {
    958         if (m_lastMomentumScrollTimestamp && timeDelta > 0 && timeDelta < scrollVelocityZeroingTimeout) {
    959             m_momentumVelocity.setWidth(eventCoalescedDeltaX / (float)timeDelta);
    960             m_momentumVelocity.setHeight(eventCoalescedDeltaY / (float)timeDelta);
    961             m_lastMomentumScrollTimestamp = wheelEvent.timestamp();
     943        if (m_lastMomemtumScrollTimestamp && timeDelta > 0 && timeDelta < scrollVelocityZeroingTimeout) {
     944            m_momentumVelocity.setWidth(eventCoallescedDeltaX / (float)timeDelta);
     945            m_momentumVelocity.setHeight(eventCoallescedDeltaY / (float)timeDelta);
     946            m_lastMomemtumScrollTimestamp = wheelEvent.timestamp();
    962947        } else {
    963             m_lastMomentumScrollTimestamp = wheelEvent.timestamp();
     948            m_lastMomemtumScrollTimestamp = wheelEvent.timestamp();
    964949            m_momentumVelocity = FloatSize();
    965950        }
     
    10151000            if (!allowsHorizontalStretching()) {
    10161001                deltaX = 0;
    1017                 eventCoalescedDeltaX = 0;
     1002                eventCoallescedDeltaX = 0;
    10181003            } else if ((deltaX != 0) && !isHorizontallyStretched && !pinnedInDirection(deltaX, 0)) {
    10191004                deltaX *= scrollWheelMultiplier();
     
    10281013            if (!allowsVerticalStretching()) {
    10291014                deltaY = 0;
    1030                 eventCoalescedDeltaY = 0;
     1015                eventCoallescedDeltaY = 0;
    10311016            } else if ((deltaY != 0) && !isVerticallyStretched && !pinnedInDirection(0, deltaY)) {
    10321017                deltaY *= scrollWheelMultiplier();
     
    10421027       
    10431028            if (m_momentumScrollInProgress) {
    1044                 if ((pinnedInDirection(eventCoalescedDeltaX, eventCoalescedDeltaY) || (fabsf(eventCoalescedDeltaX) + fabsf(eventCoalescedDeltaY) <= 0)) && m_lastMomentumScrollTimestamp) {
     1029                if ((pinnedInDirection(eventCoallescedDeltaX, eventCoallescedDeltaY) || (fabsf(eventCoallescedDeltaX) + fabsf(eventCoallescedDeltaY) <= 0)) && m_lastMomemtumScrollTimestamp) {
    10451030                    m_ignoreMomentumScrolls = true;
    10461031                    m_momentumScrollInProgress = false;
     
    10671052        m_momentumScrollInProgress = false;
    10681053        m_ignoreMomentumScrolls = false;
    1069         m_lastMomentumScrollTimestamp = 0;
     1054        m_lastMomemtumScrollTimestamp = 0;
    10701055    }
    10711056}
     
    10791064    m_momentumScrollInProgress = false;
    10801065    m_ignoreMomentumScrolls = false;
    1081     m_lastMomentumScrollTimestamp = 0;
     1066    m_lastMomemtumScrollTimestamp = 0;
    10821067    m_momentumVelocity = FloatSize();
    1083     m_scrollerInitiallyPinnedOnLeft = m_scrollableArea->isHorizontalScrollerPinnedToMinimumPosition();
    1084     m_scrollerInitiallyPinnedOnRight = m_scrollableArea->isHorizontalScrollerPinnedToMaximumPosition();
    1085     m_cumulativeHorizontalScroll = 0;
    1086     m_didCumulativeHorizontalScrollEverSwitchToOppositeDirectionOfPin = false;
    1087    
     1068
    10881069    IntSize stretchAmount = m_scrollableArea->overhangAmount();
    10891070    m_stretchScrollForce.setWidth(reboundDeltaForElasticDelta(stretchAmount.width()));
     
    11051086void ScrollAnimatorChromiumMac::snapRubberBand()
    11061087{
    1107     CFTimeInterval timeDelta = [[NSProcessInfo processInfo] systemUptime] - m_lastMomentumScrollTimestamp;
    1108     if (m_lastMomentumScrollTimestamp && timeDelta >= scrollVelocityZeroingTimeout)
     1088    CFTimeInterval timeDelta = [[NSProcessInfo processInfo] systemUptime] - m_lastMomemtumScrollTimestamp;
     1089    if (m_lastMomemtumScrollTimestamp && timeDelta >= scrollVelocityZeroingTimeout)
    11091090        m_momentumVelocity = FloatSize();
    11101091
     
    11531134                return;
    11541135            }
    1155 
    1156             m_scrollableArea->didStartRubberBand(roundedIntSize(m_startStretch));
    11571136
    11581137            m_origOrigin = (m_scrollableArea->visibleContentRect().location() + m_scrollableArea->scrollOrigin()) - m_startStretch;
     
    12081187#endif
    12091188
    1210 void ScrollAnimatorChromiumMac::setIsActive(bool active)
    1211 {
    1212     ScrollAnimator::setIsActive(active);
    1213 
    1214     if (isScrollbarOverlayAPIAvailable()) {
    1215         if (needsScrollerStyleUpdate())
    1216             updateScrollerStyle();
    1217     }
    1218 }
    1219 
    12201189#if USE(WK_SCROLLBAR_PAINTER)
    1221 void ScrollAnimatorChromiumMac::updateScrollerStyle()
    1222 {
    1223     if (!isActive()) {
    1224         setNeedsScrollerStyleUpdate(true);
    1225         return;
    1226     }
    1227 
    1228     ScrollbarThemeChromiumMac* macTheme = (ScrollbarThemeChromiumMac*)ScrollbarTheme::nativeTheme();
    1229     int newStyle = wkScrollbarPainterControllerStyle(m_scrollbarPainterController.get());
    1230 
    1231     if (Scrollbar* verticalScrollbar = scrollableArea()->verticalScrollbar()) {
    1232         verticalScrollbar->invalidate();
    1233 
    1234         WKScrollbarPainterRef oldVerticalPainter = wkVerticalScrollbarPainterForController(m_scrollbarPainterController.get());
    1235         WKScrollbarPainterRef newVerticalPainter = wkMakeScrollbarReplacementPainter(oldVerticalPainter,
    1236                                                                                      newStyle,
    1237                                                                                      verticalScrollbar->controlSize(),
    1238                                                                                      false);
    1239         macTheme->setNewPainterForScrollbar(verticalScrollbar, newVerticalPainter);
    1240         wkSetPainterForPainterController(m_scrollbarPainterController.get(), newVerticalPainter, false);
    1241 
    1242         // The different scrollbar styles have different thicknesses, so we must re-set the
    1243         // frameRect to the new thickness, and the re-layout below will ensure the position
    1244         // and length are properly updated.
    1245         int thickness = macTheme->scrollbarThickness(verticalScrollbar->controlSize());
    1246         verticalScrollbar->setFrameRect(IntRect(0, 0, thickness, thickness));
    1247     }
    1248 
    1249     if (Scrollbar* horizontalScrollbar = scrollableArea()->horizontalScrollbar()) {
    1250         horizontalScrollbar->invalidate();
    1251 
    1252         WKScrollbarPainterRef oldHorizontalPainter = wkHorizontalScrollbarPainterForController(m_scrollbarPainterController.get());
    1253         WKScrollbarPainterRef newHorizontalPainter = wkMakeScrollbarReplacementPainter(oldHorizontalPainter,
    1254                                                                                        newStyle,
    1255                                                                                        horizontalScrollbar->controlSize(),
    1256                                                                                        true);
    1257         macTheme->setNewPainterForScrollbar(horizontalScrollbar, newHorizontalPainter);
    1258         wkSetPainterForPainterController(m_scrollbarPainterController.get(), newHorizontalPainter, true);
    1259 
    1260         // The different scrollbar styles have different thicknesses, so we must re-set the
    1261         // frameRect to the new thickness, and the re-layout below will ensure the position
    1262         // and length are properly updated.
    1263         int thickness = macTheme->scrollbarThickness(horizontalScrollbar->controlSize());
    1264         horizontalScrollbar->setFrameRect(IntRect(0, 0, thickness, thickness));
    1265     }
    1266 
    1267     // If needsScrollerStyleUpdate() is true, then the page is restoring from the page cache, and
    1268     // a relayout will happen on its own. Otherwise, we must initiate a re-layout ourselves.
    1269     if (!needsScrollerStyleUpdate())
    1270         scrollableArea()->scrollbarStyleChanged();
    1271 
    1272     setNeedsScrollerStyleUpdate(false);
    1273 }
    1274 
    12751190void ScrollAnimatorChromiumMac::startScrollbarPaintTimer()
    12761191{
  • trunk/Source/WebCore/platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.h

    r89011 r89016  
    9696WKScrollbarPainterRef wkVerticalScrollbarPainterForController(WKScrollbarPainterControllerRef);
    9797WKScrollbarPainterRef wkHorizontalScrollbarPainterForController(WKScrollbarPainterControllerRef);
    98 NSScrollerStyle wkScrollbarPainterControllerStyle(WKScrollbarPainterControllerRef);
    9998
    10099#endif // USE(WK_SCROLLBAR_PAINTER)
  • trunk/Source/WebCore/platform/chromium/ScrollbarOverlayUtilitiesChromiumMac.mm

    r89011 r89016  
    214214}
    215215
    216 NSScrollerStyle wkScrollbarPainterControllerStyle(WKScrollbarPainterControllerRef controller)
    217 {
    218     return [controller scrollerStyle];
    219 }
    220 
    221216WKScrollbarPainterRef wkMakeScrollbarReplacementPainter(WKScrollbarPainterRef oldPainter, int newStyle, int controlSize, bool isHorizontal)
    222217{
Note: See TracChangeset for help on using the changeset viewer.