Bug 105632 - [EFL][WK2] Never create WebCore scrollbars for EFL/WK2
Summary: [EFL][WK2] Never create WebCore scrollbars for EFL/WK2
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kenneth Rohde Christiansen
URL:
Keywords:
Depends on: 119484
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-21 05:41 PST by Kenneth Rohde Christiansen
Modified: 2017-03-11 10:48 PST (History)
7 users (show)

See Also:


Attachments
Patch (4.28 KB, patch)
2012-12-21 05:48 PST, Kenneth Rohde Christiansen
no flags Details | Formatted Diff | Diff
Patch (4.70 KB, patch)
2012-12-21 07:08 PST, Kenneth Rohde Christiansen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Rohde Christiansen 2012-12-21 05:41:28 PST
SSIA
Comment 1 Kenneth Rohde Christiansen 2012-12-21 05:48:08 PST
Created attachment 180507 [details]
Patch
Comment 2 Antonio Gomes 2012-12-21 06:57:57 PST
Comment on attachment 180507 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=180507&action=review

> Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:1238
> +    m_frame->coreFrame()->createView(webPage->size(), backgroundColor, /* transparent */ false, IntSize(), currentFixedVisibleContentRect, shouldUseFixedLayout, ScrollbarAlwaysOff, true, ScrollbarAlwaysOff, true);

would be nice to have true /*comment*/ here

> Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:1246
> +    m_frame->coreFrame()->view()->setTransparent(!webPage->drawsBackground());

can not you pass this as one of the parameter of createView?
Comment 3 Kenneth Rohde Christiansen 2012-12-21 07:08:12 PST
Created attachment 180515 [details]
Patch
Comment 4 WebKit Review Bot 2012-12-21 07:56:54 PST
Comment on attachment 180515 [details]
Patch

Clearing flags on attachment: 180515

Committed r138378: <http://trac.webkit.org/changeset/138378>
Comment 5 WebKit Review Bot 2012-12-21 07:56:58 PST
All reviewed patches have been landed.  Closing bug.
Comment 6 Csaba Osztrogonác 2012-12-21 12:19:09 PST
(In reply to comment #4)
> (From update of attachment 180515 [details])
> Clearing flags on attachment: 180515
> 
> Committed r138378: <http://trac.webkit.org/changeset/138378>

It made zillion tests fail on EFL-WK2 and Qt-WK2:
 - http://build.webkit.org/builders/EFL%20Linux%2064-bit%20Release%20WK2/builds/2026
 - http://build.webkit.sed.hu/builders/x86-64%20Linux%20Qt%20Release%20WebKit2%20%28Amazon%20EC2%29/builds/12024

Could you check it, please?
Comment 7 Kenneth Rohde Christiansen 2012-12-21 12:56:59 PST
(In reply to comment #6)
> (In reply to comment #4)
> > (From update of attachment 180515 [details] [details])
> > Clearing flags on attachment: 180515
> > 
> > Committed r138378: <http://trac.webkit.org/changeset/138378>
> 
> It made zillion tests fail on EFL-WK2 and Qt-WK2:
>  - http://build.webkit.org/builders/EFL%20Linux%2064-bit%20Release%20WK2/builds/2026
>  - http://build.webkit.sed.hu/builders/x86-64%20Linux%20Qt%20Release%20WebKit2%20%28Amazon%20EC2%29/builds/12024
> 
> Could you check it, please?

Sure, I will land potential fix.
Comment 8 Kenneth Rohde Christiansen 2012-12-21 13:00:04 PST
Landed potential fix in 138395
Comment 9 Csaba Osztrogonác 2012-12-23 06:23:31 PST
(In reply to comment #8)
> Landed potential fix in 138395
Thanks, it fixed the bug I mentioned.
Comment 10 Allan Sandfeld Jensen 2013-08-05 04:04:02 PDT
This patch broke keyboard scrolling. The scrollbars are required for keyboard scrolling since information about linestep and pagestep is calculated in them. Therefore we should let delegated scrolling have scrollbars but just choose not to render them.
Comment 11 Allan Sandfeld Jensen 2013-08-05 04:05:02 PDT
Reopening since this needs to be solved differently. What was the problem with having ScrollBar objects in the first place?
Comment 12 Antonio Gomes 2013-08-05 05:38:16 PDT
(In reply to comment #10)
> This patch broke keyboard scrolling. The scrollbars are required for keyboard scrolling since information about linestep and pagestep is calculated in them. Therefore we should let delegated scrolling have scrollbars but just choose not to render them.

Patch was inspired on BlackBerry port, when scrollbars are not created either.

Keyboard scrolling used to fine there, as far as I can tell. It is not a path very explored, though..
Comment 13 Antonio Gomes 2013-08-05 05:39:13 PDT
(In reply to comment #12)
> (In reply to comment #10)
> > This patch broke keyboard scrolling. The scrollbars are required for keyboard scrolling since information about linestep and pagestep is calculated in them. Therefore we should let delegated scrolling have scrollbars but just choose not to render them.
> 
> Patch was inspired on BlackBerry port, when scrollbars are not created either.
> 
> Keyboard scrolling used to fine there, as far as I can tell. It is not a path very explored, though..

It's been 8 month since patch landed. Are there tests covering keyboard scrolling that EFL does not run?
Comment 14 Allan Sandfeld Jensen 2013-08-05 06:00:10 PDT
(In reply to comment #13)
> (In reply to comment #12)
> > (In reply to comment #10)
> > > This patch broke keyboard scrolling. The scrollbars are required for keyboard scrolling since information about linestep and pagestep is calculated in them. Therefore we should let delegated scrolling have scrollbars but just choose not to render them.
> > 
> > Patch was inspired on BlackBerry port, when scrollbars are not created either.
> > 
> > Keyboard scrolling used to fine there, as far as I can tell. It is not a path very explored, though..
> 
> It's been 8 month since patch landed. Are there tests covering keyboard scrolling that EFL does not run?

Back when I implemented it I solved wheel-events and keyboard scrolling together. I think only wheel events were tested.

Btw, you can see the problem is ScrollableArea::scroll(), where it exists if no scrollbar is found.

This only happens with delegated scrolling btw. For Qt WK2 we can run in either delegated or non-delated (touch or desktop mode). The desktop mode still works.
Comment 15 Antonio Gomes 2013-08-05 06:25:36 PDT
> Btw, you can see the problem is ScrollableArea::scroll(), where it exists if no scrollbar is found.
> 
> This only happens with delegated scrolling btw. For Qt WK2 we can run in either delegated or non-delated (touch or desktop mode). The desktop mode still works.

That might be a deeper problem to solve: back at the time, I made a set of change decoupling scrolling from scrollbars. Maybe it has regressed.

I remember kenneth testing both wheels and keyboard, but 'll let him to speak up.
Comment 16 Michael Catanzaro 2017-03-11 10:48:01 PST
Closing this bug because the EFL port has been removed from trunk.

If you feel this bug applies to a different upstream WebKit port and was closed in error, please either update the title and reopen the bug, or leave a comment to request this.