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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObjectChildList.cpp

Issue 1471933002: Remove unneeded LayoutObjectChildList::setFirst/LastChild (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « third_party/WebKit/Source/core/layout/LayoutObjectChildList.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutObjectChildList.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObjectChildList.cpp b/third_party/WebKit/Source/core/layout/LayoutObjectChildList.cpp
index 5ff94c0687f7bee9a5afee40454484827ff54a23..a7cf9cc5bf59dc06639c977b5f20ffa57477c354 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObjectChildList.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObjectChildList.cpp
@@ -99,9 +99,9 @@ LayoutObject* LayoutObjectChildList::removeChildNode(LayoutObject* owner, Layout
oldChild->nextSibling()->setPreviousSibling(oldChild->previousSibling());
if (firstChild() == oldChild)
- setFirstChild(oldChild->nextSibling());
+ m_firstChild = oldChild->nextSibling();
if (lastChild() == oldChild)
- setLastChild(oldChild->previousSibling());
+ m_lastChild = oldChild->previousSibling();
oldChild->setPreviousSibling(nullptr);
oldChild->setNextSibling(nullptr);
@@ -135,7 +135,7 @@ void LayoutObjectChildList::insertChildNode(LayoutObject* owner, LayoutObject* n
newChild->setParent(owner);
if (firstChild() == beforeChild)
- setFirstChild(newChild);
+ m_firstChild = newChild;
if (beforeChild) {
LayoutObject* previousSibling = beforeChild->previousSibling();
@@ -148,7 +148,7 @@ void LayoutObjectChildList::insertChildNode(LayoutObject* owner, LayoutObject* n
if (lastChild())
lastChild()->setNextSibling(newChild);
newChild->setPreviousSibling(lastChild());
- setLastChild(newChild);
+ m_lastChild = newChild;
}
if (!owner->documentBeingDestroyed() && notifyLayoutObject) {
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObjectChildList.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698