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

Unified Diff: Source/core/rendering/RenderMenuList.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/RenderMenuList.cpp
diff --git a/Source/core/rendering/RenderMenuList.cpp b/Source/core/rendering/RenderMenuList.cpp
index 6b3d43f69f0debeb1756fe0e37998898a57d0ffe..5337163bb5615fdcd10acc3ad6b7a4b93193df57 100644
--- a/Source/core/rendering/RenderMenuList.cpp
+++ b/Source/core/rendering/RenderMenuList.cpp
@@ -236,7 +236,7 @@ void RenderMenuList::setText(const String& s)
if (!m_buttonText || !m_buttonText->isBR()) {
if (m_buttonText)
m_buttonText->destroy();
- m_buttonText = new (renderArena()) RenderBR(document());
+ m_buttonText = new RenderBR(document());
m_buttonText->setStyle(style());
addChild(m_buttonText);
}
@@ -246,7 +246,7 @@ void RenderMenuList::setText(const String& s)
else {
if (m_buttonText)
m_buttonText->destroy();
- m_buttonText = new (renderArena()) RenderText(document(), s.impl());
+ m_buttonText = new RenderText(document(), s.impl());
m_buttonText->setStyle(style());
// We need to set the text explicitly though it was specified in the
// constructor because RenderText doesn't refer to the text

Powered by Google App Engine
This is Rietveld 408576698