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

Unified Diff: third_party/WebKit/Source/core/dom/Node.cpp

Issue 2476163002: Fixed perf regression by removing tree traversal for text sibling. (Closed)
Patch Set: Rebased Created 4 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/dom/Node.h ('k') | third_party/WebKit/Source/core/dom/StyleReattachData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index 8098447905d670f11e408c344c4b703a729d2ba7..6b5b78051c9a876a9411e17be024b52c2126fe9a 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -390,18 +390,6 @@ Node* Node::getRootNode(const GetRootNodeOptions& options) const {
: &treeRoot();
}
-Text* Node::nextTextSibling() const {
- for (Node* sibling = nextSibling();
- sibling &&
- (!sibling->isElementNode() || !toElement(sibling)->layoutObject());
- sibling = sibling->nextSibling()) {
- if (sibling->isTextNode()) {
- return toText(sibling);
- }
- }
- return nullptr;
-}
-
Node* Node::insertBefore(Node* newChild,
Node* refChild,
ExceptionState& exceptionState) {
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.h ('k') | third_party/WebKit/Source/core/dom/StyleReattachData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698