Changeset 64668 in webkit


Ignore:
Timestamp:
Aug 4, 2010 12:56:17 PM (14 years ago)
Author:
commit-queue@webkit.org
Message:

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

Reviewed by Kenneth Rohde Christiansen.

Regression test: overflow: auto; on a math element was a cause of crash.
https://bugs.webkit.org/show_bug.cgi?id=42894

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

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

Reviewed by Kenneth Rohde Christiansen.

Remove unnecessary calls to setStyle() in MathML code that made RenderLayer crash.
https://bugs.webkit.org/show_bug.cgi?id=42894

Test: mathml/presentation/style.xhtml

  • mathml/MathMLInlineContainerElement.cpp: (WebCore::MathMLInlineContainerElement::createRenderer):
  • mathml/MathMLMathElement.cpp: (WebCore::MathMLMathElement::createRenderer):
  • mathml/MathMLTextElement.cpp: (WebCore::MathMLTextElement::createRenderer):
Location:
trunk
Files:
4 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r64659 r64668  
     12010-08-04  François Sausset  <sausset@gmail.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        Regression test: overflow: auto; on a math element was a cause of crash.
     6        https://bugs.webkit.org/show_bug.cgi?id=42894
     7
     8        * mathml/presentation/style.xhtml: Added.
     9        * platform/mac/mathml/presentation/style-expected.checksum: Added.
     10        * platform/mac/mathml/presentation/style-expected.png: Added.
     11        * platform/mac/mathml/presentation/style-expected.txt: Added.
     12
    1132010-08-04  Mario Sanchez Prada  <msanchez@igalia.com>
    214
  • trunk/WebCore/ChangeLog

    r64660 r64668  
     12010-08-04  François Sausset  <sausset@gmail.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        Remove unnecessary calls to setStyle() in MathML code that made RenderLayer crash.
     6        https://bugs.webkit.org/show_bug.cgi?id=42894
     7
     8        Test: mathml/presentation/style.xhtml
     9
     10        * mathml/MathMLInlineContainerElement.cpp:
     11        (WebCore::MathMLInlineContainerElement::createRenderer):
     12        * mathml/MathMLMathElement.cpp:
     13        (WebCore::MathMLMathElement::createRenderer):
     14        * mathml/MathMLTextElement.cpp:
     15        (WebCore::MathMLTextElement::createRenderer):
     16
    1172010-08-03  Kenneth Russell  <kbr@google.com>
    218
  • trunk/WebCore/mathml/MathMLInlineContainerElement.cpp

    r61293 r64668  
    5454}
    5555
    56 RenderObject* MathMLInlineContainerElement::createRenderer(RenderArena* arena, RenderStyle* style)
     56RenderObject* MathMLInlineContainerElement::createRenderer(RenderArena* arena, RenderStyle*)
    5757{
    58     RenderObject* object;
    5958    if (hasLocalName(MathMLNames::mrowTag))
    60         object = new (arena) RenderMathMLRow(this);
     59        return new (arena) RenderMathMLRow(this);
    6160    else if (hasLocalName(MathMLNames::msubTag))
    62         object = new (arena) RenderMathMLSubSup(this);
     61        return new (arena) RenderMathMLSubSup(this);
    6362    else if (hasLocalName(MathMLNames::msupTag))
    64         object = new (arena) RenderMathMLSubSup(this);
     63        return new (arena) RenderMathMLSubSup(this);
    6564    else if (hasLocalName(MathMLNames::msubsupTag))
    66         object = new (arena) RenderMathMLSubSup(this);
     65        return new (arena) RenderMathMLSubSup(this);
    6766    else if (hasLocalName(MathMLNames::moverTag))
    68         object = new (arena) RenderMathMLUnderOver(this);
     67        return new (arena) RenderMathMLUnderOver(this);
    6968    else if (hasLocalName(MathMLNames::munderTag))
    70         object = new (arena) RenderMathMLUnderOver(this);
     69        return new (arena) RenderMathMLUnderOver(this);
    7170    else if (hasLocalName(MathMLNames::munderoverTag))
    72         object = new (arena) RenderMathMLUnderOver(this);
     71        return new (arena) RenderMathMLUnderOver(this);
    7372    else if (hasLocalName(MathMLNames::mfracTag))
    74         object = new (arena) RenderMathMLFraction(this);
     73        return new (arena) RenderMathMLFraction(this);
    7574    else if (hasLocalName(MathMLNames::msqrtTag))
    76         object = new (arena) RenderMathMLSquareRoot(this);
     75        return new (arena) RenderMathMLSquareRoot(this);
    7776    else if (hasLocalName(MathMLNames::mrootTag))
    78         object = new (arena) RenderMathMLRoot(this);
     77        return new (arena) RenderMathMLRoot(this);
    7978    else
    80         object = new (arena) RenderMathMLBlock(this);
    81     object->setStyle(style);
    82     return object;
     79        return new (arena) RenderMathMLBlock(this);
    8380}
    8481
  • trunk/WebCore/mathml/MathMLMathElement.cpp

    r61293 r64668  
    4545}
    4646
    47 RenderObject* MathMLMathElement::createRenderer(RenderArena* arena, RenderStyle* style)
     47RenderObject* MathMLMathElement::createRenderer(RenderArena* arena, RenderStyle*)
    4848{
    49     RenderMathMLMath* renderer = new (arena) RenderMathMLMath(this);
    50     renderer->setStyle(style);
    51     return renderer;
     49    return new (arena) RenderMathMLMath(this);
    5250}
    5351
  • trunk/WebCore/mathml/MathMLTextElement.cpp

    r61293 r64668  
    5050RenderObject* MathMLTextElement::createRenderer(RenderArena* arena, RenderStyle* style)
    5151{
    52     if (hasLocalName(MathMLNames::moTag)) {
    53         RenderObject* object = new (arena) RenderMathMLOperator(this);
    54         object->setStyle(style);
    55         return object;
    56     }
     52    if (hasLocalName(MathMLNames::moTag))
     53        return new (arena) RenderMathMLOperator(this);
    5754
    5855    return MathMLElement::createRenderer(arena, style);
Note: See TracChangeset for help on using the changeset viewer.