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

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

Issue 2212183004: Log to UMA when x-origin frames (1) are created and (2) become visible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix histogram description Created 4 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 | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | 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 28f16070705b806c73c9fb0d64247bae852ef067..94e06e68dc45bdbaacdc05989c0df58f2a321f12 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -4270,11 +4270,14 @@ void FrameView::notifyRenderThrottlingObservers()
{
TRACE_EVENT0("blink", "FrameView::notifyRenderThrottlingObservers");
DCHECK(!isInPerformLayout());
- DCHECK(!m_frame->document() || !m_frame->document()->inStyleRecalc());
+ DCHECK(frame().document());
+ DCHECK(!frame().document()->inStyleRecalc());
bool wasThrottled = canThrottleRendering();
updateThrottlingStatus();
+ frame().document()->onVisibilityMaybeChanged(!m_hiddenForThrottling);
+
bool becameThrottled = !wasThrottled && canThrottleRendering();
bool becameUnthrottled = wasThrottled && !canThrottleRendering();
ScrollingCoordinator* scrollingCoordinator = this->scrollingCoordinator();
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698