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

Unified Diff: plugin/win/main_win.cc

Issue 155119: Worked around infinite loop seen in Chrome on Windows when raising and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 years, 5 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: plugin/win/main_win.cc
===================================================================
--- plugin/win/main_win.cc (revision 19991)
+++ plugin/win/main_win.cc (working copy)
@@ -472,6 +472,10 @@
switch (Msg) {
case WM_PAINT: {
if (reentrance_count.get() > 1) {
+ // In Chrome, alert dialogs raised from JavaScript cause
+ // reentrant WM_PAINT messages to be dispatched and 100% CPU
+ // to be consumed unless we call this
+ ::ValidateRect(hWnd, NULL);
break; // Ignore this message; we're reentrant.
}
PAINTSTRUCT paint_struct;
« 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