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

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

Issue 879423003: Move Location to DOMWindow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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 8338063b3fafc9f456d5a232b7d4290b20691ef3..4b39d995f6e8465ab7abc834410d00603bbc3b1f 100644
--- a/Source/core/frame/Console.cpp
+++ b/Source/core/frame/Console.cpp
@@ -64,17 +64,17 @@ void Console::trace(Visitor* visitor)
ExecutionContext* Console::context()
{
- if (!frame())
+ if (!localFrame())
return 0;
- return frame()->document();
+ return localFrame()->document();
}
void Console::reportMessageToConsole(PassRefPtrWillBeRawPtr<ConsoleMessage> consoleMessage)
{
- if (!frame())
+ if (!localFrame())
return;
- frame()->console().addMessage(consoleMessage);
+ localFrame()->console().addMessage(consoleMessage);
}
PassRefPtrWillBeRawPtr<MemoryInfo> Console::memory() const

Powered by Google App Engine
This is Rietveld 408576698