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

Side by Side Diff: third_party/WebKit/Source/core/style/GridArea.h

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: m_domTreeVersion initialization Created 3 years, 11 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 m_endLine += offset; 126 m_endLine += offset;
127 127
128 ASSERT(m_startLine >= 0); 128 ASSERT(m_startLine >= 0);
129 ASSERT(m_endLine > 0); 129 ASSERT(m_endLine > 0);
130 } 130 }
131 131
132 private: 132 private:
133 enum GridSpanType { UntranslatedDefinite, TranslatedDefinite, Indefinite }; 133 enum GridSpanType { UntranslatedDefinite, TranslatedDefinite, Indefinite };
134 134
135 GridSpan(int startLine, int endLine, GridSpanType type) : m_type(type) { 135 GridSpan(int startLine, int endLine, GridSpanType type) : m_type(type) {
136 #if ENABLE(ASSERT) 136 #if DCHECK_IS_ON()
137 ASSERT(startLine < endLine); 137 ASSERT(startLine < endLine);
138 if (type == TranslatedDefinite) { 138 if (type == TranslatedDefinite) {
139 ASSERT(startLine >= 0); 139 ASSERT(startLine >= 0);
140 ASSERT(endLine > 0); 140 ASSERT(endLine > 0);
141 } 141 }
142 #endif 142 #endif
143 143
144 if (startLine >= 0) 144 if (startLine >= 0)
145 m_startLine = std::min(startLine, kGridMaxTracks - 1); 145 m_startLine = std::min(startLine, kGridMaxTracks - 1);
146 else 146 else
(...skipping 30 matching lines...) Expand all
177 177
178 GridSpan columns; 178 GridSpan columns;
179 GridSpan rows; 179 GridSpan rows;
180 }; 180 };
181 181
182 typedef HashMap<String, GridArea> NamedGridAreaMap; 182 typedef HashMap<String, GridArea> NamedGridAreaMap;
183 183
184 } // namespace blink 184 } // namespace blink
185 185
186 #endif // GridArea_h 186 #endif // GridArea_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/SVGPaintContext.cpp ('k') | third_party/WebKit/Source/core/svg/SVGDocumentExtensions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698