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 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1065 | 1065 |
1066 RenderListMarker::~RenderListMarker() | 1066 RenderListMarker::~RenderListMarker() |
1067 { | 1067 { |
1068 if (m_image) | 1068 if (m_image) |
1069 m_image->removeClient(this); | 1069 m_image->removeClient(this); |
1070 } | 1070 } |
1071 | 1071 |
1072 RenderListMarker* RenderListMarker::createAnonymous(RenderListItem* item) | 1072 RenderListMarker* RenderListMarker::createAnonymous(RenderListItem* item) |
1073 { | 1073 { |
1074 Document* document = item->document(); | 1074 Document* document = item->document(); |
1075 RenderListMarker* renderer = new (document->renderArena()) RenderListMarker(
item); | 1075 RenderListMarker* renderer = new RenderListMarker(item); |
1076 renderer->setDocumentForAnonymous(document); | 1076 renderer->setDocumentForAnonymous(document); |
1077 return renderer; | 1077 return renderer; |
1078 } | 1078 } |
1079 | 1079 |
1080 void RenderListMarker::styleWillChange(StyleDifference diff, const RenderStyle*
newStyle) | 1080 void RenderListMarker::styleWillChange(StyleDifference diff, const RenderStyle*
newStyle) |
1081 { | 1081 { |
1082 if (style() && (newStyle->listStylePosition() != style()->listStylePosition(
) || newStyle->listStyleType() != style()->listStyleType())) | 1082 if (style() && (newStyle->listStylePosition() != style()->listStylePosition(
) || newStyle->listStyleType() != style()->listStyleType())) |
1083 setNeedsLayoutAndPrefWidthsRecalc(); | 1083 setNeedsLayoutAndPrefWidthsRecalc(); |
1084 | 1084 |
1085 RenderBox::styleWillChange(diff, newStyle); | 1085 RenderBox::styleWillChange(diff, newStyle); |
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1850 void RenderListMarker::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) con
st | 1850 void RenderListMarker::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) con
st |
1851 { | 1851 { |
1852 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Rendering)
; | 1852 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Rendering)
; |
1853 RenderBox::reportMemoryUsage(memoryObjectInfo); | 1853 RenderBox::reportMemoryUsage(memoryObjectInfo); |
1854 info.addMember(m_text, "text"); | 1854 info.addMember(m_text, "text"); |
1855 info.addMember(m_image, "image"); | 1855 info.addMember(m_image, "image"); |
1856 info.addMember(m_listItem, "listItem"); | 1856 info.addMember(m_listItem, "listItem"); |
1857 } | 1857 } |
1858 | 1858 |
1859 } // namespace WebCore | 1859 } // namespace WebCore |
OLD | NEW |