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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2591243002: FrameView: Don't try to update the throttling status of a deleted frame (Closed)
Patch Set: Created 4 years 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: third_party/WebKit/Source/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 88bfd295adafbfa2a186dd6f3f0695d5961b2976..45b694c42266bc05c49558fa66d95f778c3d964f 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -309,6 +309,8 @@ void FrameView::setupRenderThrottling() {
m_visibilityObserver = new ElementVisibilityObserver(
targetElement, WTF::bind(
[](FrameView* frameView, bool isVisible) {
+ if (!frameView)
+ return;
frameView->updateRenderThrottlingStatus(
!isVisible, frameView->m_subtreeThrottled);
frameView->maybeRecordLoadReason();
« 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