OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
3 * | 3 * |
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
5 * | 5 * |
6 * Other contributors: | 6 * Other contributors: |
7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 #include "ScrollbarTheme.h" | 98 #include "ScrollbarTheme.h" |
99 #include "ScrollingCoordinator.h" | 99 #include "ScrollingCoordinator.h" |
100 #include "Settings.h" | 100 #include "Settings.h" |
101 #include "ShadowRoot.h" | 101 #include "ShadowRoot.h" |
102 #include "SourceGraphic.h" | 102 #include "SourceGraphic.h" |
103 #include "StylePropertySet.h" | 103 #include "StylePropertySet.h" |
104 #include "StyleResolver.h" | 104 #include "StyleResolver.h" |
105 #include "TextStream.h" | 105 #include "TextStream.h" |
106 #include "TransformationMatrix.h" | 106 #include "TransformationMatrix.h" |
107 #include "TranslateTransformOperation.h" | 107 #include "TranslateTransformOperation.h" |
108 #include "WebCoreMemoryInstrumentation.h" | |
109 #include <wtf/MemoryInstrumentationVector.h> | |
110 #include <wtf/StdLibExtras.h> | 108 #include <wtf/StdLibExtras.h> |
111 #include <wtf/UnusedParam.h> | 109 #include <wtf/UnusedParam.h> |
112 #include <wtf/text/CString.h> | 110 #include <wtf/text/CString.h> |
113 | 111 |
114 #if ENABLE(SVG) | 112 #if ENABLE(SVG) |
115 #include "SVGNames.h" | 113 #include "SVGNames.h" |
116 #endif | 114 #endif |
117 | 115 |
118 #if USE(3D_GRAPHICS) | 116 #if USE(3D_GRAPHICS) |
119 #include "CustomFilterGlobalContext.h" | 117 #include "CustomFilterGlobalContext.h" |
(...skipping 6092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6212 filterInfo->setRenderer(0); | 6210 filterInfo->setRenderer(0); |
6213 } | 6211 } |
6214 | 6212 |
6215 void RenderLayer::filterNeedsRepaint() | 6213 void RenderLayer::filterNeedsRepaint() |
6216 { | 6214 { |
6217 renderer()->node()->setNeedsStyleRecalc(SyntheticStyleChange); | 6215 renderer()->node()->setNeedsStyleRecalc(SyntheticStyleChange); |
6218 if (renderer()->view()) | 6216 if (renderer()->view()) |
6219 renderer()->repaint(); | 6217 renderer()->repaint(); |
6220 } | 6218 } |
6221 | 6219 |
6222 void RenderLayer::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const | |
6223 { | |
6224 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::Rendering); | |
6225 ScrollableArea::reportMemoryUsage(memoryObjectInfo); | |
6226 info.addWeakPointer(m_renderer); | |
6227 info.addWeakPointer(m_parent); | |
6228 info.addWeakPointer(m_previous); | |
6229 info.addWeakPointer(m_next); | |
6230 info.addWeakPointer(m_first); | |
6231 info.addWeakPointer(m_last); | |
6232 info.addMember(m_hBar, "hBar"); | |
6233 info.addMember(m_vBar, "vBar"); | |
6234 info.addMember(m_posZOrderList, "posZOrderList"); | |
6235 info.addMember(m_negZOrderList, "negZOrderList"); | |
6236 info.addMember(m_normalFlowList, "normalFlowList"); | |
6237 info.addMember(m_clipRectsCache, "clipRectsCache"); | |
6238 info.addMember(m_marquee, "marquee"); | |
6239 info.addMember(m_transform, "transform"); | |
6240 info.addWeakPointer(m_reflection); | |
6241 info.addWeakPointer(m_scrollCorner); | |
6242 info.addWeakPointer(m_resizer); | |
6243 info.addMember(m_backing, "backing"); | |
6244 info.setCustomAllocation(true); | |
6245 } | |
6246 | |
6247 } // namespace WebCore | 6220 } // namespace WebCore |
6248 | 6221 |
6249 #ifndef NDEBUG | 6222 #ifndef NDEBUG |
6250 void showLayerTree(const WebCore::RenderLayer* layer) | 6223 void showLayerTree(const WebCore::RenderLayer* layer) |
6251 { | 6224 { |
6252 if (!layer) | 6225 if (!layer) |
6253 return; | 6226 return; |
6254 | 6227 |
6255 if (WebCore::Frame* frame = layer->renderer()->frame()) { | 6228 if (WebCore::Frame* frame = layer->renderer()->frame()) { |
6256 WTF::String output = externalRepresentation(frame, WebCore::RenderAsText
ShowAllLayers | WebCore::RenderAsTextShowLayerNesting | WebCore::RenderAsTextSho
wCompositedLayers | WebCore::RenderAsTextShowAddresses | WebCore::RenderAsTextSh
owIDAndClass | WebCore::RenderAsTextDontUpdateLayout | WebCore::RenderAsTextShow
LayoutState); | 6229 WTF::String output = externalRepresentation(frame, WebCore::RenderAsText
ShowAllLayers | WebCore::RenderAsTextShowLayerNesting | WebCore::RenderAsTextSho
wCompositedLayers | WebCore::RenderAsTextShowAddresses | WebCore::RenderAsTextSh
owIDAndClass | WebCore::RenderAsTextDontUpdateLayout | WebCore::RenderAsTextShow
LayoutState); |
6257 fprintf(stderr, "%s\n", output.utf8().data()); | 6230 fprintf(stderr, "%s\n", output.utf8().data()); |
6258 } | 6231 } |
6259 } | 6232 } |
6260 | 6233 |
6261 void showLayerTree(const WebCore::RenderObject* renderer) | 6234 void showLayerTree(const WebCore::RenderObject* renderer) |
6262 { | 6235 { |
6263 if (!renderer) | 6236 if (!renderer) |
6264 return; | 6237 return; |
6265 showLayerTree(renderer->enclosingLayer()); | 6238 showLayerTree(renderer->enclosingLayer()); |
6266 } | 6239 } |
6267 #endif | 6240 #endif |
OLD | NEW |