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

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

Issue 273783003: Don't schedule invalidations when attributes changed if not needed or incorrect. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added test. Created 6 years, 7 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/Element.h
diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h
index da5786fbbe97d0a6fb29a64b07b1db197598a40b..9fc4d1961116a1b362769cbf20f6571d3a58db93 100644
--- a/Source/core/dom/Element.h
+++ b/Source/core/dom/Element.h
@@ -816,6 +816,7 @@ inline bool Node::hasClass() const
inline Node::InsertionNotificationRequest Node::insertedInto(ContainerNode* insertionPoint)
{
+ ASSERT(!childNeedsStyleInvalidation() && !needsStyleInvalidation());
esprehn 2014/05/08 05:19:06 ditto
chrishtr 2014/05/08 05:29:18 Done.
ASSERT(insertionPoint->inDocument() || isContainerNode());
if (insertionPoint->inDocument())
setFlag(InDocumentFlag);

Powered by Google App Engine
This is Rietveld 408576698