Changeset 161482 in webkit
- Timestamp:
- Jan 7, 2014 10:42:50 PM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r161481 r161482 1 2014-01-07 Andreas Kling <akling@apple.com> 2 3 createAnonymousMathMLBlock() should return RenderPtr. 4 <https://webkit.org/b/126583> 5 6 Reviewed by Antti Koivisto. 7 8 * rendering/mathml/RenderMathMLBlock.h: 9 * rendering/mathml/RenderMathMLBlock.cpp: 10 (WebCore::RenderMathMLBlock::createAnonymousMathMLBlock): 11 12 Make this return a RenderPtr<RenderMathMLBlock> and removed the 13 EDisplay argument since it was always using the default (FLEX.) 14 15 * rendering/mathml/RenderMathMLFraction.cpp: 16 (WebCore::RenderMathMLFraction::addChild): 17 18 Updated for the new createAnonymousMathMLBlock() signature. 19 1 20 2014-01-07 Eric Carlson <eric.carlson@apple.com> 2 21 -
trunk/Source/WebCore/rendering/mathml/RenderMathMLBlock.cpp
r158163 r161482 61 61 } 62 62 63 Render MathMLBlock* RenderMathMLBlock::createAnonymousMathMLBlock(EDisplay display)64 { 65 Render MathMLBlock* newBlock = new RenderMathMLBlock(document(), RenderStyle::createAnonymousStyleWithDisplay(&style(), display));63 RenderPtr<RenderMathMLBlock> RenderMathMLBlock::createAnonymousMathMLBlock() 64 { 65 RenderPtr<RenderMathMLBlock> newBlock = createRenderer<RenderMathMLBlock>(document(), RenderStyle::createAnonymousStyleWithDisplay(&style(), FLEX)); 66 66 newBlock->initializeStyle(); 67 67 return newBlock; -
trunk/Source/WebCore/rendering/mathml/RenderMathMLBlock.h
r159794 r161482 63 63 64 64 // Create a new RenderMathMLBlock, with a new style inheriting from this->style(). 65 Render MathMLBlock* createAnonymousMathMLBlock(EDisplay = FLEX);65 RenderPtr<RenderMathMLBlock> createAnonymousMathMLBlock(); 66 66 67 67 void setIgnoreInAccessibilityTree(bool flag) { m_ignoreInAccessibilityTree = flag; } -
trunk/Source/WebCore/rendering/mathml/RenderMathMLFraction.cpp
r158163 r161482 91 91 { 92 92 if (isEmpty()) { 93 Render MathMLBlock*numeratorWrapper = createAnonymousMathMLBlock();94 RenderMathMLBlock::addChild(numeratorWrapper);95 fixChildStyle(numeratorWrapper);93 RenderPtr<RenderMathMLBlock> numeratorWrapper = createAnonymousMathMLBlock(); 94 fixChildStyle(numeratorWrapper.get()); 95 RenderMathMLBlock::addChild(numeratorWrapper.leakPtr()); 96 96 97 Render MathMLBlock*denominatorWrapper = createAnonymousMathMLBlock();98 RenderMathMLBlock::addChild(denominatorWrapper);99 fixChildStyle(denominatorWrapper);97 RenderPtr<RenderMathMLBlock> denominatorWrapper = createAnonymousMathMLBlock(); 98 fixChildStyle(denominatorWrapper.get()); 99 RenderMathMLBlock::addChild(denominatorWrapper.leakPtr()); 100 100 } 101 101
Note: See TracChangeset
for help on using the changeset viewer.