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() |