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

Unified Diff: Source/core/loader/appcache/ApplicationCache.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/loader/appcache/ApplicationCache.cpp
diff --git a/Source/core/loader/appcache/ApplicationCache.cpp b/Source/core/loader/appcache/ApplicationCache.cpp
index 7ceee548c89841bbd3aee30210b3a4cf5db896a6..490aac792aab741ff253fd8c35c1cb45e35afbc8 100644
--- a/Source/core/loader/appcache/ApplicationCache.cpp
+++ b/Source/core/loader/appcache/ApplicationCache.cpp
@@ -59,9 +59,9 @@ void ApplicationCache::willDestroyGlobalObjectInFrame()
ApplicationCacheHost* ApplicationCache::applicationCacheHost() const
{
- if (!m_frame || !m_frame->loader().documentLoader())
+ if (!localFrame() || !localFrame()->loader().documentLoader())
return 0;
- return m_frame->loader().documentLoader()->applicationCacheHost();
+ return localFrame()->loader().documentLoader()->applicationCacheHost();
}
unsigned short ApplicationCache::status() const
@@ -100,8 +100,8 @@ const AtomicString& ApplicationCache::interfaceName() const
ExecutionContext* ApplicationCache::executionContext() const
{
- if (m_frame)
- return m_frame->document();
+ if (localFrame())
+ return localFrame()->document();
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698