| Summary: | Set background color of WK2's UIScrollView to the pageExtendedBackgroundColor | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Beth Dakin <bdakin> | ||||||
| Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | bdakin, benjamin, commit-queue, esprehn+autocc, glenn, kondapallykalyan, simon.fraser, thorton | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Beth Dakin
2014-03-07 14:33:25 PST
*** Bug 129921 has been marked as a duplicate of this bug. *** Created attachment 226171 [details]
Patch
Created attachment 226181 [details]
Patch
Should fix the build failure.
Comment on attachment 226181 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=226181&action=review > Source/WebKit2/Shared/mac/RemoteLayerTreeTransaction.h:207 > + WebCore::Color m_pageExtendedBackgroundColor; Let's move this above with content size. > Source/WebKit2/Shared/mac/RemoteLayerTreeTransaction.mm:426 > + encoder << m_pageExtendedBackgroundColor; And update this accordingly. > Source/WebKit2/Shared/mac/RemoteLayerTreeTransaction.mm:492 > + if (!decoder.decode(result.m_pageExtendedBackgroundColor)) > + return false; > + And this. > Source/WebKit2/UIProcess/WebPageProxy.h:432 > + void setPageExtendedBackgroundColor(const WebCore::Color& color) { m_pageExtendedBackgroundColor = color; } You should not need this. > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:340 > + _page->setPageExtendedBackgroundColor(layerTreeTransaction.pageExtendedBackgroundColor()); This should be done in WebPageProxy::didCommitLayerTree(). > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:342 > + if ([self _backgroundExtendsBeyondPage] && pageExtendedBackgroundColor != [_scrollView backgroundColor]) You may not need pageExtendedBackgroundColor != [_scrollView backgroundColor], UIScrollView might do that already. > Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp:880 > + if (m_page->drawingArea()) > + m_page->drawingArea()->scheduleCompositingLayerFlush(); Do we really need this? I would think a flush must be scheduled already since the style would invalidate the full frame rect. (In reply to comment #4) > (From update of attachment 226181 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=226181&action=review > > > Source/WebKit2/Shared/mac/RemoteLayerTreeTransaction.h:207 > > + WebCore::Color m_pageExtendedBackgroundColor; > > Let's move this above with content size. > Okay! > > Source/WebKit2/Shared/mac/RemoteLayerTreeTransaction.mm:426 > > + encoder << m_pageExtendedBackgroundColor; > > And update this accordingly. > Done. > > Source/WebKit2/Shared/mac/RemoteLayerTreeTransaction.mm:492 > > + if (!decoder.decode(result.m_pageExtendedBackgroundColor)) > > + return false; > > + > > And this. > Done. > > Source/WebKit2/UIProcess/WebPageProxy.h:432 > > + void setPageExtendedBackgroundColor(const WebCore::Color& color) { m_pageExtendedBackgroundColor = color; } > > You should not need this. > Removed. > > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:340 > > + _page->setPageExtendedBackgroundColor(layerTreeTransaction.pageExtendedBackgroundColor()); > > This should be done in WebPageProxy::didCommitLayerTree(). > Moved. > > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:342 > > + if ([self _backgroundExtendsBeyondPage] && pageExtendedBackgroundColor != [_scrollView backgroundColor]) > > You may not need pageExtendedBackgroundColor != [_scrollView backgroundColor], UIScrollView might do that already. > Okay, I will remove it if it's not needed. > > Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp:880 > > + if (m_page->drawingArea()) > > + m_page->drawingArea()->scheduleCompositingLayerFlush(); > > Do we really need this? I would think a flush must be scheduled already since the style would invalidate the full frame rect. It's true that in my testing it doesn't seem like we need to do anything here⦠Committed change with http://trac.webkit.org/changeset/165409 |