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

Unified Diff: Source/core/html/BaseButtonInputType.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/Text.cpp ('k') | Source/core/html/FileInputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/BaseButtonInputType.cpp
diff --git a/Source/core/html/BaseButtonInputType.cpp b/Source/core/html/BaseButtonInputType.cpp
index 868e235d250fb6ef8d9f5c12789d1435e7bfa0a5..fda94da2872fa4b8b5e05209d29b4c7fc8e9f197 100644
--- a/Source/core/html/BaseButtonInputType.cpp
+++ b/Source/core/html/BaseButtonInputType.cpp
@@ -51,7 +51,7 @@ class NonSelectableText : public Text {
virtual RenderText* createTextRenderer(RenderStyle*) OVERRIDE
{
- return new (document()->renderArena()) RenderTextFragment(this, dataImpl());
+ return new RenderTextFragment(this, dataImpl());
}
public:
@@ -88,7 +88,7 @@ bool BaseButtonInputType::appendFormData(FormDataList&, bool) const
RenderObject* BaseButtonInputType::createRenderer(RenderStyle*) const
{
- return new (element()->document()->renderArena()) RenderButton(element());
+ return new RenderButton(element());
}
bool BaseButtonInputType::storesValueSeparateFromAttribute()
« no previous file with comments | « Source/core/dom/Text.cpp ('k') | Source/core/html/FileInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698