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

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

Issue 2473743003: Call Element::rebuildLayoutTree from Document::updateStyle directly (Closed)
Patch Set: Mirror setChildNeedsStyleRecalc and markAncestorsWithNeedsReattachLayoutTree with setChildNeedsReat… Created 3 years, 10 months 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 8a26e38bde88c7f6809dcd81070e0e62cd5c169b..a5ffcec88c0e2e380a024eb03bad9928c7738e14 100644
--- a/third_party/WebKit/Source/core/dom/Element.h
+++ b/third_party/WebKit/Source/core/dom/Element.h
@@ -417,7 +417,7 @@ class CORE_EXPORT Element : public ContainerNode {
virtual LayoutObject* createLayoutObject(const ComputedStyle&);
virtual bool layoutObjectIsNeeded(const ComputedStyle&);
void recalcStyle(StyleRecalcChange, Text* nextTextSibling = nullptr);
- StyleRecalcChange rebuildLayoutTree();
+ void rebuildLayoutTree();
void pseudoStateChanged(CSSSelector::PseudoType);
void setAnimationStyleChange(bool);
void clearAnimationStyleChange();
@@ -836,6 +836,8 @@ class CORE_EXPORT Element : public ContainerNode {
PassRefPtr<ComputedStyle> propagateInheritedProperties(StyleRecalcChange);
StyleRecalcChange recalcOwnStyle(StyleRecalcChange, Text*);
+ void reattachPseudoElementLayoutTree(PseudoId);
+ void rebuildShadowRootLayoutTree();
inline void checkForEmptyStyleChange();
void updatePseudoElement(PseudoId, StyleRecalcChange);

Powered by Google App Engine
This is Rietveld 408576698