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

Unified Diff: Source/core/dom/Document.h

Issue 219993002: Avoid calling markAncestorsWithChildNeedsStyleRecalc() constantly in childrenChanged (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix accessibility test and causing recalcs on removal Created 6 years, 9 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: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index 0cfd6712f3b22b0ea5b416b9d4c44deea5559b68..5c59078dd0f35b1fa38040addf9f31bcf27c3c22 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -648,6 +648,7 @@ public:
void scheduleRenderTreeUpdate();
bool hasPendingForcedStyleRecalc() const;
+ bool hasPendingStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle::StyleRecalcPending; }
void registerNodeList(LiveNodeListBase*);
void unregisterNodeList(LiveNodeListBase*);
@@ -1117,8 +1118,6 @@ private:
void updateFocusAppearanceTimerFired(Timer<Document>*);
void updateBaseURL();
- bool hasPendingStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle::StyleRecalcPending; }
-
void executeScriptsWaitingForResourcesIfNeeded();
PassRefPtr<NodeList> handleZeroPadding(const HitTestRequest&, HitTestResult&) const;

Powered by Google App Engine
This is Rietveld 408576698