Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: Source/core/rendering/RenderObject.cpp

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderObject.h ('k') | Source/core/rendering/RenderReplaced.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderObject.h ('k') | Source/core/rendering/RenderReplaced.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698