Changeset 76368 in webkit
- Timestamp:
- Jan 21, 2011 11:27:49 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r76366 r76368 1 2011-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 1 16 2011-01-21 Dimitri Glazkov <dglazkov@chromium.org> 2 17 -
trunk/Source/WebCore/rendering/mathml/RenderMathMLFraction.cpp
r75837 r76368 40 40 using namespace MathMLNames; 41 41 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;42 static const float gHorizontalPad = 0.2f; 43 static const float gLineThin = 0.33f; 44 static const float gLineMedium = 1.f; 45 static const float gLineThick = 3.f; 46 static const float gFractionBarWidth = 0.05f; 47 static const float gDenominatorPad = 0.1f; 48 48 49 49 RenderMathMLFraction::RenderMathMLFraction(Element* fraction) … … 159 159 info.context->save(); 160 160 161 info.context->setStrokeThickness( static_cast<float>(m_lineThickness));161 info.context->setStrokeThickness(m_lineThickness); 162 162 info.context->setStrokeStyle(SolidStroke); 163 163 info.context->setStrokeColor(style()->visitedDependentColor(CSSPropertyColor), ColorSpaceSRGB); -
trunk/Source/WebCore/rendering/mathml/RenderMathMLFraction.h
r75490 r76368 44 44 virtual void layout(); 45 45 private: 46 doublem_lineThickness;46 float m_lineThickness; 47 47 }; 48 48
Note: See TracChangeset
for help on using the changeset viewer.