Index: content/browser/renderer_host/render_widget_host_view_gtk.cc |
diff --git a/content/browser/renderer_host/render_widget_host_view_gtk.cc b/content/browser/renderer_host/render_widget_host_view_gtk.cc |
index 1d1baf45dab0d147c56f939cfaea7da6c07e8c35..05a750dd4b9c1a21f5baa5d8170473cd72e45c65 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_gtk.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_gtk.cc |
@@ -1023,7 +1023,7 @@ void RenderWidgetHostViewGtk::ModifyEventForEdgeDragging( |
int new_dragged_at_vertical_edge = 0; |
// Used for checking the edges of the monitor. We cache the values to save |
// roundtrips to the X server. |
- static gfx::Size drag_monitor_size; |
+ CR_DEFINE_STATIC_LOCAL(gfx::Size, drag_monitor_size, ()); |
Mark Mentovai
2011/11/09 17:44:44
Separate this and the .gyp work into distinct chan
Nico
2011/11/09 18:16:02
Done.
|
if (event->state & GDK_BUTTON1_MASK) { |
if (drag_monitor_size.IsEmpty()) { |
// We can safely cache the monitor size for the duration of a drag. |