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

Unified Diff: Source/core/html/HTMLImport.cpp

Issue 18467003: Refactoring: Introduce HTMLImport interface to form import tree. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added missing checks and a clearance. Created 7 years, 5 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/HTMLImport.h ('k') | Source/core/html/HTMLImportsController.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLImport.cpp
diff --git a/Source/core/loader/UniqueIdentifier.cpp b/Source/core/html/HTMLImport.cpp
similarity index 86%
copy from Source/core/loader/UniqueIdentifier.cpp
copy to Source/core/html/HTMLImport.cpp
index 0ad56563e3e214a67acd8c53decb085ad4250cb9..8e349be5c3a5688b9b61d29e9d15fb1a90672d44 100644
--- a/Source/core/loader/UniqueIdentifier.cpp
+++ b/Source/core/html/HTMLImport.cpp
@@ -29,16 +29,17 @@
*/
#include "config.h"
-#include "core/loader/UniqueIdentifier.h"
+#include "core/html/HTMLImport.h"
-namespace WebCore {
+#include "core/html/HTMLImportsController.h"
-static unsigned long s_uniqueIdentifier = 0;
+namespace WebCore {
-unsigned long createUniqueIdentifier()
+bool HTMLImport::haveChildrenLoaded()
{
- return ++s_uniqueIdentifier;
+ if (HTMLImportsController* controller = this->controller())
+ return controller->haveChildrenLoaded(this);
+ return true;
}
} // namespace WebCore
-
« no previous file with comments | « Source/core/html/HTMLImport.h ('k') | Source/core/html/HTMLImportsController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698