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

Unified Diff: Source/modules/presentation/Presentation.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/modules/presentation/Presentation.cpp
diff --git a/Source/modules/presentation/Presentation.cpp b/Source/modules/presentation/Presentation.cpp
index f14189b86ca939f69fd9e13b8f2af96354430f65..f08cb0781a5e686cce3aca13f433ceb77faa7b8c 100644
--- a/Source/modules/presentation/Presentation.cpp
+++ b/Source/modules/presentation/Presentation.cpp
@@ -44,9 +44,9 @@ const AtomicString& Presentation::interfaceName() const
ExecutionContext* Presentation::executionContext() const
{
- if (!frame())
+ if (!localFrame())
return nullptr;
- return frame()->document();
+ return localFrame()->document();
}
void Presentation::trace(Visitor* visitor)
@@ -131,9 +131,9 @@ bool Presentation::isAvailableChangeWatched() const
PresentationController* Presentation::presentationController()
{
- if (!frame())
+ if (!localFrame())
return nullptr;
- return PresentationController::from(*frame());
+ return PresentationController::from(*localFrame());
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698