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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 188103002: Merge 254318 "Attempted fix for Mac layout test crashes" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1847/src/
Patch Set: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 } 1318 }
1319 #endif 1319 #endif
1320 1320
1321 #if defined(OS_MACOSX) 1321 #if defined(OS_MACOSX)
1322 void RenderThreadImpl::OnUpdateScrollbarTheme( 1322 void RenderThreadImpl::OnUpdateScrollbarTheme(
1323 float initial_button_delay, 1323 float initial_button_delay,
1324 float autoscroll_button_delay, 1324 float autoscroll_button_delay,
1325 bool jump_on_track_click, 1325 bool jump_on_track_click,
1326 blink::ScrollerStyle preferred_scroller_style, 1326 blink::ScrollerStyle preferred_scroller_style,
1327 bool redraw) { 1327 bool redraw) {
1328 EnsureWebKitInitialized();
1328 static_cast<WebScrollbarBehaviorImpl*>( 1329 static_cast<WebScrollbarBehaviorImpl*>(
1329 webkit_platform_support_->scrollbarBehavior())->set_jump_on_track_click( 1330 webkit_platform_support_->scrollbarBehavior())->set_jump_on_track_click(
1330 jump_on_track_click); 1331 jump_on_track_click);
1331 blink::WebScrollbarTheme::updateScrollbars(initial_button_delay, 1332 blink::WebScrollbarTheme::updateScrollbars(initial_button_delay,
1332 autoscroll_button_delay, 1333 autoscroll_button_delay,
1333 preferred_scroller_style, 1334 preferred_scroller_style,
1334 redraw); 1335 redraw);
1335 } 1336 }
1336 #endif 1337 #endif
1337 1338
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
1424 hidden_widget_count_--; 1425 hidden_widget_count_--;
1425 1426
1426 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { 1427 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) {
1427 return; 1428 return;
1428 } 1429 }
1429 1430
1430 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 1431 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
1431 } 1432 }
1432 1433
1433 } // namespace content 1434 } // namespace content
OLDNEW
« 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