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

Unified Diff: components/plugins/renderer/webview_plugin.cc

Issue 1158693002: Call setNeedsLayout instead of invalidate when scheduling plugin webview animation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/plugins/renderer/webview_plugin.cc
diff --git a/components/plugins/renderer/webview_plugin.cc b/components/plugins/renderer/webview_plugin.cc
index 96347fd5b22894d909c842c3dc25a6d2309d1aa9..fc273adc9eb8c0e7af5013cdc7936b6c6bfbbcc1 100644
--- a/components/plugins/renderer/webview_plugin.cc
+++ b/components/plugins/renderer/webview_plugin.cc
@@ -258,7 +258,7 @@ void WebViewPlugin::didChangeCursor(const WebCursorInfo& cursor) {
void WebViewPlugin::scheduleAnimation() {
if (container_)
- container_->invalidate();
+ container_->setNeedsLayout();
}
void WebViewPlugin::didClearWindowObject(WebLocalFrame* frame) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698