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

Unified Diff: Source/core/css/invalidation/StyleInvalidator.cpp

Issue 201443011: Fix markAncestorsWithChildNeedsStyleInvalidation to actually mark only ancestors. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed comments from Ojan. 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
« no previous file with comments | « no previous file | Source/core/dom/Node.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/invalidation/StyleInvalidator.cpp
diff --git a/Source/core/css/invalidation/StyleInvalidator.cpp b/Source/core/css/invalidation/StyleInvalidator.cpp
index 710993a51aa685350679ffb4a04e75f74d696234..f3c7223abbb3f9ba984886a55c593994fd7c4594 100644
--- a/Source/core/css/invalidation/StyleInvalidator.cpp
+++ b/Source/core/css/invalidation/StyleInvalidator.cpp
@@ -18,10 +18,8 @@ namespace WebCore {
void StyleInvalidator::invalidate()
{
- if (Element* documentElement = m_document.documentElement()) {
- if (documentElement->childNeedsStyleInvalidation())
- invalidate(*documentElement);
- }
+ if (Element* documentElement = m_document.documentElement())
+ invalidate(*documentElement);
m_document.clearChildNeedsStyleInvalidation();
m_document.clearNeedsStyleInvalidation();
m_pendingInvalidationMap.clear();
« no previous file with comments | « no previous file | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698