| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2007 David Smith (catfish.man@gmail.com) | 4 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r
ights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 enum ContainingBlockState { NewContainingBlock, SameContainingBlock }; | 54 enum ContainingBlockState { NewContainingBlock, SameContainingBlock }; |
| 55 | 55 |
| 56 class RenderBlock : public RenderBox { | 56 class RenderBlock : public RenderBox { |
| 57 public: | 57 public: |
| 58 friend class LineLayoutState; | 58 friend class LineLayoutState; |
| 59 | 59 |
| 60 protected: | 60 protected: |
| 61 explicit RenderBlock(ContainerNode*); | 61 explicit RenderBlock(ContainerNode*); |
| 62 virtual ~RenderBlock(); | 62 virtual ~RenderBlock(); |
| 63 virtual void trace(Visitor*) OVERRIDE; | |
| 64 | 63 |
| 65 public: | 64 public: |
| 66 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } | 65 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } |
| 67 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } | 66 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } |
| 68 | 67 |
| 69 // If you have a RenderBlock, use firstChild or lastChild instead. | 68 // If you have a RenderBlock, use firstChild or lastChild instead. |
| 70 void slowFirstChild() const WTF_DELETED_FUNCTION; | 69 void slowFirstChild() const WTF_DELETED_FUNCTION; |
| 71 void slowLastChild() const WTF_DELETED_FUNCTION; | 70 void slowLastChild() const WTF_DELETED_FUNCTION; |
| 72 | 71 |
| 73 const RenderObjectChildList* children() const { return &m_children; } | 72 const RenderObjectChildList* children() const { return &m_children; } |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 // FIXME: This is temporary as we move code that accesses block flow | 505 // FIXME: This is temporary as we move code that accesses block flow |
| 507 // member variables out of RenderBlock and into RenderBlockFlow. | 506 // member variables out of RenderBlock and into RenderBlockFlow. |
| 508 friend class RenderBlockFlow; | 507 friend class RenderBlockFlow; |
| 509 }; | 508 }; |
| 510 | 509 |
| 511 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); | 510 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
| 512 | 511 |
| 513 } // namespace blink | 512 } // namespace blink |
| 514 | 513 |
| 515 #endif // RenderBlock_h | 514 #endif // RenderBlock_h |
| OLD | NEW |