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

Unified Diff: ui/views/win/hwnd_message_handler.cc

Issue 720443003: Reverting cl since it's causing a crash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2214
Patch Set: Created 6 years, 1 month 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: ui/views/win/hwnd_message_handler.cc
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
index fe562a7c904c9d74739fc01d28174c360a6028e0..08e337f7ac4cf8cce5cd45de4a948a6f377faef0 100644
--- a/ui/views/win/hwnd_message_handler.cc
+++ b/ui/views/win/hwnd_message_handler.cc
@@ -871,8 +871,7 @@ void HWNDMessageHandler::SetFullscreen(bool fullscreen) {
void HWNDMessageHandler::SizeConstraintsChanged() {
LONG style = GetWindowLong(hwnd(), GWL_STYLE);
// Ignore if this is not a standard window.
- // WS_OVERLAPPED is just the *absence* of WS_POPUP and WS_CHILD.
- if ((style & (WS_POPUP | WS_CHILD)) == WS_OVERLAPPED)
+ if (!(style & WS_OVERLAPPED))
return;
if (delegate_->CanResize()) {
« 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