Bug 111407 - Coordinated Graphics: Add contentsSizeDidChange() to increase readability.
Summary: Coordinated Graphics: Add contentsSizeDidChange() to increase readability.
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dongseong Hwang
URL:
Keywords:
Depends on:
Blocks: 110066
  Show dependency treegraph
 
Reported: 2013-03-04 22:21 PST by Dongseong Hwang
Modified: 2013-10-11 08:05 PDT (History)
8 users (show)

See Also:


Attachments
Patch (6.43 KB, patch)
2013-03-04 22:23 PST, Dongseong Hwang
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dongseong Hwang 2013-03-04 22:21:17 PST
Add contentsSizeDidChange() to prevent from overusing sizeDidChange() callback
when contents size is changed.
Comment 1 Dongseong Hwang 2013-03-04 22:23:54 PST
Created attachment 191402 [details]
Patch
Comment 2 Noam Rosenthal 2013-03-08 02:39:17 PST
Comment on attachment 191402 [details]
Patch

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

> Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:240
> +    if (!m_webPage->useFixedLayout())
> +        nonCompositedContentsSizeDidChange(newSize);
> +}
> +
> +void CoordinatedLayerTreeHost::contentsSizeDidChange(const IntSize& newSize)
> +{
> +    if (m_webPage->useFixedLayout())
> +        nonCompositedContentsSizeDidChange(newSize);

This looks funny... I don't understand how CLTHost deals with fixed layout vs. non-fixed layout.
Does any port even use CoordinatedGraphics without fixed layout? Is that tested anywhere?
Comment 3 Dongseong Hwang 2013-03-08 02:49:28 PST
(In reply to comment #2)
> (From update of attachment 191402 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=191402&action=review
> This looks funny... I don't understand how CLTHost deals with fixed layout vs. non-fixed layout.
> Does any port even use CoordinatedGraphics without fixed layout? Is that tested anywhere?

I agree that it's funny. I hope Coordinated Graphics does not deal with non-fixed layout in the future.

I think WebKitTestRunner does not use fixedLayout in both EFL and Qt.
Comment 4 Dongseong Hwang 2013-03-08 02:53:52 PST
I filed this bug to prepare Bug 110066.

When turning off delegatesScrolling and fixedVisibleContentsRect, CoordinatedLayerTreeHost need to update visible contents rect when WebPage::m_viewSize is changed. However, currently CoordinatedLayerTreeHost   does not know when WebPage::m_viewSize is changed. So I filed this bug.

and, I think this patch increases readability a little bit.
Comment 5 Dongseong Hwang 2013-03-14 23:05:45 PDT
The sub goal of this patch clarifies as follows:
o. if coordinated graphics uses fixed layout, the size of non composited contents is contents size.
o. if coordinated graphics does not use fixed layout, the size of non composited contents is view size.

WDYT?
Comment 6 Noam Rosenthal 2013-10-11 08:05:14 PDT
Comment on attachment 191402 [details]
Patch

Clearing review flags for now.