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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 }; | 53 }; |
54 | 54 |
55 static_assert(sizeof(RenderInline) == sizeof(SameSizeAsRenderInline), "RenderInl
ine should stay small"); | 55 static_assert(sizeof(RenderInline) == sizeof(SameSizeAsRenderInline), "RenderInl
ine should stay small"); |
56 | 56 |
57 RenderInline::RenderInline(Element* element) | 57 RenderInline::RenderInline(Element* element) |
58 : RenderBoxModelObject(element) | 58 : RenderBoxModelObject(element) |
59 { | 59 { |
60 setChildrenInline(true); | 60 setChildrenInline(true); |
61 } | 61 } |
62 | 62 |
63 void RenderInline::trace(Visitor* visitor) | |
64 { | |
65 visitor->trace(m_children); | |
66 RenderBoxModelObject::trace(visitor); | |
67 } | |
68 | |
69 RenderInline* RenderInline::createAnonymous(Document* document) | 63 RenderInline* RenderInline::createAnonymous(Document* document) |
70 { | 64 { |
71 RenderInline* renderer = new RenderInline(0); | 65 RenderInline* renderer = new RenderInline(0); |
72 renderer->setDocumentForAnonymous(document); | 66 renderer->setDocumentForAnonymous(document); |
73 return renderer; | 67 return renderer; |
74 } | 68 } |
75 | 69 |
76 void RenderInline::willBeDestroyed() | 70 void RenderInline::willBeDestroyed() |
77 { | 71 { |
78 #if ENABLE(ASSERT) | 72 #if ENABLE(ASSERT) |
(...skipping 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1458 } | 1452 } |
1459 | 1453 |
1460 void RenderInline::invalidateDisplayItemClients(DisplayItemList* displayItemList
) const | 1454 void RenderInline::invalidateDisplayItemClients(DisplayItemList* displayItemList
) const |
1461 { | 1455 { |
1462 RenderBoxModelObject::invalidateDisplayItemClients(displayItemList); | 1456 RenderBoxModelObject::invalidateDisplayItemClients(displayItemList); |
1463 for (InlineFlowBox* box = firstLineBox(); box; box = box->nextLineBox()) | 1457 for (InlineFlowBox* box = firstLineBox(); box; box = box->nextLineBox()) |
1464 displayItemList->invalidate(box->displayItemClient()); | 1458 displayItemList->invalidate(box->displayItemClient()); |
1465 } | 1459 } |
1466 | 1460 |
1467 } // namespace blink | 1461 } // namespace blink |
OLD | NEW |