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

Unified Diff: Source/core/html/imports/HTMLImport.cpp

Issue 238923009: HTML Imports: No more BlockingDocumentCreation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased to ToT. Created 6 years, 8 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
« no previous file with comments | « Source/core/html/imports/HTMLImport.h ('k') | Source/core/html/imports/HTMLImportChild.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/imports/HTMLImport.cpp
diff --git a/Source/core/html/imports/HTMLImport.cpp b/Source/core/html/imports/HTMLImport.cpp
index 4e4dda227c2211a9f4b37c5c594ddf0c3a031666..96a23cca9f211e265dfb905177b61f454a54a5aa 100644
--- a/Source/core/html/imports/HTMLImport.cpp
+++ b/Source/core/html/imports/HTMLImport.cpp
@@ -44,9 +44,19 @@ HTMLImport* HTMLImport::root()
return i;
}
-void HTMLImport::appendChild(HTMLImport* child)
+bool HTMLImport::precedes(HTMLImport* import)
{
- TreeNode<HTMLImport>::appendChild(child);
+ for (HTMLImport* i = this; i; i = traverseNext(i)) {
+ if (i == import)
+ return true;
+ }
+
+ return false;
+}
+
+void HTMLImport::appendImport(HTMLImport* child)
+{
+ appendChild(child);
// This prevents HTML parser from going beyond the
// blockage line before the precise state is computed by recalcState().
« no previous file with comments | « Source/core/html/imports/HTMLImport.h ('k') | Source/core/html/imports/HTMLImportChild.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698