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

Side by Side Diff: Source/core/rendering/RenderTableCell.h

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderObject.cpp ('k') | Source/core/rendering/RenderTableSection.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 * (C) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@kde.org)
5 * (C) 1999 Lars Knoll (knoll@kde.org) 5 * (C) 1999 Lars Knoll (knoll@kde.org)
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) 6 * (C) 1999 Antti Koivisto (koivisto@kde.org)
7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2013 Apple Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 return style()->borderStart(); 204 return style()->borderStart();
205 } 205 }
206 206
207 const BorderValue& borderAdjoiningCellAfter(const RenderTableCell* cell) 207 const BorderValue& borderAdjoiningCellAfter(const RenderTableCell* cell)
208 { 208 {
209 ASSERT_UNUSED(cell, table()->cellBefore(cell) == this); 209 ASSERT_UNUSED(cell, table()->cellBefore(cell) == this);
210 // FIXME: https://webkit.org/b/79272 - Add support for mixed directional ity at the cell level. 210 // FIXME: https://webkit.org/b/79272 - Add support for mixed directional ity at the cell level.
211 return style()->borderEnd(); 211 return style()->borderEnd();
212 } 212 }
213 213
214 #ifndef NDEBUG 214 #if ENABLE(ASSERT)
215 bool isFirstOrLastCellInRow() const 215 bool isFirstOrLastCellInRow() const
216 { 216 {
217 return !table()->cellAfter(this) || !table()->cellBefore(this); 217 return !table()->cellAfter(this) || !table()->cellBefore(this);
218 } 218 }
219 #endif 219 #endif
220 protected: 220 protected:
221 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE; 221 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE;
222 virtual void computePreferredLogicalWidths() OVERRIDE; 222 virtual void computePreferredLogicalWidths() OVERRIDE;
223 223
224 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect& container Rect) const OVERRIDE; 224 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect& container Rect) const OVERRIDE;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 312
313 inline RenderTableCell* RenderTableRow::lastCell() const 313 inline RenderTableCell* RenderTableRow::lastCell() const
314 { 314 {
315 ASSERT(children() == virtualChildren()); 315 ASSERT(children() == virtualChildren());
316 return toRenderTableCell(children()->lastChild()); 316 return toRenderTableCell(children()->lastChild());
317 } 317 }
318 318
319 } // namespace WebCore 319 } // namespace WebCore
320 320
321 #endif // RenderTableCell_h 321 #endif // RenderTableCell_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderObject.cpp ('k') | Source/core/rendering/RenderTableSection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698