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

Unified Diff: Source/core/rendering/RenderText.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/RenderText.cpp
diff --git a/Source/core/rendering/RenderText.cpp b/Source/core/rendering/RenderText.cpp
index 13d84d9aa8aa899b96369c50f4357126d6e4361e..a421527d9a585ff4533d7f63461591f4f843f47e 100644
--- a/Source/core/rendering/RenderText.cpp
+++ b/Source/core/rendering/RenderText.cpp
@@ -298,11 +298,10 @@ void RenderText::removeTextBox(InlineTextBox* box)
void RenderText::deleteTextBoxes()
{
if (firstTextBox()) {
- RenderArena* arena = renderArena();
InlineTextBox* next;
for (InlineTextBox* curr = firstTextBox(); curr; curr = next) {
next = curr->nextTextBox();
- curr->destroy(arena);
+ curr->destroy();
}
m_firstTextBox = m_lastTextBox = 0;
}
@@ -1486,7 +1485,7 @@ void RenderText::dirtyLineBoxes(bool fullLayout)
InlineTextBox* RenderText::createTextBox()
{
- return new (renderArena()) InlineTextBox(this);
+ return new InlineTextBox(this);
}
InlineTextBox* RenderText::createInlineTextBox()
@@ -1519,7 +1518,7 @@ void RenderText::positionLineBox(InlineBox* box)
m_lastTextBox = s->prevTextBox();
else
s->nextTextBox()->setPreviousTextBox(s->prevTextBox());
- s->destroy(renderArena());
+ s->destroy();
return;
}

Powered by Google App Engine
This is Rietveld 408576698