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

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

Issue 14852011: Implement document.currentScript (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | Source/core/dom/Document.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index 2da5a7e3fdbafb564b8b0b8fb388314c7ef9ea5a..e0447adb2a2210502fe7a7d5651a6d6016959622 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,9 @@ public:
ScriptRunner* scriptRunner() { return m_scriptRunner.get(); }
+ HTMLScriptElement* currentScript() { return m_currentScript.get(); }
+ void setCurrentScript(PassRefPtr<HTMLScriptElement>);
+
void applyXSLTransform(ProcessingInstruction* pi);
PassRefPtr<Document> transformSourceDocument() { return m_transformSourceDocument; }
void setTransformSourceDocument(Document* doc) { m_transformSourceDocument = doc; }
@@ -1324,6 +1328,8 @@ private:
OwnPtr<ScriptRunner> m_scriptRunner;
+ RefPtr<HTMLScriptElement> m_currentScript;
+
OwnPtr<TransformSource> m_transformSource;
RefPtr<Document> m_transformSourceDocument;
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | Source/core/dom/Document.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698