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

Unified Diff: sky/engine/core/dom/Document.h

Issue 703593003: Move exports from Document to Module (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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: sky/engine/core/dom/Document.h
diff --git a/sky/engine/core/dom/Document.h b/sky/engine/core/dom/Document.h
index 3c7cd76af5ea3192dce967e74f3f9f7c4ed390cb..c75a8dea53163734419fc0d4fd4fe186c3802499 100644
--- a/sky/engine/core/dom/Document.h
+++ b/sky/engine/core/dom/Document.h
@@ -60,6 +60,7 @@
namespace blink {
+class AbstractModule;
class AnimationTimeline;
class Attr;
class CSSStyleDeclaration;
@@ -196,6 +197,9 @@ public:
Element* activeElement() const;
bool hasFocus() const;
+ AbstractModule* module() const { return m_module; }
+ void setModule(AbstractModule* module) { m_module = module; }
+
// DOM methods & attributes for Document
Length viewportDefaultMinWidth() const { return m_viewportDefaultMinWidth; }
@@ -342,9 +346,6 @@ public:
const KURL& url() const { return m_url; }
void setURL(const KURL&);
- ScriptValue exports() const { return m_exports; }
- void setExports(ScriptValue exports) { m_exports = exports; }
-
// To understand how these concepts relate to one another, please see the
// comments surrounding their declaration.
const KURL& baseURL() const { return m_baseURL; }
@@ -713,6 +714,8 @@ private:
DocumentLifecycle m_lifecycle;
+ AbstractModule* m_module;
+
bool m_hasNodesWithPlaceholderStyle;
bool m_evaluateMediaQueriesOnStyleRecalc;
@@ -765,8 +768,6 @@ private:
TextLinkColors m_textLinkColors;
- ScriptValue m_exports;
-
ReadyState m_readyState;
bool m_isParsing;

Powered by Google App Engine
This is Rietveld 408576698