diff options
author | Ben Murdoch <benm@google.com> | 2010-08-11 14:44:44 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2010-08-12 19:15:41 +0100 |
commit | dd8bb3de4f353a81954234999f1fea748aee2ea9 (patch) | |
tree | 729b52bf09294f0d6c67cd5ea80aee1b727b7bd8 /WebCore/mathml/MathMLInlineContainerElement.cpp | |
parent | f3d41ba51d86bf719c7a65ab5297aea3c17e2d98 (diff) | |
download | external_webkit-dd8bb3de4f353a81954234999f1fea748aee2ea9.zip external_webkit-dd8bb3de4f353a81954234999f1fea748aee2ea9.tar.gz external_webkit-dd8bb3de4f353a81954234999f1fea748aee2ea9.tar.bz2 |
Merge WebKit at r65072 : Initial merge by git.
Change-Id: Ibcf418498376b2660aacb7f8d46ea7085ef91585
Diffstat (limited to 'WebCore/mathml/MathMLInlineContainerElement.cpp')
-rw-r--r-- | WebCore/mathml/MathMLInlineContainerElement.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/WebCore/mathml/MathMLInlineContainerElement.cpp b/WebCore/mathml/MathMLInlineContainerElement.cpp index efc9f8c..8b3f43e 100644 --- a/WebCore/mathml/MathMLInlineContainerElement.cpp +++ b/WebCore/mathml/MathMLInlineContainerElement.cpp @@ -32,6 +32,7 @@ #include "MathMLNames.h" #include "RenderMathMLBlock.h" +#include "RenderMathMLFenced.h" #include "RenderMathMLFraction.h" #include "RenderMathMLRoot.h" #include "RenderMathMLRow.h" @@ -53,33 +54,32 @@ PassRefPtr<MathMLInlineContainerElement> MathMLInlineContainerElement::create(co return adoptRef(new MathMLInlineContainerElement(tagName, document)); } -RenderObject* MathMLInlineContainerElement::createRenderer(RenderArena* arena, RenderStyle* style) +RenderObject* MathMLInlineContainerElement::createRenderer(RenderArena* arena, RenderStyle*) { - RenderObject* object; if (hasLocalName(MathMLNames::mrowTag)) - object = new (arena) RenderMathMLRow(this); + return new (arena) RenderMathMLRow(this); else if (hasLocalName(MathMLNames::msubTag)) - object = new (arena) RenderMathMLSubSup(this); + return new (arena) RenderMathMLSubSup(this); else if (hasLocalName(MathMLNames::msupTag)) - object = new (arena) RenderMathMLSubSup(this); + return new (arena) RenderMathMLSubSup(this); else if (hasLocalName(MathMLNames::msubsupTag)) - object = new (arena) RenderMathMLSubSup(this); + return new (arena) RenderMathMLSubSup(this); else if (hasLocalName(MathMLNames::moverTag)) - object = new (arena) RenderMathMLUnderOver(this); + return new (arena) RenderMathMLUnderOver(this); else if (hasLocalName(MathMLNames::munderTag)) - object = new (arena) RenderMathMLUnderOver(this); + return new (arena) RenderMathMLUnderOver(this); else if (hasLocalName(MathMLNames::munderoverTag)) - object = new (arena) RenderMathMLUnderOver(this); + return new (arena) RenderMathMLUnderOver(this); else if (hasLocalName(MathMLNames::mfracTag)) - object = new (arena) RenderMathMLFraction(this); + return new (arena) RenderMathMLFraction(this); else if (hasLocalName(MathMLNames::msqrtTag)) - object = new (arena) RenderMathMLSquareRoot(this); + return new (arena) RenderMathMLSquareRoot(this); else if (hasLocalName(MathMLNames::mrootTag)) - object = new (arena) RenderMathMLRoot(this); + return new (arena) RenderMathMLRoot(this); + else if (hasLocalName(MathMLNames::mfencedTag)) + return new (arena) RenderMathMLFenced(this); else - object = new (arena) RenderMathMLBlock(this); - object->setStyle(style); - return object; + return new (arena) RenderMathMLBlock(this); } } |