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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp

Issue 2948983002: Low memory page navigation GC for low end devices (Closed)
Patch Set: fix Created 3 years, 6 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
Index: third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
index bda519f1a5bd71f0ca1c1013e4219186aa5a134b..4e89f5bc59a760087db2a9a079bfd055150797dc 100644
--- a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
@@ -63,11 +63,15 @@ WindowProxy::WindowProxy(v8::Isolate* isolate,
lifecycle_(Lifecycle::kContextIsUninitialized) {}
void WindowProxy::ClearForClose() {
- DisposeContext(Lifecycle::kFrameIsDetached);
+ DisposeContext(Lifecycle::kFrameIsDetached, kFrameWillNotBeReused);
}
void WindowProxy::ClearForNavigation() {
- DisposeContext(Lifecycle::kGlobalObjectIsDetached);
+ DisposeContext(Lifecycle::kGlobalObjectIsDetached, kFrameWillBeReused);
+}
+
+void WindowProxy::ClearForSwap() {
+ DisposeContext(Lifecycle::kGlobalObjectIsDetached, kFrameWillNotBeReused);
}
v8::Local<v8::Object> WindowProxy::GlobalProxyIfNotDetached() {

Powered by Google App Engine
This is Rietveld 408576698