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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 1764043002: Update a webview plugin's WebView's lifecycle immediately after resizing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 94efad2e1d6b5062f977debda85d335194a68b06..fdb16e9dcfdbbf52ce5c9fa3cecad45418746fcd 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -1797,6 +1797,8 @@ void FrameView::scheduleRelayout()
if (!shouldThrottleRendering())
page()->animator().scheduleVisualUpdate(m_frame.get());
+ // TODO(chrishtr): this is dangerous and probably incorrect, since layout can be rescheduled during
+ // the lifecycle in cases such as change of containing block chain. Remove it.
lifecycle().ensureStateAtMost(DocumentLifecycle::StyleClean);
}

Powered by Google App Engine
This is Rietveld 408576698