Chromium Code Reviews| Index: Source/core/dom/Document.cpp |
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
| index 8950dc3b2d2647704a6ae4ac86380e3a8e6bbe47..971bff175bf55a64a28d3bd6260f75b4a79a278e 100644 |
| --- a/Source/core/dom/Document.cpp |
| +++ b/Source/core/dom/Document.cpp |
| @@ -123,6 +123,7 @@ |
| #include "core/html/HTMLLinkElement.h" |
| #include "core/html/HTMLMapElement.h" |
| #include "core/html/HTMLNameCollection.h" |
| +#include "core/html/HTMLScriptElement.h" |
| #include "core/html/HTMLStyleElement.h" |
| #include "core/html/HTMLTitleElement.h" |
| #include "core/html/PluginDocument.h" |
| @@ -3919,6 +3920,21 @@ KURL Document::openSearchDescriptionURL() |
| return KURL(); |
| } |
| +void Document::setCurrentScript(PassRefPtr<HTMLScriptElement> newCurrentScript) |
| +{ |
| + if (!newCurrentScript) { |
| + m_currentScript.clear(); |
| + return; |
| + } |
|
esprehn
2013/05/15 16:08:16
Please remove, you can add ASSERT(newCurrentScript
|
| + |
| + m_currentScript = newCurrentScript; |
| +} |
| + |
| +void Document::clearCurrentScript() |
| +{ |
| + m_currentScript.clear(); |
| +} |
| + |
| void Document::applyXSLTransform(ProcessingInstruction* pi) |
| { |
| RefPtr<XSLTProcessor> processor = XSLTProcessor::create(); |