summaryrefslogtreecommitdiffstats
path: root/WebCore/mathml/MathMLTextElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/mathml/MathMLTextElement.cpp')
-rw-r--r--WebCore/mathml/MathMLTextElement.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/WebCore/mathml/MathMLTextElement.cpp b/WebCore/mathml/MathMLTextElement.cpp
index 4135d6c..8f830cb 100644
--- a/WebCore/mathml/MathMLTextElement.cpp
+++ b/WebCore/mathml/MathMLTextElement.cpp
@@ -49,11 +49,8 @@ PassRefPtr<MathMLTextElement> MathMLTextElement::create(const QualifiedName& tag
RenderObject* MathMLTextElement::createRenderer(RenderArena* arena, RenderStyle* style)
{
- if (hasLocalName(MathMLNames::moTag)) {
- RenderObject* object = new (arena) RenderMathMLOperator(this);
- object->setStyle(style);
- return object;
- }
+ if (hasLocalName(MathMLNames::moTag))
+ return new (arena) RenderMathMLOperator(this);
return MathMLElement::createRenderer(arena, style);
}