Changeset 58349 in webkit


Ignore:
Timestamp:
Apr 27, 2010 4:13:03 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-27 François Sausset <François Sausset>

Reviewed by Kenneth Rohde Christiansen.

Additional MathML mroot & msqrt tests.
https://bugs.webkit.org/show_bug.cgi?id=37044

  • mathml/presentation/roots.xhtml: Added.
  • platform/mac/mathml/presentation/roots-expected.checksum: Added.
  • platform/mac/mathml/presentation/roots-expected.png: Added.
  • platform/mac/mathml/presentation/roots-expected.txt: Added.

2010-04-27 François Sausset <François Sausset>

Reviewed by Kenneth Rohde Christiansen.

Implementation of the MathML mroot & msqrt elements.
https://bugs.webkit.org/show_bug.cgi?id=37044

Test: mathml/presentation/roots.xhtml

  • WebCore.xcodeproj/project.pbxproj:
  • css/mathml.css: (mroot): (mroot > * + *): (mroot > * + mrow, mroot > * + mfenced):
  • mathml/MathMLInlineContainerElement.cpp: (WebCore::MathMLInlineContainerElement::createRenderer):
  • mathml/RenderMathMLRoot.cpp: Added. (WebCore::RenderMathMLRoot::RenderMathMLRoot): (WebCore::RenderMathMLRoot::addChild): (WebCore::RenderMathMLRoot::paint): (WebCore::RenderMathMLRoot::layout):
  • mathml/RenderMathMLRoot.h: Added.
  • mathml/RenderMathMLSquareRoot.cpp: Added. (WebCore::RenderMathMLSquareRoot::RenderMathMLSquareRoot): (WebCore::RenderMathMLSquareRoot::paint): (WebCore::RenderMathMLSquareRoot::layout):
  • mathml/RenderMathMLSquareRoot.h: Added.
Location:
trunk
Files:
8 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r58348 r58349  
     12010-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
    1132010-04-27  Jeremy Orlow  <jorlow@chromium.org>
    214
  • trunk/WebCore/ChangeLog

    r58347 r58349  
     12010-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
    1292010-04-27  Darin Adler  <darin@apple.com>
    230
  • trunk/WebCore/WebCore.xcodeproj/project.pbxproj

    r58266 r58349  
    221221                0FD723820EC8BD9300CA5DD7 /* FloatQuad.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FD723800EC8BD9300CA5DD7 /* FloatQuad.h */; settings = {ATTRIBUTES = (Private, ); }; };
    222222                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 */; };
    223227                0FF5025B102BA9010066F39A /* DOMStyleMedia.h in Headers */ = {isa = PBXBuildFile; fileRef = 0FF50259102BA9010066F39A /* DOMStyleMedia.h */; };
    224228                0FF5025C102BA9010066F39A /* DOMStyleMedia.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0FF5025A102BA9010066F39A /* DOMStyleMedia.mm */; };
     
    55985602                0FD723800EC8BD9300CA5DD7 /* FloatQuad.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FloatQuad.h; sourceTree = "<group>"; };
    55995603                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>"; };
    56005608                0FF50259102BA9010066F39A /* DOMStyleMedia.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMStyleMedia.h; sourceTree = "<group>"; };
    56015609                0FF5025A102BA9010066F39A /* DOMStyleMedia.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = DOMStyleMedia.mm; sourceTree = "<group>"; };
     
    1635016358                                FA5FAE4011126A5D00D3750F /* RenderMathMLOperator.cpp */,
    1635116359                                FA5FAE4111126A5D00D3750F /* RenderMathMLOperator.h */,
     16360                                0FF2813211821CB6007B7CD6 /* RenderMathMLRoot.cpp */,
     16361                                0FF2813311821CB6007B7CD6 /* RenderMathMLRoot.h */,
    1635216362                                FA0B1F8411125CEE007F9839 /* RenderMathMLRow.cpp */,
    1635316363                                FA0B1F8511125CEE007F9839 /* RenderMathMLRow.h */,
     16364                                0FF2813411821CB6007B7CD6 /* RenderMathMLSquareRoot.cpp */,
     16365                                0FF2813511821CB6007B7CD6 /* RenderMathMLSquareRoot.h */,
    1635416366                                FAC12CC21120DA6900DACC36 /* RenderMathMLSubSup.cpp */,
    1635516367                                FAC12CC31120DA6900DACC36 /* RenderMathMLSubSup.h */,
     
    1888418896                                2E3BC10B117D47C800B9409A /* DOMFileErrorInternal.h in Headers */,
    1888518897                                37FD4298118368460093C029 /* TreeDepthLimit.h in Headers */,
     18898                                0FF2859111864053007B7CD6 /* RenderMathMLRoot.h in Headers */,
     18899                                0FF2859311864055007B7CD6 /* RenderMathMLSquareRoot.h in Headers */,
    1888618900                        );
    1888718901                        runOnlyForDeploymentPostprocessing = 0;
     
    2112021134                                2E3BC0CA117D3E0800B9409A /* JSFileError.cpp in Sources */,
    2112121135                                2E3BC109117D479800B9409A /* DOMFileError.mm in Sources */,
     21136                                0FF2859011864052007B7CD6 /* RenderMathMLRoot.cpp in Sources */,
     21137                                0FF2859211864054007B7CD6 /* RenderMathMLSquareRoot.cpp in Sources */,
    2112221138                        );
    2112321139                        runOnlyForDeploymentPostprocessing = 0;
  • trunk/WebCore/css/mathml.css

    r56390 r58349  
    133133mroot {
    134134    display: inline-block;
     135    position: relative;
    135136    padding-top: 0.2em;
    136137    padding-left: 0.2em;
     
    139140mroot > * + * {
    140141    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
     150mroot > * + mrow, mroot > * + mfenced {
     151    padding-bottom: 0.4em;
    143152}
    144153
  • trunk/WebCore/mathml/MathMLInlineContainerElement.cpp

    r56340 r58349  
    3434#include "RenderMathMLFraction.h"
    3535#include "RenderMathMLMath.h"
     36#include "RenderMathMLRoot.h"
    3637#include "RenderMathMLRow.h"
     38#include "RenderMathMLSquareRoot.h"
    3739#include "RenderMathMLSubSup.h"
    3840#include "RenderMathMLUnderOver.h"
     
    7375    else if (hasLocalName(MathMLNames::mfracTag))
    7476        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);
    7581    else
    7682        object = new (arena) RenderMathMLBlock(this);
Note: See TracChangeset for help on using the changeset viewer.