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

Unified Diff: Source/bindings/core/v8/V8GCForContextDispose.cpp

Issue 544593002: Remove pseudo-idle notification for main frame reload. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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: Source/bindings/core/v8/V8GCForContextDispose.cpp
diff --git a/Source/bindings/core/v8/V8GCForContextDispose.cpp b/Source/bindings/core/v8/V8GCForContextDispose.cpp
index 57735b6a0dc45c717a9f6d4e9c8c8ca2d890a623..e94a301c8e2b50cc972974cc1ee6c2bae76f36d0 100644
--- a/Source/bindings/core/v8/V8GCForContextDispose.cpp
+++ b/Source/bindings/core/v8/V8GCForContextDispose.cpp
@@ -70,10 +70,9 @@ V8GCForContextDispose& V8GCForContextDispose::instanceTemplate()
void V8GCForContextDispose::pseudoIdleTimerFired(Timer<V8GCForContextDispose>*)
{
- const int longIdlePauseInMs = 100;
- const int shortIdlePauseInMs = 10;
- int hint = m_didDisposeContextForMainFrame ? longIdlePauseInMs : shortIdlePauseInMs;
- V8PerIsolateData::mainThreadIsolate()->IdleNotification(hint);
+ const int idlePauseInMs = 10;
+ if (!m_didDisposeContextForMainFrame)
+ V8PerIsolateData::mainThreadIsolate()->IdleNotification(idlePauseInMs);
m_didDisposeContextForMainFrame = false;
}
« 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