[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc
andreas.kling at nokia.com
andreas.kling at nokia.com
Wed Dec 22 13:45:42 UTC 2010
The following commit has been merged in the debian/experimental branch:
commit 99c9764bb61c79760cd83abe96dcdf15f7baa929
Author: andreas.kling at nokia.com <andreas.kling at nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Sat Sep 25 01:57:13 2010 +0000
2010-09-24 Andreas Kling <andreas.kling at nokia.com>
Reviewed by Kenneth Rohde Christiansen.
SVG: Avoid calling pow() in genericParseNumber() unless necessary
https://bugs.webkit.org/show_bug.cgi?id=46537
0.4% speedup on <http://themaninblue.com/experiment/AnimationBenchmark/svg/>
* svg/SVGParserUtilities.cpp:
(WebCore::genericParseNumber): Only call pow() when we have an exponent.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68321 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 2f0f3f1..d216e51 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,15 @@
+2010-09-24 Andreas Kling <andreas.kling at nokia.com>
+
+ Reviewed by Kenneth Rohde Christiansen.
+
+ SVG: Avoid calling pow() in genericParseNumber() unless necessary
+ https://bugs.webkit.org/show_bug.cgi?id=46537
+
+ 0.4% speedup on <http://themaninblue.com/experiment/AnimationBenchmark/svg/>
+
+ * svg/SVGParserUtilities.cpp:
+ (WebCore::genericParseNumber): Only call pow() when we have an exponent.
+
2010-09-24 Martin Robinson <mrobinson at igalia.com>
Reviewed by Gustavo Noronha Silva.
diff --git a/WebCore/svg/SVGParserUtilities.cpp b/WebCore/svg/SVGParserUtilities.cpp
index b8b6d85..c37d207 100644
--- a/WebCore/svg/SVGParserUtilities.cpp
+++ b/WebCore/svg/SVGParserUtilities.cpp
@@ -113,7 +113,10 @@ template <typename FloatType> static bool genericParseNumber(const UChar*& ptr,
}
number = integer + decimal;
- number *= sign * static_cast<FloatType>(pow(10.0, expsign * exponent));
+ number *= sign;
+
+ if (exponent)
+ number *= static_cast<FloatType>(pow(10.0, expsign * exponent));
if (start == ptr)
return false;
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list