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

Unified Diff: Source/modules/indexeddb/DOMWindowIndexedDatabase.cpp

Issue 1277653006: Oilpan: convert DOMWindowIndexedDatabase::m_window to a Member<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « Source/modules/indexeddb/DOMWindowIndexedDatabase.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/DOMWindowIndexedDatabase.cpp
diff --git a/Source/modules/indexeddb/DOMWindowIndexedDatabase.cpp b/Source/modules/indexeddb/DOMWindowIndexedDatabase.cpp
index 905a8a0f4651610dcaa4347536ba673fe5c4e9a7..5aff30182b130706c0f14fe79d1132a625af4a05 100644
--- a/Source/modules/indexeddb/DOMWindowIndexedDatabase.cpp
+++ b/Source/modules/indexeddb/DOMWindowIndexedDatabase.cpp
@@ -35,7 +35,7 @@ namespace blink {
DOMWindowIndexedDatabase::DOMWindowIndexedDatabase(LocalDOMWindow& window)
: DOMWindowProperty(window.frame())
- , m_window(window)
+ , m_window(&window)
{
}
@@ -43,6 +43,7 @@ DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(DOMWindowIndexedDatabase);
DEFINE_TRACE(DOMWindowIndexedDatabase)
{
+ visitor->trace(m_window);
visitor->trace(m_idbFactory);
WillBeHeapSupplement<LocalDOMWindow>::trace(visitor);
DOMWindowProperty::trace(visitor);
@@ -82,7 +83,7 @@ IDBFactory* DOMWindowIndexedDatabase::indexedDB(DOMWindow& window)
IDBFactory* DOMWindowIndexedDatabase::indexedDB()
{
- Document* document = m_window.document();
+ Document* document = m_window->document();
if (!document)
return nullptr;
@@ -90,7 +91,7 @@ IDBFactory* DOMWindowIndexedDatabase::indexedDB()
if (!page)
return nullptr;
- if (!m_window.isCurrentlyDisplayedInFrame())
+ if (!m_window->isCurrentlyDisplayedInFrame())
return nullptr;
if (!m_idbFactory)
« no previous file with comments | « Source/modules/indexeddb/DOMWindowIndexedDatabase.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698