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

Side by Side Diff: third_party/WebKit/Source/core/layout/ng/ng_inline_node.cc

Issue 2754723004: Replace RELEASE_ASSERT with CHECK in core/layout/ (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_inline_node.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/layout/ng/ng_inline_node.h" 5 #include "core/layout/ng/ng_inline_node.h"
6 6
7 #include "core/layout/LayoutBlockFlow.h" 7 #include "core/layout/LayoutBlockFlow.h"
8 #include "core/layout/LayoutObject.h" 8 #include "core/layout/LayoutObject.h"
9 #include "core/layout/LayoutText.h" 9 #include "core/layout/LayoutText.h"
10 #include "core/layout/ng/ng_bidi_paragraph.h" 10 #include "core/layout/ng/ng_bidi_paragraph.h"
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 NGLayoutInputNode::trace(visitor); 360 NGLayoutInputNode::trace(visitor);
361 } 361 }
362 362
363 NGLayoutInlineItemRange::NGLayoutInlineItemRange( 363 NGLayoutInlineItemRange::NGLayoutInlineItemRange(
364 Vector<NGLayoutInlineItem>* items, 364 Vector<NGLayoutInlineItem>* items,
365 unsigned start_index, 365 unsigned start_index,
366 unsigned end_index) 366 unsigned end_index)
367 : start_item_(&(*items)[start_index]), 367 : start_item_(&(*items)[start_index]),
368 size_(end_index - start_index), 368 size_(end_index - start_index),
369 start_index_(start_index) { 369 start_index_(start_index) {
370 RELEASE_ASSERT(start_index <= end_index && end_index <= items->size()); 370 CHECK_LE(start_index, end_index);
371 CHECK_LE(end_index, items->size());
371 } 372 }
372 373
373 } // namespace blink 374 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_inline_node.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698