Bug 21298

Summary: Make updateScrollbars cross-platform
Product: WebKit Reporter: Dave Hyatt <hyatt>
Component: PlatformAssignee: Dave Hyatt <hyatt>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Bug Depends on:    
Bug Blocks: 21083    
Attachments:
Description Flags
Patch
hyatt: review-
Patch #2
none
Patch #3 sam: review+

Description Dave Hyatt 2008-10-01 23:43:26 PDT
Make updateScrollbars cross-platform on ScrollView.
Comment 1 Dave Hyatt 2008-10-01 23:46:17 PDT
Created attachment 24007 [details]
Patch
Comment 2 Dave Hyatt 2008-10-01 23:50:24 PDT
Comment on attachment 24007 [details]
Patch

Never mind.  I need to remove more code.
Comment 3 Dave Hyatt 2008-10-02 00:04:58 PDT
Created attachment 24008 [details]
Patch #2
Comment 4 Dave Hyatt 2008-10-02 00:06:43 PDT
Created attachment 24009 [details]
Patch #3
Comment 5 Sam Weinig 2008-10-02 00:38:05 PDT
Comment on attachment 24009 [details]
Patch #3

+        The ScrollView now implement ScrollbarClient, which means that there was a clash of windowClipRect methods from the
s/implement/implements/

+            }
+        }
+        else {
+            scrollsHorizontally = (hScroll == ScrollbarAuto) ? hasHorizontalScrollbar : (hScroll == ScrollbarAlwaysOn);

The else should be on the same line as the }.

+        if (pageStep < 0) pageStep = clientWidth;
This should be on two lines.

+        if (pageStep < 0) pageStep = clientHeight;
As should this

-// FIXME: ScrollViewPrivate will eventually be completely gone.  It's already gone on Mac.
-#if !PLATFORM(MAC)
+// FIXME: ScrollViewPrivate will eventually be completely gone.
I think this #if was incorrectly removed.

Otherwise, looks nice.  r=me.
Comment 6 Dave Hyatt 2008-10-02 11:24:17 PDT
Fixed in r37198.