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

Side by Side Diff: third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.h

Issue 1854423002: ASSERT -> {DCHECK|DCHECK_XX}, ENABLE(ASSERT) -> DCHECK_IS_ON() in dom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark svg/as-image/svg-nested.html crash on win Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All Rights Reserved. 2 * Copyright (C) 2012 Google Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void notifyObserversInternal(const AtomicString& id); 52 void notifyObserversInternal(const AtomicString& id);
53 53
54 typedef HeapHashSet<Member<IdTargetObserver>> ObserverSet; 54 typedef HeapHashSet<Member<IdTargetObserver>> ObserverSet;
55 typedef HeapHashMap<StringImpl*, Member<ObserverSet>> IdToObserverSetMap; 55 typedef HeapHashMap<StringImpl*, Member<ObserverSet>> IdToObserverSetMap;
56 IdToObserverSetMap m_registry; 56 IdToObserverSetMap m_registry;
57 Member<ObserverSet> m_notifyingObserversInSet; 57 Member<ObserverSet> m_notifyingObserversInSet;
58 }; 58 };
59 59
60 inline void IdTargetObserverRegistry::notifyObservers(const AtomicString& id) 60 inline void IdTargetObserverRegistry::notifyObservers(const AtomicString& id)
61 { 61 {
62 ASSERT(!m_notifyingObserversInSet); 62 DCHECK(!m_notifyingObserversInSet);
63 if (id.isEmpty() || m_registry.isEmpty()) 63 if (id.isEmpty() || m_registry.isEmpty())
64 return; 64 return;
65 IdTargetObserverRegistry::notifyObserversInternal(id); 65 IdTargetObserverRegistry::notifyObserversInternal(id);
66 } 66 }
67 67
68 } // namespace blink 68 } // namespace blink
69 69
70 #endif // IdTargetObserverRegistry_h 70 #endif // IdTargetObserverRegistry_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/IconURL.cpp ('k') | third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698