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

Unified Diff: Source/core/html/imports/HTMLImportChild.cpp

Issue 235113002: Oilpan: Remove guardRef and guardDeref from TreeScope. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments. Created 6 years, 8 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/core/html/imports/HTMLImportChild.h ('k') | Source/core/html/shadow/DateTimeEditElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/imports/HTMLImportChild.cpp
diff --git a/Source/core/html/imports/HTMLImportChild.cpp b/Source/core/html/imports/HTMLImportChild.cpp
index 3c2c94f640227f2fdfafd8a316151e3723c476c0..4309e071e08606f285a5ed65c40f950a1ef3f899 100644
--- a/Source/core/html/imports/HTMLImportChild.cpp
+++ b/Source/core/html/imports/HTMLImportChild.cpp
@@ -42,13 +42,19 @@ namespace WebCore {
HTMLImportChild::HTMLImportChild(Document& master, const KURL& url, SyncMode sync)
: HTMLImport(sync)
+#if ENABLE(OILPAN)
+ , m_master(&master)
+#else
, m_master(master)
+#endif
, m_url(url)
, m_customElementMicrotaskStep(0)
, m_loader(0)
, m_client(0)
{
+#if !ENABLE(OILPAN)
m_master.guardRef();
+#endif
}
HTMLImportChild::~HTMLImportChild()
@@ -65,7 +71,9 @@ HTMLImportChild::~HTMLImportChild()
if (m_client)
m_client->importChildWasDestroyed(this);
+#if !ENABLE(OILPAN)
m_master.guardDeref();
+#endif
}
void HTMLImportChild::wasAlreadyLoaded()
« no previous file with comments | « Source/core/html/imports/HTMLImportChild.h ('k') | Source/core/html/shadow/DateTimeEditElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698