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

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

Issue 2028523002: Attribute Stuff to Frames with FrameBlamer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug fix Created 4 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/core/frame/LocalFrame.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
index 6bfddc192b6e945cddcb95bb3d28907d79388ed1..2063a8ae59e687db771af5fb5785f5195019142c 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -828,4 +828,17 @@ FrameNavigationDisabler::~FrameNavigationDisabler()
m_frame->enableNavigation();
}
+ScopedFrameBlamer::ScopedFrameBlamer(LocalFrame* frame)
+ : m_frame(frame)
+{
+ if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext())
+ m_frame->client()->frameBlameContext()->Enter();
+}
+
+ScopedFrameBlamer::~ScopedFrameBlamer()
+{
+ if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext())
+ m_frame->client()->frameBlameContext()->Leave();
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.h ('k') | third_party/WebKit/Source/core/page/PageAnimator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698