When the view state of the page is updated the layer mode may also change. Currently this is passed by a separate message, remove this and fold it into ViewState.
Previously the setLayerHostingMode message would be passed to the DrawingArea, which would inform the WebPage. Since the WebPage is passed the SetVisibilityState messgae reverse this.
WebPageProxy had a policy of only updating the hosting mode when visible - the value is sticky whilst the view is not visible. Make this policy explicit in the PageClientImpl, rather then implicit from the flow control.
Comment on attachment 219355[details]
Fix
View in context: https://bugs.webkit.org/attachment.cgi?id=219355&action=review> Source/WebKit2/WebProcess/WebPage/WebPage.cpp:3052
> + for (HashSet<PluginView*>::const_iterator it = m_pluginViews.begin(), end = m_pluginViews.end(); it != end; ++it)
> + (*it)->setLayerHostingMode(layerHostingMode);
This can be a range-based for loop.
Created attachment 219377[details]
Archive of layout-test-results from webkit-ews-11 for mac-mountainlion-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-11 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Created attachment 219444[details]
Archive of layout-test-results from webkit-ews-14 for mac-mountainlion-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-14 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Created attachment 219491[details]
Archive of layout-test-results from webkit-ews-11 for mac-mountainlion-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-11 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Created attachment 219501[details]
Archive of layout-test-results from webkit-ews-13 for mac-mountainlion-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-13 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Created attachment 219531[details]
Archive of layout-test-results from webkit-ews-12 for mac-mountainlion-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-12 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Created attachment 219677[details]
Archive of layout-test-results from webkit-ews-12 for mac-mountainlion-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-12 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Created attachment 219734[details]
Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-09 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Created attachment 219829[details]
Archive of layout-test-results from webkit-ews-15 for mac-mountainlion-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-15 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Created attachment 219856[details]
Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-09 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Attachment 219858[details] did not pass style-queue:
Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit2/Shared/ViewState.h', u'Source/WebKit2/Shared/WebPageCreationParameters.cpp', u'Source/WebKit2/Shared/WebPageCreationParameters.h', u'Source/WebKit2/UIProcess/API/mac/PageClientImpl.h', u'Source/WebKit2/UIProcess/API/mac/PageClientImpl.mm', u'Source/WebKit2/UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.cpp', u'Source/WebKit2/UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.h', u'Source/WebKit2/UIProcess/DrawingAreaProxy.h', u'Source/WebKit2/UIProcess/DrawingAreaProxyImpl.cpp', u'Source/WebKit2/UIProcess/DrawingAreaProxyImpl.h', u'Source/WebKit2/UIProcess/PageClient.h', u'Source/WebKit2/UIProcess/WebPageProxy.cpp', u'Source/WebKit2/UIProcess/WebPageProxy.h', u'Source/WebKit2/UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h', u'Source/WebKit2/UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm', u'Source/WebKit2/WebProcess/WebPage/DrawingArea.h', u'Source/WebKit2/WebProcess/WebPage/WebPage.cpp', u'Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm', u'Source/WebKit2/WebProcess/WebPage/mac/WebPageMac.mm', '--commit-queue']" exit_code: 1
ERROR: Source/WebKit2/WebProcess/WebPage/WebPage.cpp:2109: One line control clauses should not use braces. [whitespace/braces] [4]
Total errors found: 1 in 9 files
If any of these errors are false positives, please file a bug against check-webkit-style.
2013-12-16 14:38 PST, Gavin Barraclough
buildbot: commit-queue-
2013-12-16 17:41 PST, Build Bot
2013-12-17 11:17 PST, Gavin Barraclough
eflews.bot: commit-queue-
2013-12-17 12:02 PST, Gavin Barraclough
2013-12-17 13:06 PST, Build Bot
2013-12-17 13:40 PST, Gavin Barraclough
2013-12-17 16:01 PST, Gavin Barraclough
2013-12-17 19:06 PST, Build Bot
2013-12-17 19:39 PST, Gavin Barraclough
2013-12-17 20:30 PST, Build Bot
2013-12-18 02:28 PST, Gavin Barraclough
2013-12-18 02:52 PST, Gavin Barraclough
2013-12-18 06:50 PST, Build Bot
2013-12-18 08:46 PST, Gavin Barraclough
2013-12-18 21:27 PST, Gavin Barraclough
2013-12-18 22:18 PST, Gavin Barraclough
2013-12-18 23:03 PST, Gavin Barraclough
2013-12-18 23:40 PST, Gavin Barraclough
2013-12-19 12:12 PST, Gavin Barraclough
2013-12-19 12:45 PST, Build Bot
2013-12-19 22:56 PST, Gavin Barraclough
2013-12-19 23:55 PST, Build Bot
2013-12-20 00:07 PST, Gavin Barraclough
2013-12-20 10:20 PST, Gavin Barraclough
2013-12-20 11:56 PST, Gavin Barraclough
2013-12-20 18:57 PST, Build Bot
2013-12-21 16:10 PST, Build Bot
2013-12-21 19:13 PST, Gavin Barraclough
2013-12-21 21:44 PST, Gavin Barraclough
2013-12-21 21:47 PST, Gavin Barraclough
2013-12-21 22:51 PST, Gavin Barraclough
2013-12-21 22:52 PST, Gavin Barraclough
2013-12-22 00:38 PST, Gavin Barraclough