| 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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 public: | 34 public: |
| 35 explicit RenderInline(Element*); | 35 explicit RenderInline(Element*); |
| 36 virtual void trace(Visitor*) override; | 36 virtual void trace(Visitor*) override; |
| 37 | 37 |
| 38 static RenderInline* createAnonymous(Document*); | 38 static RenderInline* createAnonymous(Document*); |
| 39 | 39 |
| 40 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } | 40 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } |
| 41 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } | 41 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } |
| 42 | 42 |
| 43 // If you have a RenderInline, use firstChild or lastChild instead. | 43 // If you have a RenderInline, use firstChild or lastChild instead. |
| 44 void slowFirstChild() const WTF_DELETED_FUNCTION; | 44 void slowFirstChild() const = delete; |
| 45 void slowLastChild() const WTF_DELETED_FUNCTION; | 45 void slowLastChild() const = delete; |
| 46 | 46 |
| 47 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0)
override; | 47 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0)
override; |
| 48 | 48 |
| 49 Element* node() const { return toElement(RenderBoxModelObject::node()); } | 49 Element* node() const { return toElement(RenderBoxModelObject::node()); } |
| 50 | 50 |
| 51 virtual LayoutUnit marginLeft() const override final; | 51 virtual LayoutUnit marginLeft() const override final; |
| 52 virtual LayoutUnit marginRight() const override final; | 52 virtual LayoutUnit marginRight() const override final; |
| 53 virtual LayoutUnit marginTop() const override final; | 53 virtual LayoutUnit marginTop() const override final; |
| 54 virtual LayoutUnit marginBottom() const override final; | 54 virtual LayoutUnit marginBottom() const override final; |
| 55 virtual LayoutUnit marginBefore(const RenderStyle* otherStyle = 0) const ove
rride final; | 55 virtual LayoutUnit marginBefore(const RenderStyle* otherStyle = 0) const ove
rride final; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 | 181 |
| 182 RenderObjectChildList m_children; | 182 RenderObjectChildList m_children; |
| 183 RenderLineBoxList m_lineBoxes; // All of the line boxes created for this i
nline flow. For example, <i>Hello<br>world.</i> will have two <i> line boxes. | 183 RenderLineBoxList m_lineBoxes; // All of the line boxes created for this i
nline flow. For example, <i>Hello<br>world.</i> will have two <i> line boxes. |
| 184 }; | 184 }; |
| 185 | 185 |
| 186 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderInline, isRenderInline()); | 186 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderInline, isRenderInline()); |
| 187 | 187 |
| 188 } // namespace blink | 188 } // namespace blink |
| 189 | 189 |
| 190 #endif // RenderInline_h | 190 #endif // RenderInline_h |
| OLD | NEW |