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(). |