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

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

Issue 653023002: ASSERTION FAILED: factor > 0 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index 47c62a809afdd5c88b0cf10b0e9bf2bcc220baaa..f3316e29e58bfa019d6780d96364be73f2372462 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -2743,7 +2743,9 @@ inline void Element::updateId(const AtomicString& oldId, const AtomicString& new
inline void Element::updateId(TreeScope& scope, const AtomicString& oldId, const AtomicString& newId)
{
- ASSERT(isInTreeScope());
+ if (!isInTreeScope())
+ return;
+
ASSERT(oldId != newId);
if (!oldId.isEmpty())

Powered by Google App Engine
This is Rietveld 408576698