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

Unified Diff: third_party/WebKit/Source/core/xml/DocumentXSLT.cpp

Issue 1851743002: Simplify Supplementables post Oilpan. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix component build Created 4 years, 9 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: third_party/WebKit/Source/core/xml/DocumentXSLT.cpp
diff --git a/third_party/WebKit/Source/core/xml/DocumentXSLT.cpp b/third_party/WebKit/Source/core/xml/DocumentXSLT.cpp
index 32ba2b9af996d2441446dbe56f8288d26f120053..dfe0279362e01abd9c679a3305919f992bc73d57 100644
--- a/third_party/WebKit/Source/core/xml/DocumentXSLT.cpp
+++ b/third_party/WebKit/Source/core/xml/DocumentXSLT.cpp
@@ -192,16 +192,16 @@ const char* DocumentXSLT::supplementName()
bool DocumentXSLT::hasTransformSourceDocument(Document& document)
{
- return static_cast<DocumentXSLT*>(HeapSupplement<Document>::from(document, supplementName()));
+ return static_cast<DocumentXSLT*>(Supplement<Document>::from(document, supplementName()));
}
-DocumentXSLT& DocumentXSLT::from(HeapSupplementable<Document>& document)
+DocumentXSLT& DocumentXSLT::from(Supplementable<Document>& document)
{
- DocumentXSLT* supplement = static_cast<DocumentXSLT*>(HeapSupplement<Document>::from(document, supplementName()));
+ DocumentXSLT* supplement = static_cast<DocumentXSLT*>(Supplement<Document>::from(document, supplementName()));
if (!supplement) {
- supplement = new DocumentXSLT();
- HeapSupplement<Document>::provideTo(document, supplementName(), adoptPtrWillBeNoop(supplement));
+ supplement = new DocumentXSLT;
+ Supplement<Document>::provideTo(document, supplementName(), supplement);
}
return *supplement;
}
@@ -209,7 +209,7 @@ DocumentXSLT& DocumentXSLT::from(HeapSupplementable<Document>& document)
DEFINE_TRACE(DocumentXSLT)
{
visitor->trace(m_transformSourceDocument);
- HeapSupplement<Document>::trace(visitor);
+ Supplement<Document>::trace(visitor);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/xml/DocumentXSLT.h ('k') | third_party/WebKit/Source/modules/crypto/WorkerGlobalScopeCrypto.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698