| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |