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

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

Issue 550363004: Factor painting code out of RenderBox into a new class called BoxPainter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix Created 6 years, 3 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
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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 void nextSibling() const WTF_DELETED_FUNCTION; 283 void nextSibling() const WTF_DELETED_FUNCTION;
284 void previousSibling() const WTF_DELETED_FUNCTION; 284 void previousSibling() const WTF_DELETED_FUNCTION;
285 285
286 // Note MSVC will only pack members if they have identical types, hence we u se unsigned instead of bool here. 286 // Note MSVC will only pack members if they have identical types, hence we u se unsigned instead of bool here.
287 unsigned m_column : 29; 287 unsigned m_column : 29;
288 unsigned m_cellWidthChanged : 1; 288 unsigned m_cellWidthChanged : 1;
289 unsigned m_hasColSpan: 1; 289 unsigned m_hasColSpan: 1;
290 unsigned m_hasRowSpan: 1; 290 unsigned m_hasRowSpan: 1;
291 int m_intrinsicPaddingBefore; 291 int m_intrinsicPaddingBefore;
292 int m_intrinsicPaddingAfter; 292 int m_intrinsicPaddingAfter;
293
294 BoxPainter m_boxPainter;
Stephen Chennney 2014/09/09 16:14:37 Ditto.
chrishtr 2014/09/09 16:55:45 See above.
293 }; 295 };
294 296
295 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableCell, isTableCell()); 297 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableCell, isTableCell());
296 298
297 inline RenderTableCell* RenderTableCell::previousCell() const 299 inline RenderTableCell* RenderTableCell::previousCell() const
298 { 300 {
299 return toRenderTableCell(RenderObject::previousSibling()); 301 return toRenderTableCell(RenderObject::previousSibling());
300 } 302 }
301 303
302 inline RenderTableCell* RenderTableCell::nextCell() const 304 inline RenderTableCell* RenderTableCell::nextCell() const
303 { 305 {
304 return toRenderTableCell(RenderObject::nextSibling()); 306 return toRenderTableCell(RenderObject::nextSibling());
305 } 307 }
306 308
307 inline RenderTableCell* RenderTableRow::firstCell() const 309 inline RenderTableCell* RenderTableRow::firstCell() const
308 { 310 {
309 ASSERT(children() == virtualChildren()); 311 ASSERT(children() == virtualChildren());
310 return toRenderTableCell(children()->firstChild()); 312 return toRenderTableCell(children()->firstChild());
311 } 313 }
312 314
313 inline RenderTableCell* RenderTableRow::lastCell() const 315 inline RenderTableCell* RenderTableRow::lastCell() const
314 { 316 {
315 ASSERT(children() == virtualChildren()); 317 ASSERT(children() == virtualChildren());
316 return toRenderTableCell(children()->lastChild()); 318 return toRenderTableCell(children()->lastChild());
317 } 319 }
318 320
319 } // namespace blink 321 } // namespace blink
320 322
321 #endif // RenderTableCell_h 323 #endif // RenderTableCell_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698