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

Unified Diff: sky/engine/core/html/parser/HTMLConstructionSite.h

Issue 729713003: Remove parserInsertBefore. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/dom/ContainerNode.cpp ('k') | sky/engine/core/html/parser/HTMLConstructionSite.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/parser/HTMLConstructionSite.h
diff --git a/sky/engine/core/html/parser/HTMLConstructionSite.h b/sky/engine/core/html/parser/HTMLConstructionSite.h
index c5cfe926cbc4aebb134196875d58b0baea4abb47..aa6eb390867769fd0f37508000e89bbd39ce0b85 100644
--- a/sky/engine/core/html/parser/HTMLConstructionSite.h
+++ b/sky/engine/core/html/parser/HTMLConstructionSite.h
@@ -53,7 +53,6 @@ public:
Operation operation;
RefPtr<ContainerNode> parent;
- RefPtr<Node> nextChild;
RefPtr<Node> child;
bool selfClosing;
};
@@ -153,12 +152,10 @@ private:
{
}
- void append(PassRefPtr<ContainerNode> newParent, PassRefPtr<Node> newNextChild, const String& newString, WhitespaceMode newWhitespaceMode)
+ void append(PassRefPtr<ContainerNode> newParent, const String& newString, WhitespaceMode newWhitespaceMode)
{
ASSERT(!parent || parent == newParent);
parent = newParent;
- ASSERT(!nextChild || nextChild == newNextChild);
- nextChild = newNextChild;
stringBuilder.append(newString);
whitespaceMode = std::min(whitespaceMode, newWhitespaceMode);
}
@@ -167,7 +164,6 @@ private:
{
std::swap(whitespaceMode, other.whitespaceMode);
parent.swap(other.parent);
- nextChild.swap(other.nextChild);
stringBuilder.swap(other.stringBuilder);
}
« no previous file with comments | « sky/engine/core/dom/ContainerNode.cpp ('k') | sky/engine/core/html/parser/HTMLConstructionSite.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698