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

Unified Diff: sky/engine/core/app/AbstractModule.cpp

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/app/AbstractModule.cpp
diff --git a/sky/engine/core/app/AbstractModule.cpp b/sky/engine/core/app/AbstractModule.cpp
index 23d7a11866e9c2387ad4711146a85b96137ddd5f..c99fa4b61b4c62682092e276acaf5cc2fc29ba49 100644
--- a/sky/engine/core/app/AbstractModule.cpp
+++ b/sky/engine/core/app/AbstractModule.cpp
@@ -13,9 +13,11 @@ AbstractModule::AbstractModule(ExecutionContext* context,
: ContextLifecycleObserver(context),
document_(document),
url_(url) {
+ document_->setModule(this);
}
AbstractModule::~AbstractModule() {
+ document_->setModule(nullptr);
}
ExecutionContext* AbstractModule::executionContext() const {

Powered by Google App Engine
This is Rietveld 408576698