Index: Source/core/html/imports/HTMLImport.cpp |
diff --git a/Source/core/html/imports/HTMLImport.cpp b/Source/core/html/imports/HTMLImport.cpp |
index 3717e8bbecfc6b7afe2cea48a791454c6680c07e..4e4dda227c2211a9f4b37c5c594ddf0c3a031666 100644 |
--- a/Source/core/html/imports/HTMLImport.cpp |
+++ b/Source/core/html/imports/HTMLImport.cpp |
@@ -36,6 +36,14 @@ |
namespace WebCore { |
+HTMLImport* HTMLImport::root() |
+{ |
+ HTMLImport* i = this; |
+ while (i->parent()) |
+ i = i->parent(); |
+ return i; |
+} |
+ |
void HTMLImport::appendChild(HTMLImport* child) |
{ |
TreeNode<HTMLImport>::appendChild(child); |
@@ -56,15 +64,8 @@ void HTMLImport::stateDidChange() |
} |
} |
-void HTMLImport::stateWillChange() |
-{ |
- root()->scheduleRecalcState(); |
-} |
- |
void HTMLImport::recalcTreeState(HTMLImport* root) |
{ |
- ASSERT(root == root->root()); |
- |
HashMap<HTMLImport*, HTMLImportState> snapshot; |
Vector<HTMLImport*> updated; |