Changeset 91146 in webkit
- Timestamp:
- Jul 15, 2011 10:15:36 PM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/WebCore.exp.in
r91134 r91146 1472 1472 _wkScrollbarPainterPaint 1473 1473 _wkScrollbarPainterSetDelegate 1474 _wkScrollbarPainterSetEnabled 1474 1475 _wkScrollbarPainterSetOverlayState 1475 1476 _wkScrollbarPainterTrackAlpha -
trunk/Source/WebCore/platform/ScrollView.cpp
r91064 r91146 894 894 895 895 if (platformWidget()) { 896 notifyPageThatContentAreaWillPaint(); 896 897 platformRepaintContentRectangle(paintRect, now); 897 898 return; -
trunk/Source/WebCore/platform/Scrollbar.cpp
r85615 r91146 460 460 return; 461 461 m_enabled = e; 462 theme()->updateEnabledState(this); 462 463 invalidate(); 463 464 } -
trunk/Source/WebCore/platform/ScrollbarTheme.h
r84767 r91146 42 42 ScrollbarTheme() { } 43 43 virtual ~ScrollbarTheme() {}; 44 45 virtual void updateEnabledState(Scrollbar*) { }; 44 46 45 47 virtual bool paint(Scrollbar*, GraphicsContext*, const IntRect& /*damageRect*/) { return false; } -
trunk/Source/WebCore/platform/mac/ScrollbarThemeMac.h
r85501 r91146 39 39 ScrollbarThemeMac(); 40 40 virtual ~ScrollbarThemeMac(); 41 42 virtual void updateEnabledState(Scrollbar*); 41 43 42 44 virtual bool paint(Scrollbar*, GraphicsContext* context, const IntRect& damageRect); -
trunk/Source/WebCore/platform/mac/ScrollbarThemeMac.mm
r88364 r91146 161 161 WKScrollbarPainterRef scrollbarPainter = wkMakeScrollbarPainter(scrollbar->controlSize(), isHorizontal); 162 162 scrollbarMap()->add(scrollbar, scrollbarPainter); 163 updateEnabledState(scrollbar); 163 164 #else 164 165 scrollbarMap()->add(scrollbar); … … 175 176 { 176 177 scrollbarMap()->set(scrollbar, newPainter); 178 updateEnabledState(scrollbar); 177 179 } 178 180 … … 445 447 #endif 446 448 449 void ScrollbarThemeMac::updateEnabledState(Scrollbar* scrollbar) 450 { 451 #if USE(WK_SCROLLBAR_PAINTER) 452 wkScrollbarPainterSetEnabled(scrollbarMap()->get(scrollbar).get(), scrollbar->enabled()); 453 #endif 454 } 455 447 456 bool ScrollbarThemeMac::paint(Scrollbar* scrollbar, GraphicsContext* context, const IntRect& damageRect) 448 457 { -
trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.h
r90087 r91146 247 247 extern WKScrollbarPainterRef (*wkMakeScrollbarReplacementPainter)(WKScrollbarPainterRef oldPainter, int newStyle, int controlSize, bool isHorizontal); 248 248 extern void (*wkScrollbarPainterSetDelegate)(WKScrollbarPainterRef, id scrollbarPainterDelegate); 249 extern void (*wkScrollbarPainterSetEnabled)(WKScrollbarPainterRef, bool enabled); 249 250 extern void (*wkScrollbarPainterPaint)(WKScrollbarPainterRef, bool enabled, double value, CGFloat proportion, CGRect frameRect); 250 251 extern void (*wkScrollbarPainterForceFlashScrollers)(WKScrollbarPainterControllerRef); -
trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.mm
r90087 r91146 127 127 WKScrollbarPainterRef (*wkMakeScrollbarReplacementPainter)(WKScrollbarPainterRef oldPainter, int newStyle, int controlSize, bool isHorizontal); 128 128 void (*wkScrollbarPainterSetDelegate)(WKScrollbarPainterRef, id scrollbarPainterDelegate); 129 void (*wkScrollbarPainterSetEnabled)(WKScrollbarPainterRef, bool enabled); 129 130 void (*wkScrollbarPainterPaint)(WKScrollbarPainterRef, bool enabled, double value, CGFloat proportion, CGRect frameRect); 130 131 void (*wkScrollbarPainterForceFlashScrollers)(WKScrollbarPainterControllerRef); -
trunk/Source/WebKit/mac/ChangeLog
r91134 r91146 1 2011-07-15 Tim Horton <timothy_horton@apple.com> 2 3 Overlay scrollbars in overflow areas no longer pulse when revealed 4 https://bugs.webkit.org/show_bug.cgi?id=64606 5 <rdar://problem/9390674> 6 7 Reviewed by Simon Fraser. 8 9 Ensure that the state of the scrollbar implementation is kept in sync 10 with WebCore's internal representation. Previously, we synchronized them 11 at paint time, causing pulsing to be skipped due to the scrollbars being 12 disabled. 13 14 * WebCoreSupport/WebSystemInterface.mm: 15 (InitWebCoreSystemInterface): 16 1 17 2011-07-15 Andy Estes <aestes@apple.com> 2 18 -
trunk/Source/WebKit/mac/WebCoreSupport/WebSystemInterface.mm
r90087 r91146 124 124 INIT(MakeScrollbarPainter); 125 125 INIT(ScrollbarPainterSetDelegate); 126 INIT(ScrollbarPainterSetEnabled); 126 127 INIT(ScrollbarPainterPaint); 127 128 INIT(ScrollbarPainterForceFlashScrollers); -
trunk/Source/WebKit2/ChangeLog
r91137 r91146 1 2011-07-15 Tim Horton <timothy_horton@apple.com> 2 3 Overlay scrollbars in overflow areas no longer pulse when revealed 4 https://bugs.webkit.org/show_bug.cgi?id=64606 5 <rdar://problem/9390674> 6 7 Reviewed by Simon Fraser. 8 9 Ensure that the state of the scrollbar implementation is kept in sync 10 with WebCore's internal representation. Previously, we synchronized them 11 at paint time, causing pulsing to be skipped due to the scrollbars being 12 disabled. 13 14 * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm: 15 (InitWebCoreSystemInterface): 16 1 17 2011-07-15 Simon Fraser <simon.fraser@apple.com> 2 18 -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebSystemInterface.mm
r90087 r91146 114 114 INIT(MakeScrollbarPainter); 115 115 INIT(ScrollbarPainterSetDelegate); 116 INIT(ScrollbarPainterSetEnabled); 116 117 INIT(ScrollbarPainterPaint); 117 118 INIT(ScrollbarPainterForceFlashScrollers);
Note: See TracChangeset
for help on using the changeset viewer.