Bug 69300 - [Chromium] Remove setShouldPaintCustomScrollbars, which has no callers
Summary: [Chromium] Remove setShouldPaintCustomScrollbars, which has no callers
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Adam Barth
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-03 15:40 PDT by Adam Barth
Modified: 2011-10-07 09:34 PDT (History)
4 users (show)

See Also:


Attachments
Patch (2.72 KB, patch)
2011-10-03 15:41 PDT, Adam Barth
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Barth 2011-10-03 15:40:18 PDT
Remove setShouldPaintCustomScrollbars, which has no callers
Comment 1 Adam Barth 2011-10-03 15:41:04 PDT
Created attachment 109542 [details]
Patch
Comment 2 WebKit Review Bot 2011-10-03 16:19:42 PDT
Comment on attachment 109542 [details]
Patch

Attachment 109542 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/9944040
Comment 3 Adam Barth 2011-10-03 16:20:50 PDT
Looks like this function does have at least one caller:

Source/WebKit/chromium/webkit/glue/webpreferences.cc: In member function 'void WebPreferences::Apply(WebKit::WebView*) const':
Source/WebKit/chromium/webkit/glue/webpreferences.cc:217: error: 'class WebKit::WebSettings' has no member named 'setShouldPaintCustomScrollbars'
Comment 4 Adam Barth 2011-10-03 16:21:41 PDT
Despite appearances, that function is actually located here:
http://src.chromium.org/viewvc/chrome/trunk/src/webkit/glue/webpreferences.cc?view=markup
Comment 5 Adam Barth 2011-10-03 16:27:06 PDT
abarth: andersca: does the setShouldPaintCustomScrollbars now have the behavior of being true or false?
andersca_: abarth|gardener: false
abarth|gardener: that seems problematic because http://src.chromium.org/viewvc/chrome/trunk/src/webkit/glue/webpreferences.cc?view=markup sets it to true
andersca_: abarth|gardener: custom scrollbars really meant "should delegate painting scrollbars to the client"
abarth|gardener:   // Turn this on to cause WebCore to paint the resize corner for us.
abarth|gardener:   settings->setShouldPaintCustomScrollbars(true);
andersca_: abarth|gardener: you should be able to remove that - the resize corner will be painted anyway
abarth|gardener: sounds like the author of that code was confused
andersca_: yup
abarth|gardener: okiedokes
Comment 6 Adam Barth 2011-10-03 16:29:26 PDT
Removing the callers is http://codereview.chromium.org/8122010/
Comment 7 WebKit Review Bot 2011-10-07 09:34:36 PDT
Comment on attachment 109542 [details]
Patch

Clearing flags on attachment: 109542

Committed r96946: <http://trac.webkit.org/changeset/96946>
Comment 8 WebKit Review Bot 2011-10-07 09:34:40 PDT
All reviewed patches have been landed.  Closing bug.