Bug 173153 - [CoordinatedGraphics] Behavior change of DrawingAreaImpl after r217779
Summary: [CoordinatedGraphics] Behavior change of DrawingAreaImpl after r217779
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Daewoong Jang
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-09 04:50 PDT by Daewoong Jang
Modified: 2017-06-12 08:27 PDT (History)
7 users (show)

See Also:


Attachments
patch (1.95 KB, patch)
2017-06-09 04:52 PDT, Daewoong Jang
cgarcia: review+
cgarcia: commit-queue-
Details | Formatted Diff | Diff
updated patch (1.92 KB, patch)
2017-06-12 05:53 PDT, Daewoong Jang
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daewoong Jang 2017-06-09 04:50:03 PDT
By changeset 217779(https://bugs.webkit.org/show_bug.cgi?id=172496), DrawingAreaImpl::mainFrameContentSizeChanged() was moved to AcceleratedDrawingArea::mainFrameContentSizeChanged(). However the move has caused behavior change of DrawingAreaImpl, as it revives the existing implementation of AcceleratedDrawingArea which was shadowed by both DrawingAreaImpl and DrawingAreaWPE before the change.

It seems that the behavior change is unintended.
Comment 1 Daewoong Jang 2017-06-09 04:52:08 PDT
Created attachment 312427 [details]
patch
Comment 2 Carlos Garcia Campos 2017-06-11 23:22:14 PDT
Has this broken something? I think it was the previous code what was wrong, we probably didn't notice it because we don't expose fixed layout.
Comment 3 Daewoong Jang 2017-06-11 23:26:44 PDT
(In reply to Carlos Garcia Campos from comment #2)
> Has this broken something? I think it was the previous code what was wrong,
> we probably didn't notice it because we don't expose fixed layout.

I'm using fixed layout and CoordinatedGraphics stopped displaying pages since the patch. I'd appreciate if you could investigate further. Thanks for reply!
Comment 4 Carlos Garcia Campos 2017-06-12 01:21:00 PDT
Comment on attachment 312427 [details]
patch

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

> Source/WebKit2/WebProcess/WebPage/AcceleratedDrawingArea.cpp:170
>      if (m_webPage.useFixedLayout()) {
>          if (m_layerTreeHost)
>              m_layerTreeHost->sizeDidChange(size);
>          else if (m_previousLayerTreeHost)
>              m_previousLayerTreeHost->sizeDidChange(size);

Ok, this comes from CoordinatedDrawingArea, it was merged into AcceleratedDrawingArea, but never used by us because the DrawingAreaImpl never chained up. I'm not sure if that was on purpose because this was only used by the multiprocess coordinated graphics implementation or if it was a bug, but since we only have threaded coordinated graphics now, I think we can simply remove this.

> Source/WebKit2/WebProcess/WebPage/AcceleratedDrawingArea.cpp:172
>      m_webPage.mainFrame()->pageOverlayController().didChangeDocumentSize();

And this can be removed too, since FrameView already takes care of this.
Comment 5 Daewoong Jang 2017-06-12 02:21:45 PDT
(In reply to Carlos Garcia Campos from comment #4)
> Comment on attachment 312427 [details]
> patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=312427&action=review
> 
> > Source/WebKit2/WebProcess/WebPage/AcceleratedDrawingArea.cpp:170
> >      if (m_webPage.useFixedLayout()) {
> >          if (m_layerTreeHost)
> >              m_layerTreeHost->sizeDidChange(size);
> >          else if (m_previousLayerTreeHost)
> >              m_previousLayerTreeHost->sizeDidChange(size);
> 
> Ok, this comes from CoordinatedDrawingArea, it was merged into
> AcceleratedDrawingArea, but never used by us because the DrawingAreaImpl
> never chained up. I'm not sure if that was on purpose because this was only
> used by the multiprocess coordinated graphics implementation or if it was a
> bug, but since we only have threaded coordinated graphics now, I think we
> can simply remove this.
> 
> > Source/WebKit2/WebProcess/WebPage/AcceleratedDrawingArea.cpp:172
> >      m_webPage.mainFrame()->pageOverlayController().didChangeDocumentSize();
> 
> And this can be removed too, since FrameView already takes care of this.

Alright. I will update the patch as you suggested. Thank you for review.
Comment 6 Daewoong Jang 2017-06-12 05:53:56 PDT
Created attachment 312656 [details]
updated patch
Comment 7 Carlos Garcia Campos 2017-06-12 05:59:12 PDT
Comment on attachment 312656 [details]
updated patch

Thanks!
Comment 8 WebKit Commit Bot 2017-06-12 08:27:33 PDT
Comment on attachment 312656 [details]
updated patch

Clearing flags on attachment: 312656

Committed r218102: <http://trac.webkit.org/changeset/218102>
Comment 9 WebKit Commit Bot 2017-06-12 08:27:35 PDT
All reviewed patches have been landed.  Closing bug.