Changeset 205408 in webkit
- Timestamp:
- Sep 3, 2016 2:32:45 PM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r205407 r205408 1 2016-09-03 Frédéric Wang <fwang@igalia.com> 2 3 Constructors of MathML renderers should only accept MathMLPresentationElement-derived classes 4 https://bugs.webkit.org/show_bug.cgi?id=161378 5 6 Reviewed by Darin Adler. 7 8 We update constructors of RenderMathMLBlock, to only accept MathMLPresentationElement 9 instances as a parameter. Similarly, we make the constructor of RenderMathMLToken only 10 accept MathMLTokenElement instances. 11 12 No new tests, behavior is unchanged. 13 14 * rendering/mathml/RenderMathMLBlock.cpp: 15 (WebCore::RenderMathMLBlock::RenderMathMLBlock): 16 * rendering/mathml/RenderMathMLBlock.h: 17 * rendering/mathml/RenderMathMLToken.cpp: 18 (WebCore::RenderMathMLToken::RenderMathMLToken): 19 * rendering/mathml/RenderMathMLToken.h: 20 1 21 2016-09-03 Brian Weinstein <bweinstein@apple.com> 2 22 -
trunk/Source/WebCore/rendering/mathml/RenderMathMLBlock.cpp
r204885 r205408 35 35 #include "MathMLElement.h" 36 36 #include "MathMLNames.h" 37 #include "MathMLPresentationElement.h" 37 38 #include "RenderView.h" 38 39 … … 45 46 using namespace MathMLNames; 46 47 47 RenderMathMLBlock::RenderMathMLBlock( Element& container, RenderStyle&& style)48 RenderMathMLBlock::RenderMathMLBlock(MathMLPresentationElement& container, RenderStyle&& style) 48 49 : RenderBlock(container, WTFMove(style), 0) 49 50 , m_mathMLStyle(MathMLStyle::create()) -
trunk/Source/WebCore/rendering/mathml/RenderMathMLBlock.h
r204038 r205408 40 40 41 41 class RenderMathMLOperator; 42 class MathMLPresentationElement; 42 43 43 44 class RenderMathMLBlock : public RenderBlock { 44 45 public: 45 RenderMathMLBlock( Element&, RenderStyle&&);46 RenderMathMLBlock(MathMLPresentationElement&, RenderStyle&&); 46 47 RenderMathMLBlock(Document&, RenderStyle&&); 47 48 virtual ~RenderMathMLBlock(); … … 98 99 class RenderMathMLTable final : public RenderTable { 99 100 public: 100 explicit RenderMathMLTable( Element& element, RenderStyle&& style)101 explicit RenderMathMLTable(MathMLElement& element, RenderStyle&& style) 101 102 : RenderTable(element, WTFMove(style)) 102 103 , m_mathMLStyle(MathMLStyle::create()) -
trunk/Source/WebCore/rendering/mathml/RenderMathMLToken.cpp
r205031 r205408 42 42 using namespace MathMLNames; 43 43 44 RenderMathMLToken::RenderMathMLToken( Element& element, RenderStyle&& style)44 RenderMathMLToken::RenderMathMLToken(MathMLTokenElement& element, RenderStyle&& style) 45 45 : RenderMathMLBlock(element, WTFMove(style)) 46 46 { -
trunk/Source/WebCore/rendering/mathml/RenderMathMLToken.h
r205031 r205408 38 38 class RenderMathMLToken : public RenderMathMLBlock { 39 39 public: 40 RenderMathMLToken( Element&, RenderStyle&&);40 RenderMathMLToken(MathMLTokenElement&, RenderStyle&&); 41 41 RenderMathMLToken(Document&, RenderStyle&&); 42 42
Note: See TracChangeset
for help on using the changeset viewer.