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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

Issue 941543002: Mac: Speculative fix for tracking area crashes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bgv
Patch Set: Fix for thakis Created 5 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
« no previous file with comments | « no previous file | ui/base/cocoa/base_view.h » ('j') | ui/base/cocoa/base_view.mm » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_mac.mm
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
index a477fe08dda70ab44337a831a0ae237cae781090..87bca7fe4efbdf55eb6533db0b08c11685dc94c0 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -1703,7 +1703,7 @@ void RenderWidgetHostViewMac::OnDisplayMetricsChanged(
@synthesize markedRange = markedRange_;
- (id)initWithRenderWidgetHostViewMac:(RenderWidgetHostViewMac*)r {
- self = [super initWithFrame:NSZeroRect];
+ self = [super initWithFrame:NSZeroRect wantsReliableMouseEvents:YES];
if (self) {
self.acceptsTouchEvents = YES;
editCommand_helper_.reset(new RenderWidgetHostViewMacEditCommandHelper);
@@ -3163,6 +3163,8 @@ extern NSString *NSTextInputReplacementRangeAttributeName;
}
- (void)viewDidMoveToWindow {
+ [super viewDidMoveToWindow];
+
if ([self window]) {
[self updateScreenProperties];
} else {
« no previous file with comments | « no previous file | ui/base/cocoa/base_view.h » ('j') | ui/base/cocoa/base_view.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698