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

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

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CORE_EXPORT Created 5 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: third_party/WebKit/Source/core/html/imports/HTMLImportsController.cpp
diff --git a/third_party/WebKit/Source/core/html/imports/HTMLImportsController.cpp b/third_party/WebKit/Source/core/html/imports/HTMLImportsController.cpp
index e3b7d2e37d9105cac90474b538863b3a3080291d..ed4b0771398b955942046daa3d4338e14d741280 100644
--- a/third_party/WebKit/Source/core/html/imports/HTMLImportsController.cpp
+++ b/third_party/WebKit/Source/core/html/imports/HTMLImportsController.cpp
@@ -89,6 +89,11 @@ void HTMLImportsController::dispose()
m_loaders.clear();
}
+HTMLImportTreeRoot* HTMLImportsController::root() const
+{
+ return m_root.get();
+}
+
static bool makesCycle(HTMLImport* parent, const KURL& url)
{
for (HTMLImport* ancestor = parent; ancestor; ancestor = ancestor->parent()) {
@@ -161,6 +166,16 @@ HTMLImportLoader* HTMLImportsController::createLoader()
return m_loaders.last().get();
}
+size_t HTMLImportsController::loaderCount() const
+{
+ return m_loaders.size();
+}
+
+HTMLImportLoader* HTMLImportsController::loaderAt(size_t i) const
+{
+ return m_loaders[i].get();
+}
+
HTMLImportLoader* HTMLImportsController::loaderFor(const Document& document) const
{
for (size_t i = 0; i < m_loaders.size(); ++i) {

Powered by Google App Engine
This is Rietveld 408576698