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

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

Issue 2450293003: Third-party iframe logging: Separate AboveAndLeft from Above (Closed)
Patch Set: better histogram description Created 4 years, 2 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/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 a3537839378bfed23940dbbef65496c9484447bf..8a0207c5d9f2d57bce6dae6060399a0759a091a6 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -4347,6 +4347,8 @@ void FrameView::updateViewportIntersectionIfNeeded() {
if (parentLoaded) {
if (frameRect().isEmpty())
frame().document()->maybeRecordLoadReason(WouldLoadZeroByZero);
+ else if (frameRect().maxY() < 0 && frameRect().maxX() < 0)
+ frame().document()->maybeRecordLoadReason(WouldLoadAboveAndLeft);
else if (frameRect().maxY() < 0)
frame().document()->maybeRecordLoadReason(WouldLoadAbove);
else if (frameRect().maxX() < 0)

Powered by Google App Engine
This is Rietveld 408576698