Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1080)

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2736523002: Defer ChromeClient::attachRootGraphicsLayer until after compositing update. (Closed)
Patch Set: use updateLifecycleToCompositingCleanPlusScrolling Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index a14899a44e8bbb407cce2a174f07682c7ebdcd15..0e92aac0a24314ad05ee9044503c9b071aeb8bfb 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -3727,7 +3727,13 @@ void WebViewImpl::setPageOverlayColor(WebColor color) {
m_pageColorOverlay = PageOverlay::create(
mainFrameImpl(), WTF::makeUnique<ColorOverlay>(color));
- m_pageColorOverlay->update();
+
+ // Run compositing update before calling updatePageOverlays.
+ mainFrameImpl()
+ ->frameView()
+ ->updateLifecycleToCompositingCleanPlusScrolling();
+
+ updatePageOverlays();
}
WebPageImportanceSignals* WebViewImpl::pageImportanceSignals() {

Powered by Google App Engine
This is Rietveld 408576698