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

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

Issue 295513003: add 'slow' prefix to RenderObject's firstChild() / lastChild() methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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/RenderTableRow.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, 2009 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 67
68 // FIXME: These methods should return a RenderTableRow.
68 RenderObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); } 69 RenderObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); }
69 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r eturn children()->lastChild(); } 70 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r eturn children()->lastChild(); }
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;
77 78
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 // This map holds the collapsed border values for cells with collapsed borde rs. 307 // This map holds the collapsed border values for cells with collapsed borde rs.
307 // It is held at RenderTableSection level to spare memory consumption by tab le cells. 308 // It is held at RenderTableSection level to spare memory consumption by tab le cells.
308 HashMap<pair<const RenderTableCell*, int>, CollapsedBorderValue > m_cellsCol lapsedBorders; 309 HashMap<pair<const RenderTableCell*, int>, CollapsedBorderValue > m_cellsCol lapsedBorders;
309 }; 310 };
310 311
311 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableSection, isTableSection()); 312 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableSection, isTableSection());
312 313
313 } // namespace WebCore 314 } // namespace WebCore
314 315
315 #endif // RenderTableSection_h 316 #endif // RenderTableSection_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTableRow.cpp ('k') | Source/core/rendering/RenderTableSection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698