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

Unified Diff: third_party/WebKit/Source/core/dom/StyleReattachData.h

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.cpp ('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/dom/StyleReattachData.h
diff --git a/third_party/WebKit/Source/core/dom/StyleReattachData.h b/third_party/WebKit/Source/core/dom/StyleReattachData.h
new file mode 100644
index 0000000000000000000000000000000000000000..9b5daad0b2856054081ea91950df396873f4cfc8
--- /dev/null
+++ b/third_party/WebKit/Source/core/dom/StyleReattachData.h
@@ -0,0 +1,20 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef StyleReattachData_h
+#define StyleReattachData_h
+
+namespace blink {
+
+struct StyleReattachData {
+ DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
+ DEFINE_INLINE_TRACE() { visitor->trace(nextTextSibling); }
+
+ RefPtr<ComputedStyle> computedStyle;
+ Member<Text> nextTextSibling;
+};
+
+} // namespace blink
+
+#endif // StyleReattachData_h
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698