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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutGrid.h

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: 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) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 313
314 int baselinePosition( 314 int baselinePosition(
315 FontBaseline, 315 FontBaseline,
316 bool firstLine, 316 bool firstLine,
317 LineDirectionMode, 317 LineDirectionMode,
318 LinePositionMode = PositionOnContainingLine) const override; 318 LinePositionMode = PositionOnContainingLine) const override;
319 int firstLineBoxBaseline() const override; 319 int firstLineBoxBaseline() const override;
320 int inlineBlockBaseline(LineDirectionMode) const override; 320 int inlineBlockBaseline(LineDirectionMode) const override;
321 bool isInlineBaselineAlignedChild(const LayoutBox* child) const; 321 bool isInlineBaselineAlignedChild(const LayoutBox* child) const;
322 322
323 #if ENABLE(ASSERT) 323 #if DCHECK_IS_ON()
324 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection, 324 bool tracksAreWiderThanMinTrackBreadth(GridTrackSizingDirection,
325 GridSizingData&) const; 325 GridSizingData&) const;
326 #endif 326 #endif
327 327
328 LayoutUnit gridGapForDirection(GridTrackSizingDirection, 328 LayoutUnit gridGapForDirection(GridTrackSizingDirection,
329 SizingOperation) const; 329 SizingOperation) const;
330 LayoutUnit guttersSize(const Grid&, 330 LayoutUnit guttersSize(const Grid&,
331 GridTrackSizingDirection, 331 GridTrackSizingDirection,
332 size_t startLine, 332 size_t startLine,
333 size_t span, 333 size_t span,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 bool hasAutoRepeatEmptyTracks(GridTrackSizingDirection) const; 391 bool hasAutoRepeatEmptyTracks(GridTrackSizingDirection) const;
392 bool isEmptyAutoRepeatTrack(GridTrackSizingDirection, size_t) const; 392 bool isEmptyAutoRepeatTrack(GridTrackSizingDirection, size_t) const;
393 393
394 OrderedTrackIndexSet* autoRepeatEmptyTracks(GridTrackSizingDirection) const; 394 OrderedTrackIndexSet* autoRepeatEmptyTracks(GridTrackSizingDirection) const;
395 395
396 OrderIterator& orderIterator() { return m_orderIterator; } 396 OrderIterator& orderIterator() { return m_orderIterator; }
397 397
398 void setNeedsItemsPlacement(bool); 398 void setNeedsItemsPlacement(bool);
399 bool needsItemsPlacement() const { return m_needsItemsPlacement; }; 399 bool needsItemsPlacement() const { return m_needsItemsPlacement; };
400 400
401 #if ENABLE(ASSERT) 401 #if DCHECK_IS_ON()
402 bool hasAnyGridItemPaintOrder() const; 402 bool hasAnyGridItemPaintOrder() const;
403 #endif 403 #endif
404 404
405 private: 405 private:
406 friend class GridIterator; 406 friend class GridIterator;
407 407
408 OrderIterator m_orderIterator; 408 OrderIterator m_orderIterator;
409 409
410 int m_smallestColumnStart{0}; 410 int m_smallestColumnStart{0};
411 int m_smallestRowStart{0}; 411 int m_smallestRowStart{0};
(...skipping 24 matching lines...) Expand all
436 LayoutUnit m_maxContentHeight{-1}; 436 LayoutUnit m_maxContentHeight{-1};
437 437
438 Optional<bool> m_hasDefiniteLogicalHeight; 438 Optional<bool> m_hasDefiniteLogicalHeight;
439 }; 439 };
440 440
441 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); 441 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid());
442 442
443 } // namespace blink 443 } // namespace blink
444 444
445 #endif // LayoutGrid_h 445 #endif // LayoutGrid_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698