Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/imports/HTMLImportTreeRoot.cpp |
| diff --git a/third_party/WebKit/Source/core/html/imports/HTMLImportTreeRoot.cpp b/third_party/WebKit/Source/core/html/imports/HTMLImportTreeRoot.cpp |
| index f7a71f993d71727dbfe8c1324dd2a310b29ecdce..5c5a32851e45a17d58986de68c1ec64a06721ad5 100644 |
| --- a/third_party/WebKit/Source/core/html/imports/HTMLImportTreeRoot.cpp |
| +++ b/third_party/WebKit/Source/core/html/imports/HTMLImportTreeRoot.cpp |
| @@ -87,6 +87,16 @@ HTMLImportChild* HTMLImportTreeRoot::find(const KURL& url) const |
| return nullptr; |
| } |
| +HTMLImportChild* HTMLImportTreeRoot::find(const Document& document) const |
|
dominicc (has gone to gerrit)
2016/08/22 08:07:36
Per above, don't think you need this.
kochi
2016/08/22 12:02:00
Removed!
|
| +{ |
| + for (size_t i = 0; i < m_imports.size(); ++i) { |
| + HTMLImportChild* candidate = m_imports[i].get(); |
| + if (candidate->document() == document) |
| + return candidate; |
| + } |
| + return nullptr; |
| +} |
| + |
| void HTMLImportTreeRoot::recalcTimerFired(TimerBase*) |
| { |
| DCHECK(m_document); |