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

Unified Diff: Source/core/frame/Console.cpp

Issue 517043003: Move Frame to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Back out non-Oilpan experiment + tidy up by adding frame() ref accessors Created 6 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
Index: Source/core/frame/Console.cpp
diff --git a/Source/core/frame/Console.cpp b/Source/core/frame/Console.cpp
index 5104a4a4a138827dd44a1ce6a6eed9ae61d3ae14..af5421a19bf642bdadf8b1d22e31f84d46f374c0 100644
--- a/Source/core/frame/Console.cpp
+++ b/Source/core/frame/Console.cpp
@@ -63,17 +63,17 @@ void Console::trace(Visitor* visitor)
ExecutionContext* Console::context()
{
- if (!m_frame)
+ if (!frame())
return 0;
- return m_frame->document();
+ return frame()->document();
}
void Console::reportMessageToConsole(PassRefPtrWillBeRawPtr<ConsoleMessage> consoleMessage)
{
- if (!m_frame)
+ if (!frame())
return;
- m_frame->console().addMessage(consoleMessage);
+ frame()->console().addMessage(consoleMessage);
}
PassRefPtrWillBeRawPtr<MemoryInfo> Console::memory() const

Powered by Google App Engine
This is Rietveld 408576698