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

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

Issue 2242743002: Make custom elements work in HTML imports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolve most comments Created 4 years, 4 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
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);

Powered by Google App Engine
This is Rietveld 408576698