summaryrefslogtreecommitdiffstats
path: root/WebCore/mathml/RenderMathMLOperator.h
diff options
context:
space:
mode:
authorIain Merrick <husky@google.com>2010-09-13 16:35:48 +0100
committerIain Merrick <husky@google.com>2010-09-16 12:10:42 +0100
commit5abb8606fa57c3ebfc8b3c3dbc3fa4a25d2ae306 (patch)
treeddce1aa5e3b6967a69691892e500897558ff8ab6 /WebCore/mathml/RenderMathMLOperator.h
parent12bec63ec71e46baba27f0bd9bd9d8067683690a (diff)
downloadexternal_webkit-5abb8606fa57c3ebfc8b3c3dbc3fa4a25d2ae306.zip
external_webkit-5abb8606fa57c3ebfc8b3c3dbc3fa4a25d2ae306.tar.gz
external_webkit-5abb8606fa57c3ebfc8b3c3dbc3fa4a25d2ae306.tar.bz2
Merge WebKit at r67178 : Initial merge by git.
Change-Id: I57e01163b6866cb029cdadf405a0394a3918bc18
Diffstat (limited to 'WebCore/mathml/RenderMathMLOperator.h')
-rw-r--r--WebCore/mathml/RenderMathMLOperator.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/WebCore/mathml/RenderMathMLOperator.h b/WebCore/mathml/RenderMathMLOperator.h
index cc183c3..99c5246 100644
--- a/WebCore/mathml/RenderMathMLOperator.h
+++ b/WebCore/mathml/RenderMathMLOperator.h
@@ -28,6 +28,7 @@
#if ENABLE(MATHML)
+#include "CharacterNames.h"
#include "RenderMathMLBlock.h"
namespace WebCore {
@@ -65,9 +66,17 @@ inline const RenderMathMLOperator* toRenderMathMLOperator(const RenderMathMLBloc
ASSERT(!block || block->isRenderMathMLOperator());
return static_cast<const RenderMathMLOperator*>(block);
}
+
+inline UChar convertHyphenMinusToMinusSign(UChar glyph)
+{
+ // When rendered as a mathematical operator, minus glyph should be larger.
+ if (glyph == hyphenMinus)
+ return minusSign;
+ return glyph;
}
+}
#endif // ENABLE(MATHML)
#endif // RenderMathMLOperator_h