Bug 96158

Summary: Need API to suppress scrollbar animations
Product: WebKit Reporter: Beth Dakin <bdakin>
Component: WebKit APIAssignee: Beth Dakin <bdakin>
Status: NEW    
Severity: Normal CC: bdakin, eric, mifenton, tkent, webkit.review.bot
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch sam: review+, buildbot: commit-queue-

Beth Dakin
Reported 2012-09-07 16:52:12 PDT
We need WK2 API to suppress overlay scrollbar animations. <rdar://problem/12210972>
Attachments
Patch (21.09 KB, patch)
2012-09-07 17:08 PDT, Beth Dakin
no flags
Patch (21.08 KB, patch)
2012-09-07 17:16 PDT, Beth Dakin
no flags
Patch (33.77 KB, patch)
2012-09-10 16:00 PDT, Beth Dakin
sam: review+
buildbot: commit-queue-
Beth Dakin
Comment 1 2012-09-07 17:08:44 PDT
WebKit Review Bot
Comment 2 2012-09-07 17:13:10 PDT
Attachment 162913 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/page/FrameView.cpp:2759: One line control clauses should not use braces. [whitespace/braces] [4] Total errors found: 1 in 23 files If any of these errors are false positives, please file a bug against check-webkit-style.
Beth Dakin
Comment 3 2012-09-07 17:16:02 PDT
Darin Adler
Comment 4 2012-09-07 19:04:51 PDT
Comment on attachment 162916 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=162916&action=review > Source/WebCore/page/FrameView.cpp:2747 > + if (Page* page = m_frame->page()) { > + if (page->shouldSuppressScrollbarAnimations()) > + return false; > + } Adding this code to the function makes it no longer “is on active page”, so I think you need to either rename the function or move this additional check elsewhere.
Beth Dakin
Comment 5 2012-09-10 16:00:33 PDT
Created attachment 163239 [details] Patch You're right. I really think that the function should change it's name rather than separating the two concepts. All of the callers of isOnActivePage() use that function to learn whether scrollbar painting and animating should proceed, so the function should just be re-named to reflect that. Here's a patch with a go at a new name.
Build Bot
Comment 6 2012-09-10 17:05:37 PDT
Beth Dakin
Comment 7 2012-09-10 17:37:52 PDT
Thanks Sam! Committed change with http://trac.webkit.org/changeset/128134 I think I got all the build-fixing done in there.
Note You need to log in before you can comment on or make changes to this bug.