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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 54d5c60b49ed374f7768fee276351249e9da0153..32ba2b9af996d2441446dbe56f8288d26f120053 100644
--- a/third_party/WebKit/Source/core/xml/DocumentXSLT.cpp
+++ b/third_party/WebKit/Source/core/xml/DocumentXSLT.cpp
@@ -21,11 +21,11 @@
namespace blink {
class DOMContentLoadedListener final : public V8AbstractEventListener, public ProcessingInstruction::DetachableEventListener {
- WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMContentLoadedListener);
+ USING_GARBAGE_COLLECTED_MIXIN(DOMContentLoadedListener);
public:
- static PassRefPtrWillBeRawPtr<DOMContentLoadedListener> create(ScriptState* scriptState, ProcessingInstruction* pi)
+ static RawPtr<DOMContentLoadedListener> create(ScriptState* scriptState, ProcessingInstruction* pi)
{
- return adoptRefWillBeNoop(new DOMContentLoadedListener(scriptState, pi));
+ return new DOMContentLoadedListener(scriptState, pi);
}
#if !ENABLE(OILPAN)
@@ -98,7 +98,7 @@ private:
// If this event listener is attached to a ProcessingInstruction, keep a
// weak reference back to it. That ProcessingInstruction is responsible for
// detaching itself and clear out the reference.
- RawPtrWillBeMember<ProcessingInstruction> m_processingInstruction;
+ Member<ProcessingInstruction> m_processingInstruction;
};
DocumentXSLT::DocumentXSLT()
@@ -151,7 +151,7 @@ bool DocumentXSLT::processingInstructionInsertedIntoDocument(Document& document,
ScriptState* scriptState = ScriptState::forMainWorld(document.frame());
if (!scriptState)
return false;
- RefPtrWillBeRawPtr<DOMContentLoadedListener> listener = DOMContentLoadedListener::create(scriptState, pi);
+ RawPtr<DOMContentLoadedListener> listener = DOMContentLoadedListener::create(scriptState, pi);
document.addEventListener(EventTypeNames::DOMContentLoaded, listener, false);
ASSERT(!pi->eventListenerForXSLT());
pi->setEventListenerForXSLT(listener.release());
@@ -192,16 +192,16 @@ const char* DocumentXSLT::supplementName()
bool DocumentXSLT::hasTransformSourceDocument(Document& document)
{
- return static_cast<DocumentXSLT*>(WillBeHeapSupplement<Document>::from(document, supplementName()));
+ return static_cast<DocumentXSLT*>(HeapSupplement<Document>::from(document, supplementName()));
}
-DocumentXSLT& DocumentXSLT::from(WillBeHeapSupplementable<Document>& document)
+DocumentXSLT& DocumentXSLT::from(HeapSupplementable<Document>& document)
{
- DocumentXSLT* supplement = static_cast<DocumentXSLT*>(WillBeHeapSupplement<Document>::from(document, supplementName()));
+ DocumentXSLT* supplement = static_cast<DocumentXSLT*>(HeapSupplement<Document>::from(document, supplementName()));
if (!supplement) {
supplement = new DocumentXSLT();
- WillBeHeapSupplement<Document>::provideTo(document, supplementName(), adoptPtrWillBeNoop(supplement));
+ HeapSupplement<Document>::provideTo(document, supplementName(), adoptPtrWillBeNoop(supplement));
}
return *supplement;
}
@@ -209,7 +209,7 @@ DocumentXSLT& DocumentXSLT::from(WillBeHeapSupplementable<Document>& document)
DEFINE_TRACE(DocumentXSLT)
{
visitor->trace(m_transformSourceDocument);
- WillBeHeapSupplement<Document>::trace(visitor);
+ HeapSupplement<Document>::trace(visitor);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/xml/DocumentXSLT.h ('k') | third_party/WebKit/Source/core/xml/NativeXPathNSResolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698