summaryrefslogtreecommitdiffstats
path: root/WebCore/mathml/RenderMathMLOperator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/mathml/RenderMathMLOperator.cpp')
-rw-r--r--WebCore/mathml/RenderMathMLOperator.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/WebCore/mathml/RenderMathMLOperator.cpp b/WebCore/mathml/RenderMathMLOperator.cpp
index f9ff630..a6778a9 100644
--- a/WebCore/mathml/RenderMathMLOperator.cpp
+++ b/WebCore/mathml/RenderMathMLOperator.cpp
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2010 Alex Milowski (alex@milowski.com). All rights reserved.
+ * Copyright (C) 2010 François Sausset (sausset@gmail.com). All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -47,7 +48,7 @@ RenderMathMLOperator::RenderMathMLOperator(Node* container)
RenderMathMLOperator::RenderMathMLOperator(Node* container, UChar operatorChar)
: RenderMathMLBlock(container)
, m_stretchHeight(0)
- , m_operator(operatorChar)
+ , m_operator(convertHyphenMinusToMinusSign(operatorChar))
{
}
@@ -217,7 +218,7 @@ void RenderMathMLOperator::updateFromElement()
text = new (renderArena()) RenderText(node(), StringImpl::create(&m_operator, 1));
else if (node()->nodeType() == Node::ELEMENT_NODE)
if (Element* mo = static_cast<Element*>(node()))
- text = new (renderArena()) RenderText(node(), StringImpl::create(mo->textContent().characters(), mo->textContent().length()));
+ text = new (renderArena()) RenderText(node(), mo->textContent().replace(hyphenMinus, minusSign).impl());
// If we can't figure out the text, leave it blank.
if (text) {
RefPtr<RenderStyle> textStyle = RenderStyle::create();