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

Unified Diff: Source/core/html/imports/HTMLImportLoader.h

Issue 274213003: HTML Imports: Make sure new imports being added to the "first child" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Ready to review Created 6 years, 7 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: Source/core/html/imports/HTMLImportLoader.h
diff --git a/Source/core/html/imports/HTMLImportLoader.h b/Source/core/html/imports/HTMLImportLoader.h
index a39f140493bdc54316b9663bdad7dcc75cbf7971..d498cc36c6480e1966695a2fafe7a0f8f06a7ab2 100644
--- a/Source/core/html/imports/HTMLImportLoader.h
+++ b/Source/core/html/imports/HTMLImportLoader.h
@@ -73,7 +73,9 @@ public:
Document* importedDocument() const;
void addImport(HTMLImportChild*);
void removeImport(HTMLImportChild*);
+ void moveToFirst(HTMLImportChild*);
HTMLImportChild* firstImport() const { return m_imports[0]; }
+ bool isFirstImport(HTMLImportChild* child) const { return m_imports.size() ? firstImport() == child : false; }
bool isDone() const { return m_state == StateLoaded || m_state == StateError; }
bool hasError() const { return m_state == StateError; }

Powered by Google App Engine
This is Rietveld 408576698