OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999 Lars Knoll (knoll@kde.org) | 2 * (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Dirk Mueller (mueller@kde.org) | 3 * (C) 2000 Dirk Mueller (mueller@kde.org) |
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights 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 28 matching lines...) Expand all Loading... |
39 #include "RenderArena.h" | 39 #include "RenderArena.h" |
40 #include "RenderBR.h" | 40 #include "RenderBR.h" |
41 #include "RenderBlock.h" | 41 #include "RenderBlock.h" |
42 #include "RenderCombineText.h" | 42 #include "RenderCombineText.h" |
43 #include "RenderRubyRun.h" | 43 #include "RenderRubyRun.h" |
44 #include "RenderRubyText.h" | 44 #include "RenderRubyText.h" |
45 #include "RenderTheme.h" | 45 #include "RenderTheme.h" |
46 #include "Settings.h" | 46 #include "Settings.h" |
47 #include "SVGTextRunRenderingContext.h" | 47 #include "SVGTextRunRenderingContext.h" |
48 #include "Text.h" | 48 #include "Text.h" |
49 #include "WebCoreMemoryInstrumentation.h" | |
50 #include "break_lines.h" | 49 #include "break_lines.h" |
51 #include <wtf/text/CString.h> | 50 #include <wtf/text/CString.h> |
52 | 51 |
53 using namespace std; | 52 using namespace std; |
54 | 53 |
55 namespace WebCore { | 54 namespace WebCore { |
56 | 55 |
57 typedef WTF::HashMap<const InlineTextBox*, LayoutRect> InlineTextBoxOverflowMap; | 56 typedef WTF::HashMap<const InlineTextBox*, LayoutRect> InlineTextBoxOverflowMap; |
58 static InlineTextBoxOverflowMap* gTextBoxesWithOverflow; | 57 static InlineTextBoxOverflowMap* gTextBoxesWithOverflow; |
59 | 58 |
(...skipping 1560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1620 fputc(' ', stderr); | 1619 fputc(' ', stderr); |
1621 printedCharacters = fprintf(stderr, "\t%s %p", obj->renderName(), obj); | 1620 printedCharacters = fprintf(stderr, "\t%s %p", obj->renderName(), obj); |
1622 const int rendererCharacterOffset = 24; | 1621 const int rendererCharacterOffset = 24; |
1623 for (; printedCharacters < rendererCharacterOffset; printedCharacters++) | 1622 for (; printedCharacters < rendererCharacterOffset; printedCharacters++) |
1624 fputc(' ', stderr); | 1623 fputc(' ', stderr); |
1625 fprintf(stderr, "(%d,%d) \"%s\"\n", start(), start() + len(), value.utf8().d
ata()); | 1624 fprintf(stderr, "(%d,%d) \"%s\"\n", start(), start() + len(), value.utf8().d
ata()); |
1626 } | 1625 } |
1627 | 1626 |
1628 #endif | 1627 #endif |
1629 | 1628 |
1630 void InlineTextBox::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const | |
1631 { | |
1632 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::Rendering); | |
1633 InlineBox::reportMemoryUsage(memoryObjectInfo); | |
1634 info.addMember(m_prevTextBox, "prevTextBox"); | |
1635 info.addMember(m_nextTextBox, "nextTextBox"); | |
1636 } | |
1637 | |
1638 } // namespace WebCore | 1629 } // namespace WebCore |
OLD | NEW |