| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 #include "RenderLayerBacking.h" | 38 #include "RenderLayerBacking.h" |
| 39 #include "RenderLayerCompositor.h" | 39 #include "RenderLayerCompositor.h" |
| 40 #include "RenderNamedFlowThread.h" | 40 #include "RenderNamedFlowThread.h" |
| 41 #include "RenderSelectionInfo.h" | 41 #include "RenderSelectionInfo.h" |
| 42 #include "RenderWidget.h" | 42 #include "RenderWidget.h" |
| 43 #include "RenderWidgetProtector.h" | 43 #include "RenderWidgetProtector.h" |
| 44 #include "StyleInheritedData.h" | 44 #include "StyleInheritedData.h" |
| 45 #include "TransformState.h" | 45 #include "TransformState.h" |
| 46 #include "WebCoreMemoryInstrumentation.h" | 46 #include "WebCoreMemoryInstrumentation.h" |
| 47 | 47 |
| 48 #if ENABLE(CSS_SHADERS) && USE(3D_GRAPHICS) | 48 #if USE(3D_GRAPHICS) |
| 49 #include "CustomFilterGlobalContext.h" | 49 #include "CustomFilterGlobalContext.h" |
| 50 #endif | 50 #endif |
| 51 | 51 |
| 52 namespace WebCore { | 52 namespace WebCore { |
| 53 | 53 |
| 54 RenderView::RenderView(Document* document) | 54 RenderView::RenderView(Document* document) |
| 55 : RenderBlock(document) | 55 : RenderBlock(document) |
| 56 , m_frameView(document->view()) | 56 , m_frameView(document->view()) |
| 57 , m_selectionStart(0) | 57 , m_selectionStart(0) |
| 58 , m_selectionEnd(0) | 58 , m_selectionEnd(0) |
| (...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1067 | 1067 |
| 1068 return m_compositor.get(); | 1068 return m_compositor.get(); |
| 1069 } | 1069 } |
| 1070 | 1070 |
| 1071 void RenderView::setIsInWindow(bool isInWindow) | 1071 void RenderView::setIsInWindow(bool isInWindow) |
| 1072 { | 1072 { |
| 1073 if (m_compositor) | 1073 if (m_compositor) |
| 1074 m_compositor->setIsInWindow(isInWindow); | 1074 m_compositor->setIsInWindow(isInWindow); |
| 1075 } | 1075 } |
| 1076 | 1076 |
| 1077 #if ENABLE(CSS_SHADERS) && USE(3D_GRAPHICS) | 1077 #if USE(3D_GRAPHICS) |
| 1078 CustomFilterGlobalContext* RenderView::customFilterGlobalContext() | 1078 CustomFilterGlobalContext* RenderView::customFilterGlobalContext() |
| 1079 { | 1079 { |
| 1080 if (!m_customFilterGlobalContext) | 1080 if (!m_customFilterGlobalContext) |
| 1081 m_customFilterGlobalContext = adoptPtr(new CustomFilterGlobalContext()); | 1081 m_customFilterGlobalContext = adoptPtr(new CustomFilterGlobalContext()); |
| 1082 return m_customFilterGlobalContext.get(); | 1082 return m_customFilterGlobalContext.get(); |
| 1083 } | 1083 } |
| 1084 #endif | 1084 #endif |
| 1085 | 1085 |
| 1086 void RenderView::styleDidChange(StyleDifference diff, const RenderStyle* oldStyl
e) | 1086 void RenderView::styleDidChange(StyleDifference diff, const RenderStyle* oldStyl
e) |
| 1087 { | 1087 { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 1118 void RenderView::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const | 1118 void RenderView::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const |
| 1119 { | 1119 { |
| 1120 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Rendering)
; | 1120 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Rendering)
; |
| 1121 RenderBlock::reportMemoryUsage(memoryObjectInfo); | 1121 RenderBlock::reportMemoryUsage(memoryObjectInfo); |
| 1122 info.addWeakPointer(m_frameView); | 1122 info.addWeakPointer(m_frameView); |
| 1123 info.addWeakPointer(m_selectionStart); | 1123 info.addWeakPointer(m_selectionStart); |
| 1124 info.addWeakPointer(m_selectionEnd); | 1124 info.addWeakPointer(m_selectionEnd); |
| 1125 info.addMember(m_widgets, "widgets"); | 1125 info.addMember(m_widgets, "widgets"); |
| 1126 info.addMember(m_layoutState, "layoutState"); | 1126 info.addMember(m_layoutState, "layoutState"); |
| 1127 info.addMember(m_compositor, "compositor"); | 1127 info.addMember(m_compositor, "compositor"); |
| 1128 #if ENABLE(CSS_SHADERS) && USE(3D_GRAPHICS) | 1128 #if USE(3D_GRAPHICS) |
| 1129 info.addMember(m_customFilterGlobalContext, "customFilterGlobalContext"); | 1129 info.addMember(m_customFilterGlobalContext, "customFilterGlobalContext"); |
| 1130 #endif | 1130 #endif |
| 1131 info.addMember(m_flowThreadController, "flowThreadController"); | 1131 info.addMember(m_flowThreadController, "flowThreadController"); |
| 1132 info.addMember(m_intervalArena, "intervalArena"); | 1132 info.addMember(m_intervalArena, "intervalArena"); |
| 1133 info.addWeakPointer(m_renderQuoteHead); | 1133 info.addWeakPointer(m_renderQuoteHead); |
| 1134 info.addMember(m_legacyPrinting, "legacyPrinting"); | 1134 info.addMember(m_legacyPrinting, "legacyPrinting"); |
| 1135 } | 1135 } |
| 1136 | 1136 |
| 1137 FragmentationDisabler::FragmentationDisabler(RenderObject* root) | 1137 FragmentationDisabler::FragmentationDisabler(RenderObject* root) |
| 1138 { | 1138 { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1166 #endif | 1166 #endif |
| 1167 | 1167 |
| 1168 if (layoutState) | 1168 if (layoutState) |
| 1169 layoutState->m_isPaginated = m_fragmenting; | 1169 layoutState->m_isPaginated = m_fragmenting; |
| 1170 | 1170 |
| 1171 if (m_flowThreadState != RenderObject::NotInsideFlowThread) | 1171 if (m_flowThreadState != RenderObject::NotInsideFlowThread) |
| 1172 m_root->setFlowThreadStateIncludingDescendants(m_flowThreadState); | 1172 m_root->setFlowThreadStateIncludingDescendants(m_flowThreadState); |
| 1173 } | 1173 } |
| 1174 | 1174 |
| 1175 } // namespace WebCore | 1175 } // namespace WebCore |
| OLD | NEW |