[SCM] WebKit Debian packaging branch, webkit-1.3, updated. upstream/1.3.7-4207-g178b198

commit-queue at webkit.org commit-queue at webkit.org
Sun Feb 20 22:46:38 UTC 2011


The following commit has been merged in the webkit-1.3 branch:
commit 823e4cda7660a036ccf7df8226279d6afabd7f2e
Author: commit-queue at webkit.org <commit-queue at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue Jan 11 12:44:11 2011 +0000

    2011-01-11  François Sausset  <sausset at gmail.com>
    
            Reviewed by Eric Seidel.
    
            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:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75487 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index d40995d..4f4d5e9 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,3 +1,16 @@
+2011-01-11  François Sausset  <sausset at gmail.com>
+
+        Reviewed by Eric Seidel.
+
+        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:
+
 2011-01-11  Pavel Feldman  <pfeldman at chromium.org>
 
         Reviewed by Yury Semikhatsky.
diff --git a/Source/WebCore/rendering/mathml/RenderMathMLFraction.cpp b/Source/WebCore/rendering/mathml/RenderMathMLFraction.cpp
index a3e66bd..5e7465c 100644
--- a/Source/WebCore/rendering/mathml/RenderMathMLFraction.cpp
+++ b/Source/WebCore/rendering/mathml/RenderMathMLFraction.cpp
@@ -38,12 +38,12 @@ namespace WebCore {
     
 using namespace MathMLNames;
 
-static const double gHorizontalPad = 0.2;
-static const double gLineThin = 0.33;
-static const double gLineMedium = 1.;
-static const double gLineThick = 3.;
-static const double gFractionBarWidth = 0.05;
-static const double gDenominatorPad = 0.1;
+static const float gHorizontalPad = 0.2;
+static const float gLineThin = 0.33;
+static const float gLineMedium = 1.;
+static const float gLineThick = 3.;
+static const float gFractionBarWidth = 0.05;
+static const float gDenominatorPad = 0.1;
 
 RenderMathMLFraction::RenderMathMLFraction(Element* fraction) 
     : RenderMathMLBlock(fraction)
@@ -157,7 +157,7 @@ void RenderMathMLFraction::paint(PaintInfo& info, int tx, int ty)
     
     info.context->save();
     
-    info.context->setStrokeThickness(static_cast<float>(m_lineThickness));
+    info.context->setStrokeThickness(m_lineThickness);
     info.context->setStrokeStyle(SolidStroke);
     info.context->setStrokeColor(style()->visitedDependentColor(CSSPropertyColor), ColorSpaceSRGB);
     
diff --git a/Source/WebCore/rendering/mathml/RenderMathMLFraction.h b/Source/WebCore/rendering/mathml/RenderMathMLFraction.h
index 2a03f81..c96d56d 100644
--- a/Source/WebCore/rendering/mathml/RenderMathMLFraction.h
+++ b/Source/WebCore/rendering/mathml/RenderMathMLFraction.h
@@ -43,7 +43,7 @@ public:
 protected:
     virtual void layout();
 private:
-    double m_lineThickness;
+    float m_lineThickness;
 };
 
 }

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list