RESOLVED FIXED 173153
[CoordinatedGraphics] Behavior change of DrawingAreaImpl after r217779
https://bugs.webkit.org/show_bug.cgi?id=173153
Summary [CoordinatedGraphics] Behavior change of DrawingAreaImpl after r217779
Daewoong Jang
Reported 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.
Attachments
patch (1.95 KB, patch)
2017-06-09 04:52 PDT, Daewoong Jang
cgarcia: review+
cgarcia: commit-queue-
updated patch (1.92 KB, patch)
2017-06-12 05:53 PDT, Daewoong Jang
no flags
Daewoong Jang
Comment 1 2017-06-09 04:52:08 PDT
Carlos Garcia Campos
Comment 2 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.
Daewoong Jang
Comment 3 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!
Carlos Garcia Campos
Comment 4 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.
Daewoong Jang
Comment 5 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.
Daewoong Jang
Comment 6 2017-06-12 05:53:56 PDT
Created attachment 312656 [details] updated patch
Carlos Garcia Campos
Comment 7 2017-06-12 05:59:12 PDT
Comment on attachment 312656 [details] updated patch Thanks!
WebKit Commit Bot
Comment 8 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>
WebKit Commit Bot
Comment 9 2017-06-12 08:27:35 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.