Changeset 153088 in webkit


Ignore:
Timestamp:
Jul 24, 2013 10:12:15 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Graphical elements inside mphantom should not be visible.
https://bugs.webkit.org/show_bug.cgi?id=116600.

Patch by Frédéric Wang <fred.wang@free.fr> on 2013-07-24
Reviewed by Chris Fleizach.

Source/WebCore:

Test: mathml/presentation/phantom.html

  • rendering/mathml/RenderMathMLFraction.cpp:

(WebCore::RenderMathMLFraction::paint): don't paint the fraction bar when the visibility is not "visible"

  • rendering/mathml/RenderMathMLRoot.cpp:

(WebCore::RenderMathMLRoot::paint): don't paint the radical symbol when the visibility is not "visible"

LayoutTests:

  • mathml/presentation/phantom-expected.html: Added.
  • mathml/presentation/phantom.html: Added.
Location:
trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r153083 r153088  
     12013-07-24  Frédéric Wang  <fred.wang@free.fr>
     2
     3        Graphical elements inside mphantom should not be visible.
     4        https://bugs.webkit.org/show_bug.cgi?id=116600.
     5
     6        Reviewed by Chris Fleizach.
     7
     8        * mathml/presentation/phantom-expected.html: Added.
     9        * mathml/presentation/phantom.html: Added.
     10
    1112013-07-24  Simon Pena  <simon.pena@samsung.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r153086 r153088  
     12013-07-24  Frédéric Wang  <fred.wang@free.fr>
     2
     3        Graphical elements inside mphantom should not be visible.
     4        https://bugs.webkit.org/show_bug.cgi?id=116600.
     5
     6        Reviewed by Chris Fleizach.
     7
     8        Test: mathml/presentation/phantom.html
     9
     10        * rendering/mathml/RenderMathMLFraction.cpp:
     11        (WebCore::RenderMathMLFraction::paint): don't paint the fraction bar when the visibility is not "visible"
     12        * rendering/mathml/RenderMathMLRoot.cpp:
     13        (WebCore::RenderMathMLRoot::paint): don't paint the radical symbol when the visibility is not "visible"
     14
    1152013-07-24  Brendan Long  <b.long@cablelabs.com>
    216
  • trunk/Source/WebCore/rendering/mathml/RenderMathMLFraction.cpp

    r152840 r153088  
    144144{
    145145    RenderMathMLBlock::paint(info, paintOffset);
    146     if (info.context->paintingDisabled() || info.phase != PaintPhaseForeground)
     146    if (info.context->paintingDisabled() || info.phase != PaintPhaseForeground || style()->visibility() != VISIBLE)
    147147        return;
    148148   
  • trunk/Source/WebCore/rendering/mathml/RenderMathMLRoot.cpp

    r142056 r153088  
    252252    RenderMathMLBlock::paint(info, paintOffset);
    253253   
    254     if (info.context->paintingDisabled())
     254    if (info.context->paintingDisabled() || style()->visibility() != VISIBLE)
    255255        return;
    256256   
Note: See TracChangeset for help on using the changeset viewer.