| 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 Apple Inc. All rights reserv
ed. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv
ed. |
| 5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) | 5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) |
| 6 * Copyright (C) 2010 Daniel Bates (dbates@intudata.com) | 6 * Copyright (C) 2010 Daniel Bates (dbates@intudata.com) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1060 { | 1060 { |
| 1061 } | 1061 } |
| 1062 | 1062 |
| 1063 void RenderListMarker::destroy() | 1063 void RenderListMarker::destroy() |
| 1064 { | 1064 { |
| 1065 if (m_image) | 1065 if (m_image) |
| 1066 m_image->removeClient(this); | 1066 m_image->removeClient(this); |
| 1067 RenderBox::destroy(); | 1067 RenderBox::destroy(); |
| 1068 } | 1068 } |
| 1069 | 1069 |
| 1070 void RenderListMarker::trace(Visitor* visitor) | |
| 1071 { | |
| 1072 visitor->trace(m_listItem); | |
| 1073 RenderBox::trace(visitor); | |
| 1074 } | |
| 1075 | |
| 1076 RenderListMarker* RenderListMarker::createAnonymous(RenderListItem* item) | 1070 RenderListMarker* RenderListMarker::createAnonymous(RenderListItem* item) |
| 1077 { | 1071 { |
| 1078 Document& document = item->document(); | 1072 Document& document = item->document(); |
| 1079 RenderListMarker* renderer = new RenderListMarker(item); | 1073 RenderListMarker* renderer = new RenderListMarker(item); |
| 1080 renderer->setDocumentForAnonymous(&document); | 1074 renderer->setDocumentForAnonymous(&document); |
| 1081 return renderer; | 1075 return renderer; |
| 1082 } | 1076 } |
| 1083 | 1077 |
| 1084 void RenderListMarker::styleWillChange(StyleDifference diff, const RenderStyle&
newStyle) | 1078 void RenderListMarker::styleWillChange(StyleDifference diff, const RenderStyle&
newStyle) |
| 1085 { | 1079 { |
| (...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1645 if (style()) { | 1639 if (style()) { |
| 1646 // Reuse the current margins. Otherwise resetting the margins to initial
values | 1640 // Reuse the current margins. Otherwise resetting the margins to initial
values |
| 1647 // would trigger unnecessary layout. | 1641 // would trigger unnecessary layout. |
| 1648 newStyle->setMarginStart(style()->marginStart()); | 1642 newStyle->setMarginStart(style()->marginStart()); |
| 1649 newStyle->setMarginEnd(style()->marginRight()); | 1643 newStyle->setMarginEnd(style()->marginRight()); |
| 1650 } | 1644 } |
| 1651 setStyle(newStyle.release()); | 1645 setStyle(newStyle.release()); |
| 1652 } | 1646 } |
| 1653 | 1647 |
| 1654 } // namespace blink | 1648 } // namespace blink |
| OLD | NEW |