[Webkit-unassigned] [Bug 67109] [EFL] Queued scroll feature

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 13 13:28:38 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=67109





--- Comment #14 from KwangHyuk <hyuki.kim at samsung.com>  2012-01-13 13:28:38 PST ---
> Source/WebKit/efl/ewk/ewk_frame.cpp:770
> +        int visibleWidth, visibleHeight, scrollX, scrollY, scrollDeltaX, scrollDeltaY, frameWidth, frameHeight;

If possible, put some variable when they are really needed.

> Source/WebKit/efl/ewk/ewk_frame.cpp:778
> +        else if (deltaX > frameWidth - scrollX - visibleWidth)

Reduce repetition of same pattern.

> Source/WebKit/efl/ewk/ewk_frame.cpp:782
> +            scrollDeltaX = deltaX;

This can be an initialization of scrollDeltaX, so else condition won't be required.

> Source/WebKit/efl/ewk/ewk_frame.cpp:784
> +        if (scrollY + deltaY < 0)

Check the webkit coding style, it might be two lines although one of them is comment.

> Source/WebKit/efl/ewk/ewk_frame.cpp:787
> +        else if (deltaY > frameHeight - scrollY - visibleHeight)

Ditto.

> Source/WebKit/efl/ewk/ewk_frame.cpp:791
> +            scrollDeltaY = deltaY;

This can be an initialization of scrollDeltaY, so else condition won't be required.

> Source/WebKit/efl/ewk/ewk_frame.cpp:799
> +                smartData->queuedScrolls.idler = ecore_idler_add(_ewk_frame_queued_scrolls_process_cb, smartData);

I couldn't find ecore_idler_del ? isn't it required ?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list