Changeset 76368 in webkit


Ignore:
Timestamp:
Jan 21, 2011 11:27:49 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-01-21 Patrick Gansterer <paroga@paroga.com>

Original patch from François Sausset <François Sausset>

Reviewed by Darin Adler.

Code cleaning in rendering/mathml/RenderMathMLFraction.cpp
https://bugs.webkit.org/show_bug.cgi?id=52201

Replace unneeded doubles by floats and remove unneeded casts.

  • rendering/mathml/RenderMathMLFraction.cpp: (WebCore::RenderMathMLFraction::paint):
  • rendering/mathml/RenderMathMLFraction.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r76366 r76368  
     12011-01-21  Patrick Gansterer  <paroga@paroga.com>
     2
     3        Original patch from François Sausset  <sausset@gmail.com>
     4
     5        Reviewed by Darin Adler.
     6
     7        Code cleaning in rendering/mathml/RenderMathMLFraction.cpp
     8        https://bugs.webkit.org/show_bug.cgi?id=52201
     9
     10        Replace unneeded doubles by floats and remove unneeded casts.
     11
     12        * rendering/mathml/RenderMathMLFraction.cpp:
     13        (WebCore::RenderMathMLFraction::paint):
     14        * rendering/mathml/RenderMathMLFraction.h:
     15
    1162011-01-21  Dimitri Glazkov  <dglazkov@chromium.org>
    217
  • trunk/Source/WebCore/rendering/mathml/RenderMathMLFraction.cpp

    r75837 r76368  
    4040using namespace MathMLNames;
    4141
    42 static const double gHorizontalPad = 0.2;
    43 static const double gLineThin = 0.33;
    44 static const double gLineMedium = 1.;
    45 static const double gLineThick = 3.;
    46 static const double gFractionBarWidth = 0.05;
    47 static const double gDenominatorPad = 0.1;
     42static const float gHorizontalPad = 0.2f;
     43static const float gLineThin = 0.33f;
     44static const float gLineMedium = 1.f;
     45static const float gLineThick = 3.f;
     46static const float gFractionBarWidth = 0.05f;
     47static const float gDenominatorPad = 0.1f;
    4848
    4949RenderMathMLFraction::RenderMathMLFraction(Element* fraction)
     
    159159    info.context->save();
    160160   
    161     info.context->setStrokeThickness(static_cast<float>(m_lineThickness));
     161    info.context->setStrokeThickness(m_lineThickness);
    162162    info.context->setStrokeStyle(SolidStroke);
    163163    info.context->setStrokeColor(style()->visitedDependentColor(CSSPropertyColor), ColorSpaceSRGB);
  • trunk/Source/WebCore/rendering/mathml/RenderMathMLFraction.h

    r75490 r76368  
    4444    virtual void layout();
    4545private:
    46     double m_lineThickness;
     46    float m_lineThickness;
    4747};
    4848
Note: See TracChangeset for help on using the changeset viewer.