Bug 85375 - [EFL] Fix scroll issue in single backing store for custom scrollbars
Summary: [EFL] Fix scroll issue in single backing store for custom scrollbars
Status: RESOLVED DUPLICATE of bug 77325
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-02 07:59 PDT by Mariusz Grzegorczyk
Modified: 2012-12-17 02:59 PST (History)
8 users (show)

See Also:


Attachments
Screenshot of EWebLauncher with broken layout(http://support.google.com/bin/static.py?hl=en&page=top_products.cs&rd=1) (65.69 KB, image/png)
2012-05-02 07:59 PDT, Mariusz Grzegorczyk
no flags Details
Fix scroll issue in single backing store when ::-webkit-scrollbar css style is used. (7.16 KB, patch)
2012-05-02 08:09 PDT, Mariusz Grzegorczyk
no flags Details | Formatted Diff | Diff
Fix scroll issue in single backing store when ::-webkit-scrollbar css style is used. (7.84 KB, patch)
2012-06-04 07:10 PDT, Mariusz Grzegorczyk
no flags Details | Formatted Diff | Diff
Fix scroll issue in single backing store when ::-webkit-scrollbar css style is used. (7.86 KB, patch)
2012-06-05 05:02 PDT, Mariusz Grzegorczyk
gyuyoung.kim: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mariusz Grzegorczyk 2012-05-02 07:59:11 PDT
Created attachment 139815 [details]
Screenshot of EWebLauncher with broken layout(http://support.google.com/bin/static.py?hl=en&page=top_products.cs&rd=1)

Layout is broken after scrolling on EWebLauncher when ::-webkit-scrollbar css style is used with single backing store.
Comment 1 Mariusz Grzegorczyk 2012-05-02 08:09:53 PDT
Created attachment 139816 [details]
Fix scroll issue in single backing store when ::-webkit-scrollbar css style is used.
Comment 2 Ryuan Choi 2012-05-02 16:07:37 PDT

*** This bug has been marked as a duplicate of bug 77325 ***
Comment 3 Eric Seidel (no email) 2012-05-21 15:19:36 PDT
Comment on attachment 139816 [details]
Fix scroll issue in single backing store when ::-webkit-scrollbar css style is used.

Cleared review? from attachment 139816 [details] so that this bug does not appear in http://webkit.org/pending-review.  If you would like this patch reviewed, please attach it to a new bug (or re-open this bug before marking it for review again).
Comment 4 Ryuan Choi 2012-05-29 03:49:26 PDT
I checked and found remaining issue although Bug 77325 applied.
After resized and scrolled, some afterimage is remained on scrollbar area.
So, I think that this is still valid.

Sorry about my confusion.
Comment 5 Chris Dumez 2012-05-30 10:30:02 PDT
Comment on attachment 139816 [details]
Fix scroll issue in single backing store when ::-webkit-scrollbar css style is used.

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

> Source/WebKit/efl/ewk/ewk_private.h:245
> +bool ewk_frame_scrollbars_size_get(const Evas_Object* ewkFrame, int* width, int* height);

This needs to be moved to ewk_frame_private.h now.

> Source/WebKit/efl/ewk/ewk_view_single.cpp:403
> +    if (!smartData)

This should come earlier since you've used smartData already twice before this check.
Comment 6 Mariusz Grzegorczyk 2012-06-04 07:10:25 PDT
Created attachment 145578 [details]
Fix scroll issue in single backing store when ::-webkit-scrollbar css style is used.

Rebased.
Comment 7 Mariusz Grzegorczyk 2012-06-04 07:11:08 PDT
(In reply to comment #5)
> (From update of attachment 139816 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=139816&action=review
> 
> > Source/WebKit/efl/ewk/ewk_private.h:245
> > +bool ewk_frame_scrollbars_size_get(const Evas_Object* ewkFrame, int* width, int* height);
> 
> This needs to be moved to ewk_frame_private.h now.

Done.


> 
> > Source/WebKit/efl/ewk/ewk_view_single.cpp:403
> > +    if (!smartData)
> 
> This should come earlier since you've used smartData already twice before this check.

Done.
Comment 8 Gyuyoung Kim 2012-06-04 17:51:20 PDT
Comment on attachment 145578 [details]
Fix scroll issue in single backing store when ::-webkit-scrollbar css style is used.

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

> Source/WebKit/efl/ewk/ewk_frame.cpp:1894
> + * @param o frame object to get the size of scrollbars

o -> ewkFrame.

> Source/WebKit/efl/ewk/ewk_frame.cpp:1895
> + * @param w the pointer to store the width of vertical scrollbar, may be @c 0

w -> width.

> Source/WebKit/efl/ewk/ewk_frame.cpp:1896
> + * @param h the pointer to store the height of horizontal scrollbar, may be @c 0

h -> height.
Comment 9 Mariusz Grzegorczyk 2012-06-05 05:02:06 PDT
Created attachment 145761 [details]
Fix scroll issue in single backing store when ::-webkit-scrollbar css style is used.

Applied Gyuyoung's comments.
Comment 10 Adam Barth 2012-07-27 01:11:36 PDT
Comment on attachment 139816 [details]
Fix scroll issue in single backing store when ::-webkit-scrollbar css style is used.

Cleared review? from obsolete attachment 139816 [details] so that this bug does not appear in http://webkit.org/pending-review.  If you would like this patch reviewed, please attach it to a new bug (or re-open this bug before marking it for review again).
Comment 11 Gyuyoung Kim 2012-07-27 10:14:30 PDT
Comment on attachment 145761 [details]
Fix scroll issue in single backing store when ::-webkit-scrollbar css style is used.

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

I'm not proper person for this patch. CC'ing Rafael, could you review this patch ?

> Source/WebKit/efl/ewk/ewk_frame.cpp:1898
> + * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise and values are zeroed.

Nit : Use true / false instead of EINA_TRUE / EINA_FALSE.

> Source/WebKit/efl/ewk/ewk_view_single.cpp:349
> +    ewk_frame_visible_content_geometry_get(smartData->main_frame, EINA_FALSE, 0, 0, &width, &height);

Nit : EINA_FALSE -> false.
Comment 12 Gyuyoung Kim 2012-08-27 18:31:49 PDT
Comment on attachment 145761 [details]
Fix scroll issue in single backing store when ::-webkit-scrollbar css style is used.

Any update ?
Comment 13 JungJik Lee 2012-09-26 05:41:44 PDT
Any update this issue?
Comment 14 Raphael Kubo da Costa (:rakuco) 2012-09-26 06:10:31 PDT
Comment on attachment 145761 [details]
Fix scroll issue in single backing store when ::-webkit-scrollbar css style is used.

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

Are all the changes to the resize code necessary? I could only reproduce this bug when scrolling, not when resizing.

Additionally, it would be good to track the issue that the custom scrollbars are simply not painted at all in WK1.

> Source/WebKit/efl/ewk/ewk_frame_private.h:34
> +class HistoryItem;
> +class HTMLPlugInElement;
> +class IntSize;
> +class KURL;

Is this related?

> Source/WebKit/efl/ewk/ewk_frame_private.h:41
> +namespace WTF {
> +class String;
> +}

Ditto.
Comment 15 Mariusz Grzegorczyk 2012-12-17 02:59:26 PST

*** This bug has been marked as a duplicate of bug 77325 ***