| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 typedef WTF::ListHashSet<RenderBox*, 16> TrackedRendererListHashSet; | 46 typedef WTF::ListHashSet<RenderBox*, 16> TrackedRendererListHashSet; |
| 47 typedef WTF::HashMap<const RenderBlock*, OwnPtr<TrackedRendererListHashSet> > Tr
ackedDescendantsMap; | 47 typedef WTF::HashMap<const RenderBlock*, OwnPtr<TrackedRendererListHashSet> > Tr
ackedDescendantsMap; |
| 48 typedef WTF::HashMap<const RenderBox*, OwnPtr<HashSet<RenderBlock*> > > TrackedC
ontainerMap; | 48 typedef WTF::HashMap<const RenderBox*, OwnPtr<HashSet<RenderBlock*> > > TrackedC
ontainerMap; |
| 49 typedef Vector<WordMeasurement, 64> WordMeasurements; | 49 typedef Vector<WordMeasurement, 64> WordMeasurements; |
| 50 | 50 |
| 51 enum ContainingBlockState { NewContainingBlock, SameContainingBlock }; | 51 enum ContainingBlockState { NewContainingBlock, SameContainingBlock }; |
| 52 | 52 |
| 53 class RenderBlock : public RenderBox { | 53 class RenderBlock : public RenderBox { |
| 54 public: | 54 public: |
| 55 virtual void destroy() override; | 55 virtual void destroy() override; |
| 56 virtual void trace(Visitor*) override; | |
| 57 friend class LineLayoutState; | 56 friend class LineLayoutState; |
| 58 | 57 |
| 59 protected: | 58 protected: |
| 60 explicit RenderBlock(ContainerNode*); | 59 explicit RenderBlock(ContainerNode*); |
| 61 virtual ~RenderBlock(); | 60 virtual ~RenderBlock(); |
| 62 | 61 |
| 63 public: | 62 public: |
| 64 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } | 63 RenderObject* firstChild() const { ASSERT(children() == virtualChildren());
return children()->firstChild(); } |
| 65 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } | 64 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r
eturn children()->lastChild(); } |
| 66 | 65 |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 // FIXME: This is temporary as we move code that accesses block flow | 397 // FIXME: This is temporary as we move code that accesses block flow |
| 399 // member variables out of RenderBlock and into RenderBlockFlow. | 398 // member variables out of RenderBlock and into RenderBlockFlow. |
| 400 friend class RenderBlockFlow; | 399 friend class RenderBlockFlow; |
| 401 }; | 400 }; |
| 402 | 401 |
| 403 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); | 402 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
| 404 | 403 |
| 405 } // namespace blink | 404 } // namespace blink |
| 406 | 405 |
| 407 #endif // RenderBlock_h | 406 #endif // RenderBlock_h |
| OLD | NEW |