Chromium Code Reviews| 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..544319855ba7e83825adc1b59f854c6575530968 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::isPreceding(HTMLImport* import) |
|
dominicc (has gone to gerrit)
2014/04/18 00:56:26
Maybe "precedes"?
this->precedes(that)
seems una
Hajime Morrita
2014/04/18 01:48:33
Let me take precedes() here.
|
| { |
| - 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(). |