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

Unified Diff: Source/core/html/imports/HTMLImportsController.cpp

Issue 234063004: Refactoring: Get rid of HTMLImportRoot. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 | « Source/core/html/imports/HTMLImportsController.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/imports/HTMLImportsController.cpp
diff --git a/Source/core/html/imports/HTMLImportsController.cpp b/Source/core/html/imports/HTMLImportsController.cpp
index cee8d3ac5f39fd6ec56ece4d2d2b8136e3ebd553..42cd73986446a86f3ef96ead626ea902b9045353 100644
--- a/Source/core/html/imports/HTMLImportsController.cpp
+++ b/Source/core/html/imports/HTMLImportsController.cpp
@@ -50,7 +50,8 @@ void HTMLImportsController::provideTo(Document& master)
}
HTMLImportsController::HTMLImportsController(Document& master)
- : m_master(&master)
+ : HTMLImport(HTMLImport::Sync)
+ , m_master(&master)
, m_recalcTimer(this, &HTMLImportsController::recalcTimerFired)
{
recalcTreeState(this); // This recomputes initial state.
@@ -144,11 +145,6 @@ LocalFrame* HTMLImportsController::frame() const
return m_master->frame();
}
-HTMLImportRoot* HTMLImportsController::root()
-{
- return this;
-}
-
Document* HTMLImportsController::document() const
{
return m_master;
@@ -179,6 +175,11 @@ bool HTMLImportsController::isDone() const
return !m_master->parsing() && m_master->styleEngine()->haveStylesheetsLoaded();
}
+void HTMLImportsController::stateWillChange()
+{
+ scheduleRecalcState();
+}
+
void HTMLImportsController::stateDidChange()
{
HTMLImport::stateDidChange();
« no previous file with comments | « Source/core/html/imports/HTMLImportsController.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698