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

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

Issue 133993004: Fix mac bot specific performance regression by reverting set of patches (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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/dom/StyleEngine.cpp ('k') | Source/wtf/TreeNode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLImport.cpp
diff --git a/Source/core/html/HTMLImport.cpp b/Source/core/html/HTMLImport.cpp
index b500511750976a6e770184945ad10db77cd65911..c136788fad9fa3ca6f26a3ea432e618fa558537c 100644
--- a/Source/core/html/HTMLImport.cpp
+++ b/Source/core/html/HTMLImport.cpp
@@ -64,7 +64,7 @@ void HTMLImport::appendChild(HTMLImport* child)
inline bool HTMLImport::isBlockedFromCreatingDocumentByPredecessors() const
{
ASSERT(isBlockedFromCreatingDocument());
- HTMLImport* elder = previousSibling();
+ HTMLImport* elder = previous();
return (elder && !elder->isDone());
}
@@ -74,7 +74,7 @@ bool HTMLImport::isBlockedFromRunningScriptByPredecessors() const
if (!parent)
return false;
- for (HTMLImport* sibling = parent->firstChild(); sibling; sibling = sibling->nextSibling()) {
+ for (HTMLImport* sibling = parent->firstChild(); sibling; sibling = sibling->next()) {
if (sibling == this)
break;
if (sibling->isBlockingFollowersFromRunningScript())
@@ -183,7 +183,7 @@ bool HTMLImport::unblock(HTMLImport* import)
return false;
import->unblockFromCreatingDocument();
- for (HTMLImport* child = import->firstChild(); child; child = child->nextSibling()) {
+ for (HTMLImport* child = import->firstChild(); child; child = child->next()) {
if (!unblock(child))
return false;
}
@@ -197,7 +197,7 @@ bool HTMLImport::unblock(HTMLImport* import)
void HTMLImport::block(HTMLImport* import)
{
- for (HTMLImport* child = import; child; child = traverseNext(*child, import))
+ for (HTMLImport* child = import; child; child = traverseNext(child, import))
child->blockFromRunningScript();
}
@@ -205,7 +205,7 @@ void HTMLImport::blockPredecessorsOf(HTMLImport* child)
{
ASSERT(child->parent() == this);
- for (HTMLImport* sibling = lastChild(); sibling; sibling = sibling->previousSibling()) {
+ for (HTMLImport* sibling = lastChild(); sibling; sibling = sibling->previous()) {
if (sibling == child)
break;
HTMLImport::block(sibling);
« no previous file with comments | « Source/core/dom/StyleEngine.cpp ('k') | Source/wtf/TreeNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698