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

Unified Diff: Source/core/css/resolver/StyleResolver.cpp

Issue 396343002: Remove unneeded ASSERT in StyleResolver::styleSharingList (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/StyleResolver.cpp
diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp
index a2e009773b7f8ef38631f1b08188933fc01b15ad..4cbde273b420259d12a0e7fe9e750f365439bc9a 100644
--- a/Source/core/css/resolver/StyleResolver.cpp
+++ b/Source/core/css/resolver/StyleResolver.cpp
@@ -333,7 +333,6 @@ StyleSharingList& StyleResolver::styleSharingList()
// We never put things at depth 0 into the list since that's only the <html> element
// and it has no siblings or cousins to share with.
unsigned depth = std::max(std::min(m_styleSharingDepth, styleSharingMaxDepth), 1u) - 1u;
- ASSERT(depth >= 0);
if (!m_styleSharingLists[depth])
m_styleSharingLists[depth] = adoptPtr(new StyleSharingList);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698