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

Side by Side Diff: third_party/WebKit/Source/core/dom/NodeRareData.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) 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com> 3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 { 74 {
75 if (!m_mutationObserverData) 75 if (!m_mutationObserverData)
76 m_mutationObserverData = NodeMutationObserverData::create(); 76 m_mutationObserverData = NodeMutationObserverData::create();
77 return *m_mutationObserverData; 77 return *m_mutationObserverData;
78 } 78 }
79 79
80 unsigned connectedSubframeCount() const { return m_connectedFrameCount; } 80 unsigned connectedSubframeCount() const { return m_connectedFrameCount; }
81 void incrementConnectedSubframeCount(); 81 void incrementConnectedSubframeCount();
82 void decrementConnectedSubframeCount() 82 void decrementConnectedSubframeCount()
83 { 83 {
84 ASSERT(m_connectedFrameCount); 84 DCHECK(m_connectedFrameCount);
85 --m_connectedFrameCount; 85 --m_connectedFrameCount;
86 } 86 }
87 87
88 bool hasElementFlag(ElementFlags mask) const { return m_elementFlags & mask; } 88 bool hasElementFlag(ElementFlags mask) const { return m_elementFlags & mask; }
89 void setElementFlag(ElementFlags mask, bool value) { m_elementFlags = (m_ele mentFlags & ~mask) | (-(int32_t)value & mask); } 89 void setElementFlag(ElementFlags mask, bool value) { m_elementFlags = (m_ele mentFlags & ~mask) | (-(int32_t)value & mask); }
90 void clearElementFlag(ElementFlags mask) { m_elementFlags &= ~mask; } 90 void clearElementFlag(ElementFlags mask) { m_elementFlags &= ~mask; }
91 91
92 bool hasRestyleFlag(DynamicRestyleFlags mask) const { return m_restyleFlags & mask; } 92 bool hasRestyleFlag(DynamicRestyleFlags mask) const { return m_restyleFlags & mask; }
93 void setRestyleFlag(DynamicRestyleFlags mask) { m_restyleFlags |= mask; RELE ASE_ASSERT(m_restyleFlags); } 93 void setRestyleFlag(DynamicRestyleFlags mask) { m_restyleFlags |= mask; RELE ASE_ASSERT(m_restyleFlags); }
94 bool hasRestyleFlags() const { return m_restyleFlags; } 94 bool hasRestyleFlags() const { return m_restyleFlags; }
(...skipping 24 matching lines...) Expand all
119 unsigned m_connectedFrameCount : ConnectedFrameCountBits; 119 unsigned m_connectedFrameCount : ConnectedFrameCountBits;
120 unsigned m_elementFlags : NumberOfElementFlags; 120 unsigned m_elementFlags : NumberOfElementFlags;
121 unsigned m_restyleFlags : NumberOfDynamicRestyleFlags; 121 unsigned m_restyleFlags : NumberOfDynamicRestyleFlags;
122 protected: 122 protected:
123 unsigned m_isElementRareData : 1; 123 unsigned m_isElementRareData : 1;
124 }; 124 };
125 125
126 } // namespace blink 126 } // namespace blink
127 127
128 #endif // NodeRareData_h 128 #endif // NodeRareData_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/NodeListsNodeData.h ('k') | third_party/WebKit/Source/core/dom/NodeTraversal.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698