Skip to content

Commit b989f90

Browse files
author
Anders Carlsson
committed
Fix Windows build.
* WebProcess/WebPage/PageOverlay.cpp: (WebKit::PageOverlay::fadeAnimationTimerFired): Canonical link: https://commits.webkit.org/73778@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84036 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent f83355b commit b989f90

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

Source/WebKit2/ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2011-04-15 Anders Carlsson <andersca@apple.com>
2+
3+
Fix Windows build.
4+
5+
* WebProcess/WebPage/PageOverlay.cpp:
6+
(WebKit::PageOverlay::fadeAnimationTimerFired):
7+
18
2011-04-15 Anders Carlsson <andersca@apple.com>
29

310
Reviewed by Sam Weinig.

Source/WebKit2/WebProcess/WebPage/PageOverlay.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ void PageOverlay::fadeAnimationTimerFired()
157157
if (animationProgress >= 1.0)
158158
animationProgress = 1.0;
159159

160-
double sine = sin(M_PI_2 * animationProgress);
160+
double sine = sin(piOverTwoFloat * animationProgress);
161161
float fadeAnimationValue = sine * sine;
162162

163163
m_fractionFadedIn = (m_fadeAnimationType == FadeInAnimation) ? fadeAnimationValue : 1 - fadeAnimationValue;

0 commit comments

Comments
 (0)