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

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

Issue 547823002: Track reasons for |Node::SetNeedsStyleRecalc| (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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/Node.h
diff --git a/Source/core/dom/Node.h b/Source/core/dom/Node.h
index 98ea05cb5beb6899d4cedf83dd752c80eb693edb..3d287830c9498e3e10e7280cd2d53549ba74f90b 100644
--- a/Source/core/dom/Node.h
+++ b/Source/core/dom/Node.h
@@ -28,6 +28,7 @@
#include "bindings/core/v8/ExceptionStatePlaceholder.h"
#include "core/dom/MutationObserver.h"
#include "core/dom/SimulatedClickOptions.h"
+#include "core/dom/StyleChangeReason.h"
#include "core/dom/TreeScope.h"
#include "core/dom/TreeShared.h"
#include "core/editing/EditingBoundary.h"
@@ -354,7 +355,7 @@ public:
void setChildNeedsStyleRecalc() { setFlag(ChildNeedsStyleRecalcFlag); }
void clearChildNeedsStyleRecalc() { clearFlag(ChildNeedsStyleRecalcFlag); }
- void setNeedsStyleRecalc(StyleChangeType);
+ void setNeedsStyleRecalc(StyleChangeReason, StyleChangeType);
pdr. 2014/09/06 22:36:27 Do we actually need both StyleChangeReason and Sty
kouhei (in TOK) 2014/09/06 23:10:34 Hmm... this is a hard question. I think we should
void clearNeedsStyleRecalc();
bool childNeedsDistributionRecalc() const { return getFlag(ChildNeedsDistributionRecalcFlag); }

Powered by Google App Engine
This is Rietveld 408576698