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

Side by Side Diff: Source/core/page/Page.cpp

Issue 16896019: Replace RenderArena with PartitionAlloc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R ights Reserved.
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
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 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 #include "RuntimeEnabledFeatures.h" 61 #include "RuntimeEnabledFeatures.h"
62 #include "core/page/Settings.h" 62 #include "core/page/Settings.h"
63 #include "core/page/animation/AnimationController.h" 63 #include "core/page/animation/AnimationController.h"
64 #include "core/page/scrolling/ScrollingCoordinator.h" 64 #include "core/page/scrolling/ScrollingCoordinator.h"
65 #include "core/platform/FileSystem.h" 65 #include "core/platform/FileSystem.h"
66 #include "core/platform/Logging.h" 66 #include "core/platform/Logging.h"
67 #include "core/platform/SharedBuffer.h" 67 #include "core/platform/SharedBuffer.h"
68 #include "core/platform/Widget.h" 68 #include "core/platform/Widget.h"
69 #include "core/platform/network/NetworkStateNotifier.h" 69 #include "core/platform/network/NetworkStateNotifier.h"
70 #include "core/plugins/PluginData.h" 70 #include "core/plugins/PluginData.h"
71 #include "core/rendering/RenderArena.h"
72 #include "core/rendering/RenderTheme.h" 71 #include "core/rendering/RenderTheme.h"
73 #include "core/rendering/RenderView.h" 72 #include "core/rendering/RenderView.h"
74 #include "core/rendering/RenderWidget.h" 73 #include "core/rendering/RenderWidget.h"
75 #include "core/storage/StorageArea.h" 74 #include "core/storage/StorageArea.h"
76 #include "core/storage/StorageNamespace.h" 75 #include "core/storage/StorageNamespace.h"
77 #include "weborigin/SchemeRegistry.h" 76 #include "weborigin/SchemeRegistry.h"
78 #include "wtf/HashMap.h" 77 #include "wtf/HashMap.h"
79 #include "wtf/RefCountedLeakCounter.h" 78 #include "wtf/RefCountedLeakCounter.h"
80 #include "wtf/StdLibExtras.h" 79 #include "wtf/StdLibExtras.h"
81 #include "wtf/text/Base64.h" 80 #include "wtf/text/Base64.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 if (m_scrollingCoordinator) 181 if (m_scrollingCoordinator)
183 m_scrollingCoordinator->pageDestroyed(); 182 m_scrollingCoordinator->pageDestroyed();
184 183
185 backForward()->close(); 184 backForward()->close();
186 185
187 #ifndef NDEBUG 186 #ifndef NDEBUG
188 pageCounter.decrement(); 187 pageCounter.decrement();
189 #endif 188 #endif
190 } 189 }
191 190
192 ArenaSize Page::renderTreeSize() const
193 {
194 ArenaSize total(0, 0);
195 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext( )) {
196 if (!frame->document())
197 continue;
198 if (RenderArena* arena = frame->document()->renderArena()) {
199 total.treeSize += arena->totalRenderArenaSize();
200 total.allocated += arena->totalRenderArenaAllocatedBytes();
201 }
202 }
203 return total;
204 }
205
206 ViewportArguments Page::viewportArguments() const 191 ViewportArguments Page::viewportArguments() const
207 { 192 {
208 return mainFrame() && mainFrame()->document() ? mainFrame()->document()->vie wportArguments() : ViewportArguments(); 193 return mainFrame() && mainFrame()->document() ? mainFrame()->document()->vie wportArguments() : ViewportArguments();
209 } 194 }
210 195
211 bool Page::autoscrollInProgress() const 196 bool Page::autoscrollInProgress() const
212 { 197 {
213 return m_autoscrollController->autoscrollInProgress(); 198 return m_autoscrollController->autoscrollInProgress();
214 } 199 }
215 200
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 , dragClient(0) 852 , dragClient(0)
868 , inspectorClient(0) 853 , inspectorClient(0)
869 { 854 {
870 } 855 }
871 856
872 Page::PageClients::~PageClients() 857 Page::PageClients::~PageClients()
873 { 858 {
874 } 859 }
875 860
876 } // namespace WebCore 861 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698