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

Unified Diff: Source/core/rendering/RenderBox.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/rendering/RenderBox.cpp
diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp
index 1659f975a9909152952f1430a34d7429b64a4ba8..5f1e547599e7317cbaf937aaf033ac82c1a31e70 100644
--- a/Source/core/rendering/RenderBox.cpp
+++ b/Source/core/rendering/RenderBox.cpp
@@ -1773,14 +1773,14 @@ LayoutSize RenderBox::offsetFromContainer(RenderObject* o, const LayoutPoint& po
InlineBox* RenderBox::createInlineBox()
{
- return new (renderArena()) InlineBox(this);
+ return new InlineBox(this);
}
void RenderBox::dirtyLineBoxes(bool fullLayout)
{
if (m_inlineBoxWrapper) {
if (fullLayout) {
- m_inlineBoxWrapper->destroy(renderArena());
+ m_inlineBoxWrapper->destroy();
m_inlineBoxWrapper = 0;
} else
m_inlineBoxWrapper->dirtyLineBoxes();
@@ -1812,7 +1812,7 @@ void RenderBox::positionLineBox(InlineBox* box)
// Nuke the box.
box->remove();
- box->destroy(renderArena());
+ box->destroy();
} else if (isReplaced()) {
setLocation(roundedLayoutPoint(box->topLeft()));
setInlineBoxWrapper(box);
@@ -1824,7 +1824,7 @@ void RenderBox::deleteLineBoxWrapper()
if (m_inlineBoxWrapper) {
if (!documentBeingDestroyed())
m_inlineBoxWrapper->remove();
- m_inlineBoxWrapper->destroy(renderArena());
+ m_inlineBoxWrapper->destroy();
m_inlineBoxWrapper = 0;
}
}

Powered by Google App Engine
This is Rietveld 408576698