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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/page/Page.cpp
diff --git a/Source/core/page/Page.cpp b/Source/core/page/Page.cpp
index 06702aecd8b41dd13872923cb95c3f5ccd7f1426..9465079f925f24c0670efe494c4adb7f8bc7c9ba 100644
--- a/Source/core/page/Page.cpp
+++ b/Source/core/page/Page.cpp
@@ -68,7 +68,6 @@
#include "core/platform/Widget.h"
#include "core/platform/network/NetworkStateNotifier.h"
#include "core/plugins/PluginData.h"
-#include "core/rendering/RenderArena.h"
#include "core/rendering/RenderTheme.h"
#include "core/rendering/RenderView.h"
#include "core/rendering/RenderWidget.h"
@@ -189,20 +188,6 @@ Page::~Page()
#endif
}
-ArenaSize Page::renderTreeSize() const
-{
- ArenaSize total(0, 0);
- for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext()) {
- if (!frame->document())
- continue;
- if (RenderArena* arena = frame->document()->renderArena()) {
- total.treeSize += arena->totalRenderArenaSize();
- total.allocated += arena->totalRenderArenaAllocatedBytes();
- }
- }
- return total;
-}
-
ViewportArguments Page::viewportArguments() const
{
return mainFrame() && mainFrame()->document() ? mainFrame()->document()->viewportArguments() : ViewportArguments();

Powered by Google App Engine
This is Rietveld 408576698