Changeset 161493 in webkit
- Timestamp:
- Jan 8, 2014 3:20:11 AM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r161492 r161493 1 2014-01-08 Andreas Kling <akling@apple.com> 2 3 RenderMathMLRow::createAnonymousWithParentRenderer() should return RenderPtr. 4 <https://webkit.org/b/126631> 5 6 Reviewed by Antti Koivisto. 7 8 * rendering/mathml/RenderMathMLRow.h: 9 * rendering/mathml/RenderMathMLRow.cpp: 10 (WebCore::RenderMathMLRow::createAnonymousWithParentRenderer): 11 12 Tweak to return RenderPtr<RenderMathMLRow> and removed comment(!) 13 about how this should return a smart pointer. Also take the 14 parent renderer as a RenderMathMLRoot& instead of a RenderObject* 15 since that's all we ever pass. 16 17 * rendering/mathml/RenderMathMLRoot.cpp: 18 (WebCore::RenderMathMLRoot::addChild): 19 20 Updated for new createAnonymousWithParentRenderer() signature. 21 1 22 2014-01-08 Mario Sanchez Prada <mario.prada@samsung.com> 2 23 -
trunk/Source/WebCore/rendering/mathml/RenderMathMLRoot.cpp
r160598 r161493 164 164 // to measure and store a glyph-based height for preferredLogicalHeightAfterSizing. 165 165 if (!firstChild()) 166 RenderMathMLBlock::addChild(RenderMathMLRow::createAnonymousWithParentRenderer( this));166 RenderMathMLBlock::addChild(RenderMathMLRow::createAnonymousWithParentRenderer(*this).leakPtr()); 167 167 168 168 // An <mroot>'s index has { position: absolute }. -
trunk/Source/WebCore/rendering/mathml/RenderMathMLRow.cpp
r160598 r161493 33 33 #include "RenderIterator.h" 34 34 #include "RenderMathMLOperator.h" 35 #include "RenderMathMLRoot.h" 35 36 36 37 namespace WebCore { … … 48 49 } 49 50 50 // FIXME: Change all these createAnonymous... routines to return a PassOwnPtr<>. 51 RenderMathMLRow* RenderMathMLRow::createAnonymousWithParentRenderer(const RenderObject* parent) 51 RenderPtr<RenderMathMLRow> RenderMathMLRow::createAnonymousWithParentRenderer(RenderMathMLRoot& parent) 52 52 { 53 Render MathMLRow* newMRow = new RenderMathMLRow(parent->document(), RenderStyle::createAnonymousStyleWithDisplay(&parent->style(), FLEX));53 RenderPtr<RenderMathMLRow> newMRow = createRenderer<RenderMathMLRow>(parent.document(), RenderStyle::createAnonymousStyleWithDisplay(&parent.style(), FLEX)); 54 54 newMRow->initializeStyle(); 55 55 return newMRow; -
trunk/Source/WebCore/rendering/mathml/RenderMathMLRow.h
r159009 r161493 32 32 33 33 namespace WebCore { 34 34 35 class RenderMathMLRoot; 36 35 37 class RenderMathMLRow : public RenderMathMLBlock { 36 38 public: … … 38 40 RenderMathMLRow(Document&, PassRef<RenderStyle>); 39 41 40 static Render MathMLRow* createAnonymousWithParentRenderer(const RenderObject*);42 static RenderPtr<RenderMathMLRow> createAnonymousWithParentRenderer(RenderMathMLRoot&); 41 43 42 44 protected:
Note: See TracChangeset
for help on using the changeset viewer.