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

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

Issue 2476163002: Fixed perf regression by removing tree traversal for text sibling. (Closed)
Patch Set: 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
Index: third_party/WebKit/Source/core/dom/Element.h
diff --git a/third_party/WebKit/Source/core/dom/Element.h b/third_party/WebKit/Source/core/dom/Element.h
index ba2fd82cb0395d9d890ffe824fec400cf3f59792..65d3aea6f75efbdbe305968cd1e7133c9f5976b1 100644
--- a/third_party/WebKit/Source/core/dom/Element.h
+++ b/third_party/WebKit/Source/core/dom/Element.h
@@ -399,7 +399,7 @@ class CORE_EXPORT Element : public ContainerNode {
virtual LayoutObject* createLayoutObject(const ComputedStyle&);
virtual bool layoutObjectIsNeeded(const ComputedStyle&);
- void recalcStyle(StyleRecalcChange);
+ void recalcStyle(StyleRecalcChange, Text* nextTextSibling = nullptr);
StyleRecalcChange rebuildLayoutTree();
void pseudoStateChanged(CSSSelector::PseudoType);
void setAnimationStyleChange(bool);
@@ -822,7 +822,7 @@ class CORE_EXPORT Element : public ContainerNode {
// and returns the new style. Otherwise, returns null.
PassRefPtr<ComputedStyle> propagateInheritedProperties(StyleRecalcChange);
- StyleRecalcChange recalcOwnStyle(StyleRecalcChange);
+ StyleRecalcChange recalcOwnStyle(StyleRecalcChange, Text*);
inline void checkForEmptyStyleChange();
void updatePseudoElement(PseudoId, StyleRecalcChange);

Powered by Google App Engine
This is Rietveld 408576698