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 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. |
7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 #include "RenderScrollbarPart.h" | 66 #include "RenderScrollbarPart.h" |
67 #include "RenderTableCaption.h" | 67 #include "RenderTableCaption.h" |
68 #include "RenderTableCell.h" | 68 #include "RenderTableCell.h" |
69 #include "RenderTableCol.h" | 69 #include "RenderTableCol.h" |
70 #include "RenderTableRow.h" | 70 #include "RenderTableRow.h" |
71 #include "RenderTheme.h" | 71 #include "RenderTheme.h" |
72 #include "RenderView.h" | 72 #include "RenderView.h" |
73 #include "Settings.h" | 73 #include "Settings.h" |
74 #include "StyleResolver.h" | 74 #include "StyleResolver.h" |
75 #include "TransformState.h" | 75 #include "TransformState.h" |
76 #include "WebCoreMemoryInstrumentation.h" | |
77 #include "htmlediting.h" | 76 #include "htmlediting.h" |
78 #include <algorithm> | 77 #include <algorithm> |
79 #include <stdio.h> | 78 #include <stdio.h> |
80 #include <wtf/RefCountedLeakCounter.h> | 79 #include <wtf/RefCountedLeakCounter.h> |
81 #include <wtf/UnusedParam.h> | 80 #include <wtf/UnusedParam.h> |
82 | 81 |
83 #if ENABLE(SVG) | 82 #if ENABLE(SVG) |
84 #include "RenderSVGResourceContainer.h" | 83 #include "RenderSVGResourceContainer.h" |
85 #include "SVGRenderSupport.h" | 84 #include "SVGRenderSupport.h" |
86 #endif | 85 #endif |
(...skipping 2981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3068 bool RenderObject::canHaveGeneratedChildren() const | 3067 bool RenderObject::canHaveGeneratedChildren() const |
3069 { | 3068 { |
3070 return canHaveChildren(); | 3069 return canHaveChildren(); |
3071 } | 3070 } |
3072 | 3071 |
3073 bool RenderObject::canBeReplacedWithInlineRunIn() const | 3072 bool RenderObject::canBeReplacedWithInlineRunIn() const |
3074 { | 3073 { |
3075 return true; | 3074 return true; |
3076 } | 3075 } |
3077 | 3076 |
3078 void RenderObject::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const | |
3079 { | |
3080 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Rendering)
; | |
3081 info.addMember(m_style, "style"); | |
3082 info.addWeakPointer(m_node); | |
3083 info.addWeakPointer(m_parent); | |
3084 info.addWeakPointer(m_previous); | |
3085 info.addWeakPointer(m_next); | |
3086 | |
3087 info.setCustomAllocation(true); | |
3088 } | |
3089 | |
3090 #if ENABLE(SVG) | 3077 #if ENABLE(SVG) |
3091 | 3078 |
3092 RenderSVGResourceContainer* RenderObject::toRenderSVGResourceContainer() | 3079 RenderSVGResourceContainer* RenderObject::toRenderSVGResourceContainer() |
3093 { | 3080 { |
3094 ASSERT_NOT_REACHED(); | 3081 ASSERT_NOT_REACHED(); |
3095 return 0; | 3082 return 0; |
3096 } | 3083 } |
3097 | 3084 |
3098 void RenderObject::setNeedsBoundariesUpdate() | 3085 void RenderObject::setNeedsBoundariesUpdate() |
3099 { | 3086 { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3166 { | 3153 { |
3167 if (object1) { | 3154 if (object1) { |
3168 const WebCore::RenderObject* root = object1; | 3155 const WebCore::RenderObject* root = object1; |
3169 while (root->parent()) | 3156 while (root->parent()) |
3170 root = root->parent(); | 3157 root = root->parent(); |
3171 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3158 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
3172 } | 3159 } |
3173 } | 3160 } |
3174 | 3161 |
3175 #endif | 3162 #endif |
OLD | NEW |