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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | Source/core/dom/Document.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 class HTMLCanvasElement; 100 class HTMLCanvasElement;
101 class HTMLCollection; 101 class HTMLCollection;
102 class HTMLAllCollection; 102 class HTMLAllCollection;
103 class HTMLDocument; 103 class HTMLDocument;
104 class HTMLElement; 104 class HTMLElement;
105 class HTMLFrameOwnerElement; 105 class HTMLFrameOwnerElement;
106 class HTMLHeadElement; 106 class HTMLHeadElement;
107 class HTMLIFrameElement; 107 class HTMLIFrameElement;
108 class HTMLMapElement; 108 class HTMLMapElement;
109 class HTMLNameCollection; 109 class HTMLNameCollection;
110 class HTMLScriptElement;
110 class HitTestRequest; 111 class HitTestRequest;
111 class HitTestResult; 112 class HitTestResult;
112 class IntPoint; 113 class IntPoint;
113 class LayoutPoint; 114 class LayoutPoint;
114 class LayoutRect; 115 class LayoutRect;
115 class LiveNodeListBase; 116 class LiveNodeListBase;
116 class DOMWrapperWorld; 117 class DOMWrapperWorld;
117 class JSNode; 118 class JSNode;
118 class Locale; 119 class Locale;
119 class MediaQueryList; 120 class MediaQueryList;
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 InheritedBool getDesignMode() const; 854 InheritedBool getDesignMode() const;
854 bool inDesignMode() const; 855 bool inDesignMode() const;
855 856
856 Document* parentDocument() const; 857 Document* parentDocument() const;
857 Document* topDocument() const; 858 Document* topDocument() const;
858 859
859 int docID() const { return m_docID; } 860 int docID() const { return m_docID; }
860 861
861 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); } 862 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); }
862 863
864 HTMLScriptElement* currentScript() { return m_currentScript.get(); }
865 void setCurrentScript(PassRefPtr<HTMLScriptElement>);
866
863 void applyXSLTransform(ProcessingInstruction* pi); 867 void applyXSLTransform(ProcessingInstruction* pi);
864 PassRefPtr<Document> transformSourceDocument() { return m_transformSourceDoc ument; } 868 PassRefPtr<Document> transformSourceDocument() { return m_transformSourceDoc ument; }
865 void setTransformSourceDocument(Document* doc) { m_transformSourceDocument = doc; } 869 void setTransformSourceDocument(Document* doc) { m_transformSourceDocument = doc; }
866 870
867 void setTransformSource(PassOwnPtr<TransformSource>); 871 void setTransformSource(PassOwnPtr<TransformSource>);
868 TransformSource* transformSource() const { return m_transformSource.get(); } 872 TransformSource* transformSource() const { return m_transformSource.get(); }
869 873
870 void incDOMTreeVersion() { m_domTreeVersion = ++s_globalTreeVersion; } 874 void incDOMTreeVersion() { m_domTreeVersion = ++s_globalTreeVersion; }
871 uint64_t domTreeVersion() const { return m_domTreeVersion; } 875 uint64_t domTreeVersion() const { return m_domTreeVersion; }
872 876
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
1317 // and should be merged. 1321 // and should be merged.
1318 bool m_processingLoadEvent; 1322 bool m_processingLoadEvent;
1319 bool m_loadEventFinished; 1323 bool m_loadEventFinished;
1320 1324
1321 RefPtr<SerializedScriptValue> m_pendingStateObject; 1325 RefPtr<SerializedScriptValue> m_pendingStateObject;
1322 double m_startTime; 1326 double m_startTime;
1323 bool m_overMinimumLayoutThreshold; 1327 bool m_overMinimumLayoutThreshold;
1324 1328
1325 OwnPtr<ScriptRunner> m_scriptRunner; 1329 OwnPtr<ScriptRunner> m_scriptRunner;
1326 1330
1331 RefPtr<HTMLScriptElement> m_currentScript;
1332
1327 OwnPtr<TransformSource> m_transformSource; 1333 OwnPtr<TransformSource> m_transformSource;
1328 RefPtr<Document> m_transformSourceDocument; 1334 RefPtr<Document> m_transformSourceDocument;
1329 1335
1330 int m_docID; // A unique document identifier used for things like document-s pecific mapped attributes. 1336 int m_docID; // A unique document identifier used for things like document-s pecific mapped attributes.
1331 1337
1332 String m_xmlEncoding; 1338 String m_xmlEncoding;
1333 String m_xmlVersion; 1339 String m_xmlVersion;
1334 unsigned m_xmlStandalone : 2; 1340 unsigned m_xmlStandalone : 2;
1335 unsigned m_hasXMLDeclaration : 1; 1341 unsigned m_hasXMLDeclaration : 1;
1336 1342
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
1519 trackForDebugging(); 1525 trackForDebugging();
1520 #endif 1526 #endif
1521 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); 1527 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter);
1522 } 1528 }
1523 1529
1524 Node* eventTargetNodeForDocument(Document*); 1530 Node* eventTargetNodeForDocument(Document*);
1525 1531
1526 } // namespace WebCore 1532 } // namespace WebCore
1527 1533
1528 #endif // Document_h 1534 #endif // Document_h
OLDNEW
« 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