Changeset 61326 in webkit


Ignore:
Timestamp:
Jun 17, 2010 8:11:42 AM (14 years ago)
Author:
Darin Adler
Message:

2010-06-17 Alex Milowski <alex@milowski.com>

Reviewed by Darin Adler.

Fixed a compile error in the paint() methods by making them use the
new visitedDependentColor() method.
https://bugs.webkit.org/show_bug.cgi?id=40327

  • mathml/RenderMathMLRoot.cpp: (WebCore::RenderMathMLRoot::paint): (WebCore::RenderMathMLRoot::layout): Fixed a crash where every child was assumed to be a RenderMathMLBlock instance when that isn't the case. Also, layout() needed to mark the index for layout before calling layout() on the index.
  • mathml/RenderMathMLSquareRoot.cpp: (WebCore::RenderMathMLSquareRoot::paint):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r61324 r61326  
     12010-06-17  Alex Milowski  <alex@milowski.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Fixed a compile error in the paint() methods by making them use the
     6        new visitedDependentColor() method.
     7        https://bugs.webkit.org/show_bug.cgi?id=40327
     8
     9        * mathml/RenderMathMLRoot.cpp:
     10        (WebCore::RenderMathMLRoot::paint):
     11        (WebCore::RenderMathMLRoot::layout): Fixed a crash where every child
     12        was assumed to be a RenderMathMLBlock instance when that isn't the
     13        case.  Also, layout() needed to mark the index for layout before
     14        calling layout() on the index.
     15        * mathml/RenderMathMLSquareRoot.cpp:
     16        (WebCore::RenderMathMLSquareRoot::paint):
     17
    1182010-06-17  Darin Adler  <darin@apple.com>
    219
  • trunk/WebCore/mathml/RenderMathMLRoot.cpp

    r58349 r61326  
    146146    info.context->setStrokeThickness(gRadicalLineThickness * style()->fontSize());
    147147    info.context->setStrokeStyle(SolidStroke);
    148     info.context->setStrokeColor(style()->color(), sRGBColorSpace);
     148    info.context->setStrokeColor(style()->visitedDependentColor(CSSPropertyColor), sRGBColorSpace);
    149149    info.context->setLineJoin(MiterJoin);
    150150    info.context->setMiterLimit(style()->fontSize());
     
    205205   
    206206    RenderObject* current = lastChild()->firstChild();
    207    
    208     toRenderMathMLBlock(current)->style()->setVerticalAlign(BASELINE);
     207    current->style()->setVerticalAlign(BASELINE);
    209208   
    210209    if (!maxHeight)
     
    239238    markContainingBlocksForLayout();
    240239    RenderBlock::layout();
    241    
     240
    242241    indexBox->style()->setBottom(Length(radicalHeight + style()->paddingBottom().value(), Fixed));
    243    
     242
     243    // Now that we've potentially changed its position, we need layout the index again.
     244    indexBox->setNeedsLayoutAndPrefWidthsRecalc();
    244245    indexBox->layout();
    245246}
  • trunk/WebCore/mathml/RenderMathMLSquareRoot.cpp

    r58349 r61326  
    115115    info.context->setStrokeThickness(gRadicalLineThickness * style()->fontSize());
    116116    info.context->setStrokeStyle(SolidStroke);
    117     info.context->setStrokeColor(style()->color(), sRGBColorSpace);
     117    info.context->setStrokeColor(style()->visitedDependentColor(CSSPropertyColor), sRGBColorSpace);
    118118    info.context->setLineJoin(MiterJoin);
    119119    info.context->setMiterLimit(style()->fontSize());
Note: See TracChangeset for help on using the changeset viewer.