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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 typedef Vector<WordMeasurement, 64> WordMeasurements; | 48 typedef Vector<WordMeasurement, 64> WordMeasurements; |
49 | 49 |
50 enum ContainingBlockState { NewContainingBlock, SameContainingBlock }; | 50 enum ContainingBlockState { NewContainingBlock, SameContainingBlock }; |
51 | 51 |
52 typedef WTF::HashMap<RenderBlock*, OwnPtr<ListHashSet<RenderInline*> > > Continu
ationOutlineTableMap; | 52 typedef WTF::HashMap<RenderBlock*, OwnPtr<ListHashSet<RenderInline*> > > Continu
ationOutlineTableMap; |
53 | 53 |
54 ContinuationOutlineTableMap* continuationOutlineTable(); | 54 ContinuationOutlineTableMap* continuationOutlineTable(); |
55 | 55 |
56 class RenderBlock : public RenderBox { | 56 class RenderBlock : public RenderBox { |
57 public: | 57 public: |
58 virtual void destroy() override; | |
59 virtual void trace(Visitor*) override; | |
60 friend class LineLayoutState; | 58 friend class LineLayoutState; |
61 | 59 |
62 protected: | 60 protected: |
63 explicit RenderBlock(ContainerNode*); | 61 explicit RenderBlock(ContainerNode*); |
64 virtual ~RenderBlock(); | 62 virtual ~RenderBlock(); |
65 | 63 |
66 public: | 64 public: |
67 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } | 65 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } |
68 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } | 66 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } |
69 | 67 |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 // FIXME: This is temporary as we move code that accesses block flow | 473 // FIXME: This is temporary as we move code that accesses block flow |
476 // member variables out of RenderBlock and into RenderBlockFlow. | 474 // member variables out of RenderBlock and into RenderBlockFlow. |
477 friend class RenderBlockFlow; | 475 friend class RenderBlockFlow; |
478 }; | 476 }; |
479 | 477 |
480 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); | 478 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
481 | 479 |
482 } // namespace blink | 480 } // namespace blink |
483 | 481 |
484 #endif // RenderBlock_h | 482 #endif // RenderBlock_h |
OLD | NEW |