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

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

Issue 423093002: Oilpan: Prepare to move RenderObject and RenderObjectChildList to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add more trace Created 6 years, 4 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, 2009, 2013 Apple Inc. All rights reserv ed. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2013 Apple Inc. All rights reserv ed.
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 unsigned m_end; 57 unsigned m_end;
58 }; 58 };
59 59
60 class RenderTableCell; 60 class RenderTableCell;
61 class RenderTableRow; 61 class RenderTableRow;
62 62
63 class RenderTableSection FINAL : public RenderBox { 63 class RenderTableSection FINAL : public RenderBox {
64 public: 64 public:
65 RenderTableSection(Element*); 65 RenderTableSection(Element*);
66 virtual ~RenderTableSection(); 66 virtual ~RenderTableSection();
67 virtual void trace(Visitor*) OVERRIDE;
67 68
68 RenderTableRow* firstRow() const; 69 RenderTableRow* firstRow() const;
69 RenderTableRow* lastRow() const; 70 RenderTableRow* lastRow() const;
70 71
71 const RenderObjectChildList* children() const { return &m_children; } 72 const RenderObjectChildList* children() const { return &m_children; }
72 RenderObjectChildList* children() { return &m_children; } 73 RenderObjectChildList* children() { return &m_children; }
73 74
74 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OV ERRIDE; 75 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OV ERRIDE;
75 76
76 virtual int firstLineBoxBaseline() const OVERRIDE; 77 virtual int firstLineBoxBaseline() const OVERRIDE;
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 int m_outerBorderStart; 291 int m_outerBorderStart;
291 int m_outerBorderEnd; 292 int m_outerBorderEnd;
292 int m_outerBorderBefore; 293 int m_outerBorderBefore;
293 int m_outerBorderAfter; 294 int m_outerBorderAfter;
294 295
295 bool m_needsCellRecalc; 296 bool m_needsCellRecalc;
296 297
297 // This HashSet holds the overflowing cells for faster painting. 298 // This HashSet holds the overflowing cells for faster painting.
298 // If we have more than gMaxAllowedOverflowingCellRatio * total cells, it wi ll be empty 299 // If we have more than gMaxAllowedOverflowingCellRatio * total cells, it wi ll be empty
299 // and m_forceSlowPaintPathWithOverflowingCell will be set to save memory. 300 // and m_forceSlowPaintPathWithOverflowingCell will be set to save memory.
300 HashSet<RenderTableCell*> m_overflowingCells; 301 HashSet<RenderTableCell*> m_overflowingCells;
haraken 2014/08/01 17:48:21 You'll need to take care of these raw pointers. I
301 bool m_forceSlowPaintPathWithOverflowingCell; 302 bool m_forceSlowPaintPathWithOverflowingCell;
302 303
303 bool m_hasMultipleCellLevels; 304 bool m_hasMultipleCellLevels;
304 305
305 // This map holds the collapsed border values for cells with collapsed borde rs. 306 // This map holds the collapsed border values for cells with collapsed borde rs.
306 // It is held at RenderTableSection level to spare memory consumption by tab le cells. 307 // It is held at RenderTableSection level to spare memory consumption by tab le cells.
307 HashMap<pair<const RenderTableCell*, int>, CollapsedBorderValue > m_cellsCol lapsedBorders; 308 HashMap<pair<const RenderTableCell*, int>, CollapsedBorderValue > m_cellsCol lapsedBorders;
haraken 2014/08/01 17:48:21 Ditto. This should be a hash map of Members.
308 }; 309 };
309 310
310 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableSection, isTableSection()); 311 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableSection, isTableSection());
311 312
312 } // namespace blink 313 } // namespace blink
313 314
314 #endif // RenderTableSection_h 315 #endif // RenderTableSection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698