diff options
author | Iain Merrick <husky@google.com> | 2010-09-13 16:35:48 +0100 |
---|---|---|
committer | Iain Merrick <husky@google.com> | 2010-09-16 12:10:42 +0100 |
commit | 5abb8606fa57c3ebfc8b3c3dbc3fa4a25d2ae306 (patch) | |
tree | ddce1aa5e3b6967a69691892e500897558ff8ab6 /WebCore/mathml/RenderMathMLOperator.h | |
parent | 12bec63ec71e46baba27f0bd9bd9d8067683690a (diff) | |
download | external_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.h | 9 |
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 |