| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 protected: | 60 protected: |
| 61 explicit RenderBlock(ContainerNode*); | 61 explicit RenderBlock(ContainerNode*); |
| 62 virtual ~RenderBlock(); | 62 virtual ~RenderBlock(); |
| 63 | 63 |
| 64 public: | 64 public: |
| 65 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } | 65 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } |
| 66 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } | 66 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } |
| 67 | 67 |
| 68 // If you have a RenderBlock, use firstChild or lastChild instead. | 68 // If you have a RenderBlock, use firstChild or lastChild instead. |
| 69 void slowFirstChild() const WTF_DELETED_FUNCTION; | 69 void slowFirstChild() const = delete; |
| 70 void slowLastChild() const WTF_DELETED_FUNCTION; | 70 void slowLastChild() const = delete; |
| 71 | 71 |
| 72 const RenderObjectChildList* children() const { return &m_children; } | 72 const RenderObjectChildList* children() const { return &m_children; } |
| 73 RenderObjectChildList* children() { return &m_children; } | 73 RenderObjectChildList* children() { return &m_children; } |
| 74 | 74 |
| 75 bool beingDestroyed() const { return m_beingDestroyed; } | 75 bool beingDestroyed() const { return m_beingDestroyed; } |
| 76 | 76 |
| 77 // These two functions are overridden for inline-block. | 77 // These two functions are overridden for inline-block. |
| 78 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio
nMode = PositionOnContainingLine) const override final; | 78 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio
nMode = PositionOnContainingLine) const override final; |
| 79 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode
, LinePositionMode = PositionOnContainingLine) const override; | 79 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode
, LinePositionMode = PositionOnContainingLine) const override; |
| 80 | 80 |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 // FIXME: This is temporary as we move code that accesses block flow | 419 // FIXME: This is temporary as we move code that accesses block flow |
| 420 // member variables out of RenderBlock and into RenderBlockFlow. | 420 // member variables out of RenderBlock and into RenderBlockFlow. |
| 421 friend class RenderBlockFlow; | 421 friend class RenderBlockFlow; |
| 422 }; | 422 }; |
| 423 | 423 |
| 424 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); | 424 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
| 425 | 425 |
| 426 } // namespace blink | 426 } // namespace blink |
| 427 | 427 |
| 428 #endif // RenderBlock_h | 428 #endif // RenderBlock_h |
| OLD | NEW |