Changeset 58349 in webkit
- Timestamp:
- Apr 27, 2010 4:13:03 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 8 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r58348 r58349 1 2010-04-27 François Sausset <sausset@gmail.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 Additional MathML mroot & msqrt tests. 6 https://bugs.webkit.org/show_bug.cgi?id=37044 7 8 * mathml/presentation/roots.xhtml: Added. 9 * platform/mac/mathml/presentation/roots-expected.checksum: Added. 10 * platform/mac/mathml/presentation/roots-expected.png: Added. 11 * platform/mac/mathml/presentation/roots-expected.txt: Added. 12 1 13 2010-04-27 Jeremy Orlow <jorlow@chromium.org> 2 14 -
trunk/WebCore/ChangeLog
r58347 r58349 1 2010-04-27 François Sausset <sausset@gmail.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 Implementation of the MathML mroot & msqrt elements. 6 https://bugs.webkit.org/show_bug.cgi?id=37044 7 8 Test: mathml/presentation/roots.xhtml 9 10 * WebCore.xcodeproj/project.pbxproj: 11 * css/mathml.css: 12 (mroot): 13 (mroot > * + *): 14 (mroot > * + mrow, mroot > * + mfenced): 15 * mathml/MathMLInlineContainerElement.cpp: 16 (WebCore::MathMLInlineContainerElement::createRenderer): 17 * mathml/RenderMathMLRoot.cpp: Added. 18 (WebCore::RenderMathMLRoot::RenderMathMLRoot): 19 (WebCore::RenderMathMLRoot::addChild): 20 (WebCore::RenderMathMLRoot::paint): 21 (WebCore::RenderMathMLRoot::layout): 22 * mathml/RenderMathMLRoot.h: Added. 23 * mathml/RenderMathMLSquareRoot.cpp: Added. 24 (WebCore::RenderMathMLSquareRoot::RenderMathMLSquareRoot): 25 (WebCore::RenderMathMLSquareRoot::paint): 26 (WebCore::RenderMathMLSquareRoot::layout): 27 * mathml/RenderMathMLSquareRoot.h: Added. 28 1 29 2010-04-27 Darin Adler <darin@apple.com> 2 30 -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r58266 r58349 221 221 0FD723820EC8BD9300CA5DD7 /* FloatQuad.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FD723800EC8BD9300CA5DD7 /* FloatQuad.h */; settings = {ATTRIBUTES = (Private, ); }; }; 222 222 0FD723830EC8BD9300CA5DD7 /* FloatQuad.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FD723810EC8BD9300CA5DD7 /* FloatQuad.cpp */; }; 223 0FF2859011864052007B7CD6 /* RenderMathMLRoot.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FF2813211821CB6007B7CD6 /* RenderMathMLRoot.cpp */; }; 224 0FF2859111864053007B7CD6 /* RenderMathMLRoot.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FF2813311821CB6007B7CD6 /* RenderMathMLRoot.h */; }; 225 0FF2859211864054007B7CD6 /* RenderMathMLSquareRoot.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0FF2813411821CB6007B7CD6 /* RenderMathMLSquareRoot.cpp */; }; 226 0FF2859311864055007B7CD6 /* RenderMathMLSquareRoot.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FF2813511821CB6007B7CD6 /* RenderMathMLSquareRoot.h */; }; 223 227 0FF5025B102BA9010066F39A /* DOMStyleMedia.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FF50259102BA9010066F39A /* DOMStyleMedia.h */; }; 224 228 0FF5025C102BA9010066F39A /* DOMStyleMedia.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0FF5025A102BA9010066F39A /* DOMStyleMedia.mm */; }; … … 5598 5602 0FD723800EC8BD9300CA5DD7 /* FloatQuad.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FloatQuad.h; sourceTree = "<group>"; }; 5599 5603 0FD723810EC8BD9300CA5DD7 /* FloatQuad.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FloatQuad.cpp; sourceTree = "<group>"; }; 5604 0FF2813211821CB6007B7CD6 /* RenderMathMLRoot.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderMathMLRoot.cpp; sourceTree = "<group>"; }; 5605 0FF2813311821CB6007B7CD6 /* RenderMathMLRoot.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderMathMLRoot.h; sourceTree = "<group>"; }; 5606 0FF2813411821CB6007B7CD6 /* RenderMathMLSquareRoot.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderMathMLSquareRoot.cpp; sourceTree = "<group>"; }; 5607 0FF2813511821CB6007B7CD6 /* RenderMathMLSquareRoot.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderMathMLSquareRoot.h; sourceTree = "<group>"; }; 5600 5608 0FF50259102BA9010066F39A /* DOMStyleMedia.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMStyleMedia.h; sourceTree = "<group>"; }; 5601 5609 0FF5025A102BA9010066F39A /* DOMStyleMedia.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = DOMStyleMedia.mm; sourceTree = "<group>"; }; … … 16350 16358 FA5FAE4011126A5D00D3750F /* RenderMathMLOperator.cpp */, 16351 16359 FA5FAE4111126A5D00D3750F /* RenderMathMLOperator.h */, 16360 0FF2813211821CB6007B7CD6 /* RenderMathMLRoot.cpp */, 16361 0FF2813311821CB6007B7CD6 /* RenderMathMLRoot.h */, 16352 16362 FA0B1F8411125CEE007F9839 /* RenderMathMLRow.cpp */, 16353 16363 FA0B1F8511125CEE007F9839 /* RenderMathMLRow.h */, 16364 0FF2813411821CB6007B7CD6 /* RenderMathMLSquareRoot.cpp */, 16365 0FF2813511821CB6007B7CD6 /* RenderMathMLSquareRoot.h */, 16354 16366 FAC12CC21120DA6900DACC36 /* RenderMathMLSubSup.cpp */, 16355 16367 FAC12CC31120DA6900DACC36 /* RenderMathMLSubSup.h */, … … 18884 18896 2E3BC10B117D47C800B9409A /* DOMFileErrorInternal.h in Headers */, 18885 18897 37FD4298118368460093C029 /* TreeDepthLimit.h in Headers */, 18898 0FF2859111864053007B7CD6 /* RenderMathMLRoot.h in Headers */, 18899 0FF2859311864055007B7CD6 /* RenderMathMLSquareRoot.h in Headers */, 18886 18900 ); 18887 18901 runOnlyForDeploymentPostprocessing = 0; … … 21120 21134 2E3BC0CA117D3E0800B9409A /* JSFileError.cpp in Sources */, 21121 21135 2E3BC109117D479800B9409A /* DOMFileError.mm in Sources */, 21136 0FF2859011864052007B7CD6 /* RenderMathMLRoot.cpp in Sources */, 21137 0FF2859211864054007B7CD6 /* RenderMathMLSquareRoot.cpp in Sources */, 21122 21138 ); 21123 21139 runOnlyForDeploymentPostprocessing = 0; -
trunk/WebCore/css/mathml.css
r56390 r58349 133 133 mroot { 134 134 display: inline-block; 135 position: relative; 135 136 padding-top: 0.2em; 136 137 padding-left: 0.2em; … … 139 140 mroot > * + * { 140 141 font-size: 0.75em; 141 vertical-align: top; 142 padding-right: 0.3em; 142 vertical-align: bottom; 143 position: absolute; 144 left: 0px; 145 padding-right: 0.4em; 146 padding-left: 0.2em; 147 padding-bottom: 0.2em; 148 } 149 150 mroot > * + mrow, mroot > * + mfenced { 151 padding-bottom: 0.4em; 143 152 } 144 153 -
trunk/WebCore/mathml/MathMLInlineContainerElement.cpp
r56340 r58349 34 34 #include "RenderMathMLFraction.h" 35 35 #include "RenderMathMLMath.h" 36 #include "RenderMathMLRoot.h" 36 37 #include "RenderMathMLRow.h" 38 #include "RenderMathMLSquareRoot.h" 37 39 #include "RenderMathMLSubSup.h" 38 40 #include "RenderMathMLUnderOver.h" … … 73 75 else if (hasLocalName(MathMLNames::mfracTag)) 74 76 object = new (arena) RenderMathMLFraction(this); 77 else if (hasLocalName(MathMLNames::msqrtTag)) 78 object = new (arena) RenderMathMLSquareRoot(this); 79 else if (hasLocalName(MathMLNames::mrootTag)) 80 object = new (arena) RenderMathMLRoot(this); 75 81 else 76 82 object = new (arena) RenderMathMLBlock(this);
Note: See TracChangeset
for help on using the changeset viewer.