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

Side by Side Diff: third_party/WebKit/Source/core/dom/Attr.cpp

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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2012 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2012 Apple Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 } 116 }
117 117
118 RawPtr<Node> Attr::cloneNode(bool /*deep*/) 118 RawPtr<Node> Attr::cloneNode(bool /*deep*/)
119 { 119 {
120 UseCounter::count(document(), UseCounter::AttrCloneNode); 120 UseCounter::count(document(), UseCounter::AttrCloneNode);
121 return new Attr(document(), m_name, value()); 121 return new Attr(document(), m_name, value());
122 } 122 }
123 123
124 void Attr::detachFromElementWithValue(const AtomicString& value) 124 void Attr::detachFromElementWithValue(const AtomicString& value)
125 { 125 {
126 ASSERT(m_element); 126 DCHECK(m_element);
127 m_standaloneValueOrAttachedLocalName = value; 127 m_standaloneValueOrAttachedLocalName = value;
128 m_element = nullptr; 128 m_element = nullptr;
129 } 129 }
130 130
131 void Attr::attachToElement(Element* element, const AtomicString& attachedLocalNa me) 131 void Attr::attachToElement(Element* element, const AtomicString& attachedLocalNa me)
132 { 132 {
133 ASSERT(!m_element); 133 DCHECK(!m_element);
134 m_element = element; 134 m_element = element;
135 m_standaloneValueOrAttachedLocalName = attachedLocalName; 135 m_standaloneValueOrAttachedLocalName = attachedLocalName;
136 } 136 }
137 137
138 DEFINE_TRACE(Attr) 138 DEFINE_TRACE(Attr)
139 { 139 {
140 visitor->trace(m_element); 140 visitor->trace(m_element);
141 Node::trace(visitor); 141 Node::trace(visitor);
142 } 142 }
143 143
144 } // namespace blink 144 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ActiveDOMObject.cpp ('k') | third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698