Some clients might have a need to keep the page scrolled to the top or bottom, regardless of scrolls that occur via JS/user interaction/page loading. <rdar://problem/14120323>
Created attachment 206167 [details] preliminary changelog+test coming right up
Comment on attachment 206167 [details] preliminary View in context: https://bugs.webkit.org/attachment.cgi?id=206167&action=review > Source/WebKit2/UIProcess/API/C/WKPage.cpp:886 > + switch (pinning) { I know about APICast but it seemed like there weren't private things in there. Maybe I'm wrong?
Attachment 206167 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/WebCore.exp.in', u'Source/WebCore/page/FrameView.cpp', u'Source/WebCore/page/FrameView.h', u'Source/WebCore/page/scrolling/ScrollingCoordinator.h', u'Source/WebCore/page/scrolling/ScrollingTree.cpp', u'Source/WebCore/page/scrolling/ScrollingTree.h', u'Source/WebCore/page/scrolling/mac/ScrollingCoordinatorMac.h', u'Source/WebCore/page/scrolling/mac/ScrollingCoordinatorMac.mm', u'Source/WebCore/page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm', u'Source/WebCore/platform/ScrollTypes.h', u'Source/WebKit2/Shared/WebPageCreationParameters.cpp', u'Source/WebKit2/Shared/WebPageCreationParameters.h', u'Source/WebKit2/UIProcess/API/C/WKPage.cpp', u'Source/WebKit2/UIProcess/API/C/WKPagePrivate.h', u'Source/WebKit2/UIProcess/WebPageProxy.cpp', u'Source/WebKit2/UIProcess/WebPageProxy.h', u'Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp', u'Source/WebKit2/WebProcess/WebPage/WebPage.cpp', u'Source/WebKit2/WebProcess/WebPage/WebPage.h', u'Source/WebKit2/WebProcess/WebPage/WebPage.messages.in']" exit_code: 1 Source/WebCore/page/FrameView.h:438: The parameter name "pinning" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebCore/page/scrolling/mac/ScrollingCoordinatorMac.h:81: The parameter name "pinning" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebCore/page/scrolling/ScrollingTree.h:105: The parameter name "pinning" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebKit2/UIProcess/WebPageProxy.h:777: The parameter name "pinning" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebKit2/WebProcess/WebPage/WebPage.h:665: The parameter name "pinning" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 5 in 20 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 206169 [details] patch
Attachment 206169 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/WebCore.exp.in', u'Source/WebCore/page/FrameView.cpp', u'Source/WebCore/page/FrameView.h', u'Source/WebCore/page/scrolling/ScrollingCoordinator.h', u'Source/WebCore/page/scrolling/ScrollingTree.cpp', u'Source/WebCore/page/scrolling/ScrollingTree.h', u'Source/WebCore/page/scrolling/mac/ScrollingCoordinatorMac.h', u'Source/WebCore/page/scrolling/mac/ScrollingCoordinatorMac.mm', u'Source/WebCore/page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm', u'Source/WebCore/platform/ScrollTypes.h', u'Source/WebKit2/ChangeLog', u'Source/WebKit2/Shared/WebPageCreationParameters.cpp', u'Source/WebKit2/Shared/WebPageCreationParameters.h', u'Source/WebKit2/UIProcess/API/C/WKPage.cpp', u'Source/WebKit2/UIProcess/API/C/WKPagePrivate.h', u'Source/WebKit2/UIProcess/WebPageProxy.cpp', u'Source/WebKit2/UIProcess/WebPageProxy.h', u'Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp', u'Source/WebKit2/WebProcess/WebPage/WebPage.cpp', u'Source/WebKit2/WebProcess/WebPage/WebPage.h', u'Source/WebKit2/WebProcess/WebPage/WebPage.messages.in', u'Tools/ChangeLog', u'Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj', u'Tools/TestWebKitAPI/Tests/WebKit2/ScrollPinningBehaviors.cpp']" exit_code: 1 Source/WebKit2/WebProcess/WebPage/WebPage.h:665: The parameter name "pinning" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 1 in 25 files If any of these errors are false positives, please file a bug against check-webkit-style.
http://trac.webkit.org/changeset/152425
100 crashes on the build bot after this one.
(In reply to comment #7) > 100 crashes on the build bot after this one. Uhhhh, I'll take a look.
(In reply to comment #8) > (In reply to comment #7) > > 100 crashes on the build bot after this one. > > Uhhhh, I'll take a look. Hmm, indeed. In console it looks like it's the revision before, but it's definitely mine. I'll post a patch in a second.
(In reply to comment #9) > (In reply to comment #8) > > (In reply to comment #7) > > > 100 crashes on the build bot after this one. > > > > Uhhhh, I'll take a look. > > Hmm, indeed. In console it looks like it's the revision before, but it's definitely mine. I'll post a patch in a second. Patch at https://bugs.webkit.org/show_bug.cgi?id=118440