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

Unified Diff: Source/core/dom/Document.h

Issue 14852011: Implement document.currentScript (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tests Created 7 years, 7 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: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index 616d6736439ff4864437a93de5b2bb2320dfd422..826b23ddecc880ad0a889e24402247c578f02757 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -107,6 +107,7 @@ class HTMLHeadElement;
class HTMLIFrameElement;
class HTMLMapElement;
class HTMLNameCollection;
+class HTMLScriptElement;
class HitTestRequest;
class HitTestResult;
class IntPoint;
@@ -860,6 +861,10 @@ public:
ScriptRunner* scriptRunner() { return m_scriptRunner.get(); }
+ HTMLScriptElement* currentScript() { return m_currentScript.get(); }
+ void setCurrentScript(PassRefPtr<HTMLScriptElement>);
+ void clearCurrentScript();
+
void applyXSLTransform(ProcessingInstruction* pi);
PassRefPtr<Document> transformSourceDocument() { return m_transformSourceDocument; }
void setTransformSourceDocument(Document* doc) { m_transformSourceDocument = doc; }
@@ -1324,6 +1329,8 @@ private:
OwnPtr<ScriptRunner> m_scriptRunner;
+ RefPtr<HTMLScriptElement> m_currentScript;
+
OwnPtr<TransformSource> m_transformSource;
RefPtr<Document> m_transformSourceDocument;

Powered by Google App Engine
This is Rietveld 408576698