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, 2010 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2010 Apple Inc. All rights reserved. |
5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) | 5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) |
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 RenderBlock::willBeDestroyed(); | 76 RenderBlock::willBeDestroyed(); |
77 } | 77 } |
78 | 78 |
79 void RenderListItem::insertedIntoTree() | 79 void RenderListItem::insertedIntoTree() |
80 { | 80 { |
81 RenderBlock::insertedIntoTree(); | 81 RenderBlock::insertedIntoTree(); |
82 | 82 |
83 updateListMarkerNumbers(); | 83 updateListMarkerNumbers(); |
84 } | 84 } |
85 | 85 |
| 86 void RenderListItem::willBeRemovedFromTree() |
| 87 { |
| 88 RenderBlock::willBeRemovedFromTree(); |
| 89 |
| 90 updateListMarkerNumbers(); |
| 91 } |
| 92 |
86 static bool isList(Node* node) | 93 static bool isList(Node* node) |
87 { | 94 { |
88 return (node->hasTagName(ulTag) || node->hasTagName(olTag)); | 95 return (node->hasTagName(ulTag) || node->hasTagName(olTag)); |
89 } | 96 } |
90 | 97 |
91 static Node* enclosingList(const RenderListItem* listItem) | 98 static Node* enclosingList(const RenderListItem* listItem) |
92 { | 99 { |
93 Node* firstNode = 0; | 100 Node* firstNode = 0; |
94 | 101 |
95 for (const RenderObject* renderer = listItem->parent(); renderer; renderer =
renderer->parent()) { | 102 for (const RenderObject* renderer = listItem->parent(); renderer; renderer =
renderer->parent()) { |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 // assume that all the following ones have too. | 492 // assume that all the following ones have too. |
486 // This gives us the opportunity to stop here and avoid | 493 // This gives us the opportunity to stop here and avoid |
487 // marking the same nodes again. | 494 // marking the same nodes again. |
488 break; | 495 break; |
489 } | 496 } |
490 item->updateValue(); | 497 item->updateValue(); |
491 } | 498 } |
492 } | 499 } |
493 | 500 |
494 } // namespace WebCore | 501 } // namespace WebCore |
OLD | NEW |