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 14 matching lines...) Expand all Loading... |
25 #include "config.h" | 25 #include "config.h" |
26 #include "RenderListMarker.h" | 26 #include "RenderListMarker.h" |
27 | 27 |
28 #include "CachedImage.h" | 28 #include "CachedImage.h" |
29 #include "Document.h" | 29 #include "Document.h" |
30 #include "Font.h" | 30 #include "Font.h" |
31 #include "GraphicsContext.h" | 31 #include "GraphicsContext.h" |
32 #include "RenderLayer.h" | 32 #include "RenderLayer.h" |
33 #include "RenderListItem.h" | 33 #include "RenderListItem.h" |
34 #include "RenderView.h" | 34 #include "RenderView.h" |
35 #include "WebCoreMemoryInstrumentation.h" | |
36 #include <wtf/text/StringBuilder.h> | 35 #include <wtf/text/StringBuilder.h> |
37 #include <wtf/unicode/CharacterNames.h> | 36 #include <wtf/unicode/CharacterNames.h> |
38 | 37 |
39 using namespace std; | 38 using namespace std; |
40 using namespace WTF; | 39 using namespace WTF; |
41 using namespace Unicode; | 40 using namespace Unicode; |
42 | 41 |
43 namespace WebCore { | 42 namespace WebCore { |
44 | 43 |
45 const int cMarkerPadding = 7; | 44 const int cMarkerPadding = 7; |
(...skipping 1784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1830 LayoutRect rect(0, root->selectionTop() - y(), width(), root->selectionHeigh
t()); | 1829 LayoutRect rect(0, root->selectionTop() - y(), width(), root->selectionHeigh
t()); |
1831 | 1830 |
1832 if (clipToVisibleContent) | 1831 if (clipToVisibleContent) |
1833 computeRectForRepaint(repaintContainer, rect); | 1832 computeRectForRepaint(repaintContainer, rect); |
1834 else | 1833 else |
1835 rect = localToContainerQuad(FloatRect(rect), repaintContainer).enclosing
BoundingBox(); | 1834 rect = localToContainerQuad(FloatRect(rect), repaintContainer).enclosing
BoundingBox(); |
1836 | 1835 |
1837 return rect; | 1836 return rect; |
1838 } | 1837 } |
1839 | 1838 |
1840 void RenderListMarker::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) con
st | |
1841 { | |
1842 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Rendering)
; | |
1843 RenderBox::reportMemoryUsage(memoryObjectInfo); | |
1844 info.addMember(m_text, "text"); | |
1845 info.addMember(m_image, "image"); | |
1846 info.addMember(m_listItem, "listItem"); | |
1847 } | |
1848 | |
1849 } // namespace WebCore | 1839 } // namespace WebCore |
OLD | NEW |