| 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) {
|
|
|