Changeset 162933 in webkit
- Timestamp:
- Jan 28, 2014 8:34:52 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 20 added
- 21 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r162896 r162933 1 2014-01-28 Gurpreet Kaur <k.gurpreet@samsung.com> 2 3 Add support for menclose element 4 https://bugs.webkit.org/show_bug.cgi?id=85729 5 6 Reviewed by Chris Fleizach. 7 8 * mathml/presentation/inferred-mrow-baseline-expected.txt: 9 * mathml/presentation/inferred-mrow-baseline.html: 10 * mathml/presentation/inferred-mrow-stretchy-expected.txt: 11 * mathml/presentation/inferred-mrow-stretchy.html: 12 Rebaselining existing tests as per the new behavior. 13 14 * mathml/presentation/menclose-add-children-expected.html: Added. 15 * mathml/presentation/menclose-add-children.html: Added. 16 * mathml/presentation/menclose-notation-attribute-add-expected.html: Added. 17 * mathml/presentation/menclose-notation-attribute-add.html: Added. 18 * mathml/presentation/menclose-notation-attribute-change-value-expected.html: Added. 19 * mathml/presentation/menclose-notation-attribute-change-value.html: Added. 20 * mathml/presentation/menclose-notation-attribute-remove-expected.html: Added. 21 * mathml/presentation/menclose-notation-attribute-remove.html: Added. 22 * mathml/presentation/menclose-notation-attribute-set1-expected.txt: Added. 23 * mathml/presentation/menclose-notation-attribute-set1.html: Added. 24 * mathml/presentation/menclose-notation-attribute-set2-expected-mismatch.html: Added. 25 * mathml/presentation/menclose-notation-attribute-set2.html: Added. 26 * mathml/presentation/menclose-notation-no-overlap-expected.txt: Added. 27 * mathml/presentation/menclose-notation-no-overlap.html: Added. 28 * mathml/presentation/menclose-notation-radical-expected.html: Added. 29 * mathml/presentation/menclose-notation-radical.html: Added. 30 * mathml/presentation/menclose-remove-children-expected.html: Added. 31 * mathml/presentation/menclose-remove-children.html: Added. 32 Added new test cases for verifying the behaviour of menclose element 33 with different values of notation attribute and removing/changing/adding 34 notation attribute. 35 1 36 2014-01-27 Brian Burg <bburg@apple.com> 2 37 -
trunk/LayoutTests/mathml/presentation/inferred-mrow-baseline-expected.txt
r160711 r162933 1 1 This test passes if rectangles are correctly aligned with respect to the baseline. 2 2 3 3 4 4 5 … … 13 14 Phantom: PASS 14 15 Math: PASS 16 Menclose: PASS 15 17 -
trunk/LayoutTests/mathml/presentation/inferred-mrow-baseline.html
r160711 r162933 6 6 function test() 7 7 { 8 var tags = ["Mrow", "Sqrt", "Style", "Error", "Phantom", "Math" ];8 var tags = ["Mrow", "Sqrt", "Style", "Error", "Phantom", "Math", "Menclose"]; 9 9 var result = ""; 10 10 for (var i in tags) { … … 37 37 38 38 <math><mspace id="aboveMath" width="10px" height="30px" mathbackground="red"></mspace><mspace id="belowMath" width="10px" depth="30px" mathbackground="blue"></mspace></math> 39 40 <math><menclose notation="box"><mspace id="aboveMenclose" width="10px" height="30px" mathbackground="red"></mspace><mspace id="belowMenclose" width="10px" depth="30px" mathbackground="blue"></mspace></menclose></math> 39 41 </p> 40 42 -
trunk/LayoutTests/mathml/presentation/inferred-mrow-stretchy-expected.txt
r160711 r162933 1 1 This test passes if all the vertical bars stretch. 2 2 3 3 4 4 5 … … 13 14 Phantom: PASS 14 15 Math: PASS 16 Menclose: PASS 15 17 -
trunk/LayoutTests/mathml/presentation/inferred-mrow-stretchy.html
r160711 r162933 6 6 function test() 7 7 { 8 var tags = ["Mrow", "Sqrt", "Style", "Error", "Phantom", "Math" ];8 var tags = ["Mrow", "Sqrt", "Style", "Error", "Phantom", "Math", "Menclose"]; 9 9 var result = ""; 10 10 for (var i in tags) { … … 31 31 <math><mphantom><mo style="visibilty: visible;" id="moPhantom">|</mo><mspace width="1px" height="30px" depth="30px" mathbackground="red"></mspace></mphantom></math> 32 32 <math><mo id="moMath">|</mo><mspace width="1px" height="30px" depth="30px" mathbackground="red"></mspace></math> 33 <math><menclose notation="box"><mo id="moMenclose">|</mo><mspace width="1px" height="30px" depth="30px" mathbackground="red"></mspace></menclose></math> 33 34 </p> 34 35 -
trunk/Source/WebCore/CMakeLists.txt
r162821 r162933 1702 1702 mathml/MathMLInlineContainerElement.cpp 1703 1703 mathml/MathMLMathElement.cpp 1704 mathml/MathMLMencloseElement.cpp 1704 1705 mathml/MathMLSelectElement.cpp 1705 1706 mathml/MathMLTextElement.cpp … … 2214 2215 rendering/mathml/RenderMathMLFraction.cpp 2215 2216 rendering/mathml/RenderMathMLMath.cpp 2217 rendering/mathml/RenderMathMLMenclose.cpp 2216 2218 rendering/mathml/RenderMathMLOperator.cpp 2217 2219 rendering/mathml/RenderMathMLRoot.cpp -
trunk/Source/WebCore/ChangeLog
r162932 r162933 1 2014-01-28 Gurpreet Kaur <k.gurpreet@samsung.com> 2 3 Add support for menclose element 4 https://bugs.webkit.org/show_bug.cgi?id=85729 5 6 Reviewed by Chris Fleizach. 7 8 Added support for menclose element. MathML <menclose> element renders 9 its content inside an enclosing notation specified by the notation 10 attribute. The notation attribute can have values longdiv, box, left, 11 right, top, bottom , radical, madruwb, actuarial, roundedbox, circle, 12 updiagonalstrike, downdiagonalstrike, verticalstrike and 13 horizontalstrike. 14 15 Tests: mathml/presentation/menclose-add-children.html 16 mathml/presentation/menclose-notation-attribute-add.html 17 mathml/presentation/menclose-notation-attribute-change-value.html 18 mathml/presentation/menclose-notation-attribute-remove.html 19 mathml/presentation/menclose-notation-attribute-set1.html 20 mathml/presentation/menclose-notation-attribute-set2.html 21 mathml/presentation/menclose-notation-no-overlap.html 22 mathml/presentation/menclose-notation-radical.html 23 mathml/presentation/menclose-remove-children.html 24 25 * CMakeLists.txt: 26 * GNUmakefile.list.am: 27 * WebCore.vcxproj/WebCore.vcxproj: 28 * WebCore.vcxproj/WebCore.vcxproj.filters: 29 * WebCore.xcodeproj/project.pbxproj: 30 * css/mathml.css: 31 (mo, mrow, mfenced, mfrac, msub, msup, msubsup, mmultiscripts, mprescripts, none, munder, mover, munderover, msqrt, mroot, merror, mphantom, mstyle, menclose): 32 (math, mrow, mfenced, msqrt, mroot, merror, mphantom, mstyle, menclose): 33 * mathml/MathMLAllInOne.cpp: 34 * mathml/MathMLElement.h: 35 * mathml/MathMLInlineContainerElement.cpp: 36 * mathml/MathMLMencloseElement.cpp: Added. 37 (WebCore::MathMLMencloseElement::MathMLMencloseElement): 38 (WebCore::MathMLMencloseElement::create): 39 (WebCore::MathMLMencloseElement::createElementRenderer): 40 (WebCore::MathMLMencloseElement::isPresentationAttribute): 41 (WebCore::MathMLMencloseElement::finishParsingChildren): 42 (WebCore::MathMLMencloseElement::collectStyleForPresentationAttribute): 43 (WebCore::MathMLMencloseElement::longDivLeftPadding): 44 * mathml/MathMLMencloseElement.h: Added. 45 (WebCore::toMathMLMencloseElement): 46 * mathml/mathattrs.in: 47 * mathml/mathtags.in: 48 * rendering/mathml/RenderMathMLMenclose.cpp: Added. 49 (WebCore::RenderMathMLMenclose::RenderMathMLMenclose): 50 (WebCore::RenderMathMLMenclose::addChild): 51 (WebCore::RenderMathMLMenclose::computePreferredLogicalWidths): 52 (WebCore::RenderMathMLMenclose::updateLogicalHeight): 53 (WebCore::RenderMathMLMenclose::paint): 54 (WebCore::RenderMathMLMenclose::checkNotationalValuesValidity): 55 * rendering/mathml/RenderMathMLMenclose.h: Added. 56 * rendering/mathml/RenderMathMLRoot.cpp: 57 (WebCore::RenderMathMLRoot::RenderMathMLRoot): 58 * rendering/mathml/RenderMathMLRoot.h: 59 * rendering/mathml/RenderMathMLSquareRoot.cpp: 60 (WebCore::RenderMathMLSquareRoot::RenderMathMLSquareRoot): 61 (WebCore::RenderMathMLSquareRoot::createAnonymousWithParentRenderer): 62 * rendering/mathml/RenderMathMLSquareRoot.h: 63 Added new file related to menclose element implementation. Menclose 64 element is created and while parsing its notation attribute based on 65 its values like top, left CSSBorder properties are applied and for 66 values like circle, verticalstrike, longidv its taken care in paint. 67 For radical value an anonymous RenderMathMLSquareRoot is created as 68 a child of menclose. 69 1 70 2014-01-28 Krzysztof Czech <k.czech@samsung.com> 2 71 -
trunk/Source/WebCore/GNUmakefile.list.am
r162922 r162933 4031 4031 Source/WebCore/mathml/MathMLMathElement.cpp \ 4032 4032 Source/WebCore/mathml/MathMLMathElement.h \ 4033 Source/WebCore/mathml/MathMLMencloseElement.cpp \ 4034 Source/WebCore/mathml/MathMLMencloseElement.h \ 4033 4035 Source/WebCore/mathml/MathMLSelectElement.cpp \ 4034 4036 Source/WebCore/mathml/MathMLSelectElement.h \ … … 4520 4522 Source/WebCore/rendering/mathml/RenderMathMLMath.cpp \ 4521 4523 Source/WebCore/rendering/mathml/RenderMathMLMath.h \ 4524 Source/WebCore/rendering/mathml/RenderMathMLMenclose.cpp \ 4525 Source/WebCore/rendering/mathml/RenderMathMLMenclose.h \ 4522 4526 Source/WebCore/rendering/mathml/RenderMathMLOperator.cpp \ 4523 4527 Source/WebCore/rendering/mathml/RenderMathMLOperator.h \ -
trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj
r162821 r162933 11221 11221 <ClCompile Include="..\rendering\mathml\RenderMathMLFraction.cpp" /> 11222 11222 <ClCompile Include="..\rendering\mathml\RenderMathMLMath.cpp" /> 11223 <ClCompile Include="..\rendering\mathml\RenderMathMLMenclose.cpp" /> 11223 11224 <ClCompile Include="..\rendering\mathml\RenderMathMLOperator.cpp" /> 11224 11225 <ClCompile Include="..\rendering\mathml\RenderMathMLRoot.cpp" /> … … 17942 17943 </ClCompile> 17943 17944 <ClCompile Include="..\mathml\MathMLMathElement.cpp"> 17945 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild> 17946 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> 17947 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'">true</ExcludedFromBuild> 17948 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|x64'">true</ExcludedFromBuild> 17949 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild> 17950 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild> 17951 </ClCompile> 17952 <ClCompile Include="..\mathml\MathMLMencloseElement.cpp"> 17944 17953 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild> 17945 17954 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> … … 19903 19912 <ClInclude Include="..\rendering\mathml\RenderMathMLFraction.h" /> 19904 19913 <ClInclude Include="..\rendering\mathml\RenderMathMLMath.h" /> 19914 <ClInclude Include="..\rendering\mathml\RenderMathMLMenclose.h" /> 19905 19915 <ClInclude Include="..\rendering\mathml\RenderMathMLOperator.h" /> 19906 19916 <ClInclude Include="..\rendering\mathml\RenderMathMLRoot.h" /> … … 20885 20895 <ClInclude Include="..\mathml\MathMLInlineContainerElement.h" /> 20886 20896 <ClInclude Include="..\mathml\MathMLMathElement.h" /> 20897 <ClInclude Include="..\mathml\MathMLMencloseElement.h" /> 20887 20898 <ClInclude Include="..\mathml\MathMLSelectElement.h" /> 20888 20899 <ClInclude Include="..\mathml\MathMLTextElement.h" /> -
trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters
r162821 r162933 2722 2722 <Filter>rendering\mathml</Filter> 2723 2723 </ClCompile> 2724 <ClCompile Include="..\rendering\mathml\RenderMathMLMenclose.cpp"> 2725 <Filter>rendering\mathml</Filter> 2726 </ClCompile> 2724 2727 <ClCompile Include="..\rendering\mathml\RenderMathMLOperator.cpp"> 2725 2728 <Filter>rendering\mathml</Filter> … … 4886 4889 </ClCompile> 4887 4890 <ClCompile Include="..\mathml\MathMLMathElement.cpp"> 4891 <Filter>rendering\mathml</Filter> 4892 </ClCompile> 4893 <ClCompile Include="..\mathml\MathMLMencloseElement.cpp"> 4888 4894 <Filter>rendering\mathml</Filter> 4889 4895 </ClCompile> … … 9564 9570 <Filter>rendering\mathml</Filter> 9565 9571 </ClInclude> 9572 <ClInclude Include="..\rendering\mathml\RenderMathMLMenclose.h"> 9573 <Filter>rendering\mathml</Filter> 9574 </ClInclude> 9566 9575 <ClInclude Include="..\rendering\mathml\RenderMathMLOperator.h"> 9567 9576 <Filter>rendering\mathml</Filter> … … 12427 12436 </ClInclude> 12428 12437 <ClInclude Include="..\mathml\MathMLMathElement.h"> 12438 <Filter>rendering\mathml</Filter> 12439 </ClInclude> 12440 <ClInclude Include="..\mathml\MathMLMencloseElement.h"> 12429 12441 <Filter>rendering\mathml</Filter> 12430 12442 </ClInclude> -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r162875 r162933 66 66 01E6C2E41194B2820050821C /* SpellingDot@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 01E6C2E31194B2820050821C /* SpellingDot@2x.png */; }; 67 67 0562F9611573F88F0031CA16 /* PlatformLayer.h in Headers */ = {isa = PBXBuildFile; fileRef = 0562F9601573F88F0031CA16 /* PlatformLayer.h */; settings = {ATTRIBUTES = (Private, ); }; }; 68 05D913CEEAB2A60534218ACF /* MathMLMencloseElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C3E61C653A64807A83E76FB8 /* MathMLMencloseElement.cpp */; }; 68 69 05FD69E012845D4300B2BEB3 /* DOMTimeStamp.h in Headers */ = {isa = PBXBuildFile; fileRef = 05FD69DF12845D4300B2BEB3 /* DOMTimeStamp.h */; settings = {ATTRIBUTES = (Private, ); }; }; 69 70 06027CAD0B1CBFC000884B2D /* ContextMenuItem.h in Headers */ = {isa = PBXBuildFile; fileRef = 06027CAC0B1CBFC000884B2D /* ContextMenuItem.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 1229 1230 339B5B63131DAA3200F48D02 /* CookiesStrategy.h in Headers */ = {isa = PBXBuildFile; fileRef = 339B5B62131DAA3200F48D02 /* CookiesStrategy.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1230 1231 33D0212D131DB37B004091A8 /* CookieStorage.h in Headers */ = {isa = PBXBuildFile; fileRef = E13F01EA1270E10D00DFBA71 /* CookieStorage.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1232 3571883EEF618793751E4089 /* RenderMathMLMenclose.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 3662F984047CEDBE5DDDAFAA /* RenderMathMLMenclose.cpp */; }; 1231 1233 3717D7E817ECC591003C276D /* extract-localizable-strings.pl in Copy Scripts */ = {isa = PBXBuildFile; fileRef = 3717D7E517ECC3A6003C276D /* extract-localizable-strings.pl */; }; 1232 1234 371941961566B37200A276D8 /* WebCoreNSCellExtras.m in Sources */ = {isa = PBXBuildFile; fileRef = 371941941566B37200A276D8 /* WebCoreNSCellExtras.m */; }; … … 8046 8048 3390CA530FFC157B00921962 /* NotificationCenter.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = NotificationCenter.idl; sourceTree = "<group>"; }; 8047 8049 339B5B62131DAA3200F48D02 /* CookiesStrategy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CookiesStrategy.h; sourceTree = "<group>"; }; 8050 3662F984047CEDBE5DDDAFAA /* RenderMathMLMenclose.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = RenderMathMLMenclose.cpp; path = rendering/mathml/RenderMathMLMenclose.cpp; sourceTree = SOURCE_ROOT; }; 8048 8051 3717D7E517ECC3A6003C276D /* extract-localizable-strings.pl */ = {isa = PBXFileReference; lastKnownFileType = text.script.perl; path = "extract-localizable-strings.pl"; sourceTree = "<group>"; }; 8049 8052 371941941566B37200A276D8 /* WebCoreNSCellExtras.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WebCoreNSCellExtras.m; sourceTree = "<group>"; }; … … 10537 10540 A1E1154513015C4E0054AC8C /* PointLightSource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = PointLightSource.cpp; path = filters/PointLightSource.cpp; sourceTree = "<group>"; }; 10538 10541 A1E1154713015C5D0054AC8C /* SpotLightSource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SpotLightSource.cpp; path = filters/SpotLightSource.cpp; sourceTree = "<group>"; }; 10542 A208E222A56A0C7575F2A72E /* RenderMathMLMenclose.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RenderMathMLMenclose.h; path = rendering/mathml/RenderMathMLMenclose.h; sourceTree = SOURCE_ROOT; }; 10539 10543 A2B9217216C5CC420041DCD9 /* IntRectExtent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IntRectExtent.h; sourceTree = "<group>"; }; 10540 10544 A31C4E4C16E02AA6002F7957 /* OESTextureHalfFloat.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = OESTextureHalfFloat.cpp; path = canvas/OESTextureHalfFloat.cpp; sourceTree = "<group>"; }; … … 12567 12571 C3CF17A215B0063F00276D39 /* IdTargetObserverRegistry.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = IdTargetObserverRegistry.cpp; sourceTree = "<group>"; }; 12568 12572 C3CF17A315B0063F00276D39 /* IdTargetObserverRegistry.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IdTargetObserverRegistry.h; sourceTree = "<group>"; }; 12573 C3E61C653A64807A83E76FB8 /* MathMLMencloseElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MathMLMencloseElement.cpp; sourceTree = "<group>"; }; 12569 12574 C4CD629818383766007EBAF1 /* FrameSnapshotting.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FrameSnapshotting.cpp; sourceTree = "<group>"; }; 12570 12575 C4CD629918383766007EBAF1 /* FrameSnapshotting.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FrameSnapshotting.h; sourceTree = "<group>"; }; … … 12825 12830 CE08C3D0152B599A0021B8C2 /* AlternativeTextController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AlternativeTextController.h; sourceTree = "<group>"; }; 12826 12831 CE5CB1B314EDAB6F00BB2795 /* EventSender.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EventSender.h; sourceTree = "<group>"; }; 12832 CE6D89294C7AACE0AD89B3DD /* MathMLMencloseElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MathMLMencloseElement.h; sourceTree = "<group>"; }; 12827 12833 CE7B2DAF1586ABAD0098B3FA /* AlternativeTextUIController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AlternativeTextUIController.h; path = mac/AlternativeTextUIController.h; sourceTree = "<group>"; }; 12828 12834 CE7B2DB01586ABAD0098B3FA /* AlternativeTextUIController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AlternativeTextUIController.mm; path = mac/AlternativeTextUIController.mm; sourceTree = "<group>"; }; … … 14255 14261 1CDD44660BA9C80000F90147 /* Configurations */, 14256 14262 449195900FBE175B00D9F824 /* Exports */, 14263 3662F984047CEDBE5DDDAFAA /* RenderMathMLMenclose.cpp */, 14264 A208E222A56A0C7575F2A72E /* RenderMathMLMenclose.h */, 14257 14265 ); 14258 14266 name = WebKit; … … 22199 22207 FABE72F11059C1EB00D999DD /* MathMLMathElement.cpp */, 22200 22208 FABE72F21059C1EB00D999DD /* MathMLMathElement.h */, 22209 C3E61C653A64807A83E76FB8 /* MathMLMencloseElement.cpp */, 22210 CE6D89294C7AACE0AD89B3DD /* MathMLMencloseElement.h */, 22201 22211 F75A059AF170D8FAA5B8CABE /* MathMLSelectElement.cpp */, 22202 22212 59780849D41E6F65D81198BC /* MathMLSelectElement.h */, … … 26248 26258 buildActionMask = 2147483647; 26249 26259 files = ( 26260 05D913CEEAB2A60534218ACF /* MathMLMencloseElement.cpp in Sources */, 26261 3571883EEF618793751E4089 /* RenderMathMLMenclose.cpp in Sources */, 26250 26262 7A29BA6A187B7C1D00F29CEB /* TemporaryOpenGLSetting.cpp in Sources */, 26251 26263 41E1B1D00FF5986900576B3B /* AbstractWorker.cpp in Sources */, -
trunk/Source/WebCore/css/mathml.css
r161286 r162933 43 43 } 44 44 45 mo, mrow, mfenced, mfrac, msub, msup, msubsup, mmultiscripts, mprescripts, none, munder, mover, munderover, msqrt, mroot, merror, mphantom, mstyle {45 mo, mrow, mfenced, mfrac, msub, msup, msubsup, mmultiscripts, mprescripts, none, munder, mover, munderover, msqrt, mroot, merror, mphantom, mstyle, menclose { 46 46 display: -webkit-inline-flex !important; 47 47 } 48 48 49 math, mrow, mfenced, msqrt, mroot, merror, mphantom, mstyle {49 math, mrow, mfenced, msqrt, mroot, merror, mphantom, mstyle, menclose { 50 50 -webkit-align-items: baseline; 51 51 } -
trunk/Source/WebCore/mathml/MathMLAllInOne.cpp
r160005 r162933 29 29 #include "MathMLInlineContainerElement.cpp" 30 30 #include "MathMLMathElement.cpp" 31 #include "MathMLMencloseElement.cpp" 31 32 #include "MathMLSelectElement.cpp" 32 33 #include "MathMLTextElement.cpp" -
trunk/Source/WebCore/mathml/MathMLElement.h
r162139 r162933 62 62 virtual void attributeChanged(const QualifiedName&, const AtomicString& newValue, AttributeModificationReason) override; 63 63 64 private:65 64 virtual bool isPresentationAttribute(const QualifiedName&) const override; 66 65 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) override; 66 private: 67 67 68 68 virtual void updateSelectedChild() { }; -
trunk/Source/WebCore/mathml/MathMLInlineContainerElement.cpp
r161181 r162933 35 35 #include "RenderMathMLFenced.h" 36 36 #include "RenderMathMLFraction.h" 37 #include "RenderMathMLMenclose.h" 37 38 #include "RenderMathMLRoot.h" 38 39 #include "RenderMathMLRow.h" -
trunk/Source/WebCore/mathml/MathMLMencloseElement.h
-
Property
svn:executable
set to
*
r162932 r162933 1 1 /* 2 * Copyright (C) 20 09 Alex Milowski (alex@milowski.com). All rights reserved.2 * Copyright (C) 2014 Gurpreet Kaur (k.gurpreet@samsung.com). All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 23 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 24 */ 25 26 #ifndef RenderMathMLSquareRoot_h27 #define RenderMathMLSquareRoot_h25 26 #ifndef MathMLMencloseElement_h 27 #define MathMLMencloseElement_h 28 28 29 29 #if ENABLE(MATHML) 30 31 #include "RenderMathMLRoot.h" 30 #include "MathMLInlineContainerElement.h" 32 31 33 32 namespace WebCore { 34 35 // Render sqrt(base), using radical notation. 36 class RenderMathMLSquareRoot final : public RenderMathMLRoot { 33 34 class MathMLMencloseElement final: public MathMLInlineContainerElement { 37 35 public: 38 RenderMathMLSquareRoot(Element&, PassRef<RenderStyle>); 39 36 static PassRefPtr<MathMLMencloseElement> create(const QualifiedName& tagName, Document&); 37 const Vector<String>& notationValues() const { return m_notationValues; } 38 bool isRadical() const { return m_isRadicalValue; } 39 40 40 private: 41 virtual bool isRenderMathMLSquareRoot() const override { return true; } 42 virtual const char* renderName() const override { return "RenderMathMLSquareRoot"; } 41 MathMLMencloseElement(const QualifiedName&, Document&); 42 virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override; 43 virtual bool isPresentationAttribute(const QualifiedName&) const override; 44 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) override; 45 virtual void finishParsingChildren() override; 46 String longDivLeftPadding() const; 47 48 Vector<String> m_notationValues; 49 bool m_isRadicalValue; 43 50 }; 44 51 52 inline MathMLMencloseElement* toMathMLMencloseElement(Node* node) 53 { 54 ASSERT_WITH_SECURITY_IMPLICATION(!node || (node->isElementNode() && toElement(node)->hasTagName(MathMLNames::mencloseTag))); 55 return static_cast<MathMLMencloseElement*>(node); 56 } 57 45 58 } 46 59 47 60 #endif // ENABLE(MATHML) 48 49 #endif // RenderMathMLSquareRoot_h 61 #endif // MathMLMencloseElement_h -
Property
svn:executable
set to
-
trunk/Source/WebCore/mathml/mathattrs.in
r161430 r162933 25 25 mathsize 26 26 mathvariant 27 notation 27 28 numalign 28 29 open -
trunk/Source/WebCore/mathml/mathtags.in
r161495 r162933 32 32 mmultiscripts interfaceName=MathMLInlineContainerElement 33 33 mprescripts interfaceName=MathMLInlineContainerElement 34 menclose interfaceName=MathMLMencloseElement 34 35 none interfaceName=MathMLInlineContainerElement 35 36 semantics interfaceName=MathMLSelectElement … … 37 38 maligngroup interfaceName=MathMLElement 38 39 malignmark interfaceName=MathMLElement 39 menclose interfaceName=MathMLElement40 40 mglyph interfaceName=MathMLElement 41 41 mlabeledtr interfaceName=MathMLElement -
trunk/Source/WebCore/rendering/mathml/RenderMathMLMenclose.h
-
Property
svn:executable
set to
*
r162932 r162933 1 1 /* 2 * Copyright (C) 20 09 Alex Milowski (alex@milowski.com). All rights reserved.2 * Copyright (C) 2014 Gurpreet Kaur (k.gurpreet@samsung.com). All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 23 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 24 */ 25 26 #ifndef RenderMathML SquareRoot_h27 #define RenderMathML SquareRoot_h25 26 #ifndef RenderMathMLMenclose_h 27 #define RenderMathMLMenclose_h 28 28 29 29 #if ENABLE(MATHML) 30 31 #include "RenderMathMLRoot.h" 30 #include "RenderMathMLRow.h" 32 31 33 32 namespace WebCore { 34 33 35 // Render sqrt(base), using radical notation. 36 class RenderMathMLSquareRoot final : public RenderMathMLRoot { 34 class RenderMathMLMenclose final: public RenderMathMLRow { 37 35 public: 38 RenderMathML SquareRoot(Element&, PassRef<RenderStyle>);39 36 RenderMathMLMenclose(Element&, PassRef<RenderStyle>); 37 40 38 private: 41 virtual bool isRenderMathMLSquareRoot() const override { return true; } 42 virtual const char* renderName() const override { return "RenderMathMLSquareRoot"; } 39 virtual const char* renderName() const { return "RenderMathMLMenclose"; } 40 virtual void paint(PaintInfo&, const LayoutPoint&) override; 41 virtual void updateLogicalHeight() override; 42 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = nullptr) override; 43 virtual void computePreferredLogicalWidths() override; 44 bool checkNotationalValuesValidity(const Vector<String>&) const; 43 45 }; 44 46 … … 46 48 47 49 #endif // ENABLE(MATHML) 48 49 #endif // RenderMathMLSquareRoot_h 50 #endif // RenderMathMLMenclose_h -
Property
svn:executable
set to
-
trunk/Source/WebCore/rendering/mathml/RenderMathMLRoot.cpp
r161493 r162933 75 75 } 76 76 77 RenderMathMLRoot::RenderMathMLRoot(Document& document, PassRef<RenderStyle> style) 78 : RenderMathMLBlock(document, std::move(style)) 79 , m_intrinsicPaddingBefore(0) 80 , m_intrinsicPaddingAfter(0) 81 , m_intrinsicPaddingStart(0) 82 , m_intrinsicPaddingEnd(0) 83 { 84 } 77 85 LayoutUnit RenderMathMLRoot::paddingTop() const 78 86 { -
trunk/Source/WebCore/rendering/mathml/RenderMathMLRoot.h
r162158 r162933 37 37 public: 38 38 RenderMathMLRoot(Element&, PassRef<RenderStyle>); 39 RenderMathMLRoot(Document&, PassRef<RenderStyle>); 39 40 40 41 virtual LayoutUnit paddingTop() const override; -
trunk/Source/WebCore/rendering/mathml/RenderMathMLSquareRoot.cpp
r158097 r162933 31 31 #include "RenderMathMLSquareRoot.h" 32 32 33 #include "RenderMathMLMenclose.h" 34 33 35 namespace WebCore { 34 36 … … 38 40 } 39 41 42 RenderMathMLSquareRoot::RenderMathMLSquareRoot(Document& document, PassRef<RenderStyle> style) 43 : RenderMathMLRoot(document, std::move(style)) 44 { 40 45 } 41 46 47 RenderPtr<RenderMathMLSquareRoot> RenderMathMLSquareRoot::createAnonymousWithParentRenderer(RenderMathMLMenclose& parent) 48 { 49 RenderPtr<RenderMathMLSquareRoot> squareRoot = createRenderer<RenderMathMLSquareRoot>(parent.document(), RenderStyle::createAnonymousStyleWithDisplay(&parent.style(), FLEX)); 50 squareRoot->initializeStyle(); 51 return squareRoot; 52 } 53 54 } 42 55 #endif // ENABLE(MATHML) -
trunk/Source/WebCore/rendering/mathml/RenderMathMLSquareRoot.h
r162158 r162933 31 31 #include "RenderMathMLRoot.h" 32 32 33 33 34 namespace WebCore { 34 35 36 class RenderMathMLMenclose; 37 35 38 // Render sqrt(base), using radical notation. 36 39 class RenderMathMLSquareRoot final : public RenderMathMLRoot { 37 40 public: 38 41 RenderMathMLSquareRoot(Element&, PassRef<RenderStyle>); 42 RenderMathMLSquareRoot(Document&, PassRef<RenderStyle>); 43 static RenderPtr<RenderMathMLSquareRoot> createAnonymousWithParentRenderer(RenderMathMLMenclose&); 39 44 40 45 private:
Note: See TracChangeset
for help on using the changeset viewer.