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

Unified Diff: Source/core/dom/Document.cpp

Issue 20231002: Replace RenderArena with PartitionAlloc (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 7 years, 5 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
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Text.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index b3fc7f14359dada020f4dfa5ed5727064c2bfc11..6c9d36828b986276629be743752b3aee58da9dd2 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -153,7 +153,6 @@
#include "core/platform/text/SegmentedString.h"
#include "core/rendering/HitTestRequest.h"
#include "core/rendering/HitTestResult.h"
-#include "core/rendering/RenderArena.h"
#include "core/rendering/RenderView.h"
#include "core/rendering/RenderWidget.h"
#include "core/rendering/TextAutosizer.h"
@@ -528,8 +527,6 @@ Document::~Document()
ASSERT(!m_parser || m_parser->refCount() == 1);
detachParser();
- m_renderArena.clear();
-
if (this == topDocument())
clearAXObjectCache();
@@ -1606,8 +1603,7 @@ void Document::recalcStyle(StyleChange change)
frameView->beginDeferredRepaints();
}
- ASSERT(!renderer() || renderArena());
- if (!renderer() || !renderArena())
+ if (!renderer())
goto bailOut;
if (styleChangeType() == SubtreeStyleChange)
@@ -1847,11 +1843,8 @@ void Document::attach(const AttachContext& context)
ASSERT(!attached());
ASSERT(!m_axObjectCache || this != topDocument());
- if (!m_renderArena)
- m_renderArena = RenderArena::create();
-
// Create the rendering tree
- setRenderer(new (m_renderArena.get()) RenderView(this));
+ setRenderer(new RenderView(this));
renderView()->setIsInWindow(true);
recalcStyle(Force);
@@ -1918,7 +1911,6 @@ void Document::detach(const AttachContext& context)
// or this setting of the frame to 0 could be made explicit in each of the
// callers of Document::detach().
m_frame = 0;
- m_renderArena.clear();
if (m_mediaQueryMatcher)
m_mediaQueryMatcher->documentDestroyed();
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Text.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698