Chromium Code Reviews| Index: Source/core/dom/ProcessingInstruction.cpp |
| diff --git a/Source/core/dom/ProcessingInstruction.cpp b/Source/core/dom/ProcessingInstruction.cpp |
| index 1459449179d1f40f08a7bb9da07274463f9812cd..5da61fb6da2346a01583b39d6f5a4e2139172f60 100644 |
| --- a/Source/core/dom/ProcessingInstruction.cpp |
| +++ b/Source/core/dom/ProcessingInstruction.cpp |
| @@ -67,6 +67,24 @@ ProcessingInstruction::~ProcessingInstruction() |
| if (inDocument() && m_isCSS) |
| document().styleEngine()->removeStyleSheetCandidateNode(this); |
| #endif |
| + if (m_listenerForXSLT) |
|
haraken
2014/11/24 01:17:00
We can call clearEventListenerForXSLT().
sof
2014/11/24 06:15:39
Yes, done.
|
| + m_listenerForXSLT->detach(); |
| +} |
| + |
| +EventListener* ProcessingInstruction::eventListenerForXSLT() |
| +{ |
| + if (!m_listenerForXSLT) |
| + return 0; |
| + |
| + return m_listenerForXSLT->toEventListener(); |
| +} |
| + |
| +void ProcessingInstruction::clearEventListenerForXSLT() |
| +{ |
| + if (m_listenerForXSLT) { |
| + m_listenerForXSLT->detach(); |
| + m_listenerForXSLT.clear(); |
| + } |
| } |
| String ProcessingInstruction::nodeName() const |