Reviewed by Anders.
- Fixed Windows build
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
* wtf/MathExtras.h: Implement inline versions of these functions
(nextafter):
(nextafterf):
WebCore:
Reviewed by Anders.
- Fixed Windows build.
* platform/Color.cpp:
(WebCore::makeRGBAFromHSLA): Whitespace change
* platform/win/TemporaryLinkStubs.cpp: Add new method stubs
(PlatformScrollBar::PlatformScrollBar):
(PlatformScrollBar::~PlatformScrollBar):
(PlatformScrollBar::width):
(PlatformScrollBar::height):
(PlatformScrollBar::setEnabled):
(PlatformScrollBar::paint):
(PlatformScrollBar::setScrollBarValue):
(PlatformScrollBar::setKnobProportion):
(PlatformScrollBar::setRect):
(ScrollBar::ScrollBar):
(ScrollBar::scroll):
(ScrollBar::setValue):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15774
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-08-03 Adam Roben <aroben@apple.com>
+
+ Reviewed by Anders.
+
+ - Fixed Windows build
+
+ * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
+ * wtf/MathExtras.h: Implement inline versions of these functions
+ (nextafter):
+ (nextafterf):
+
2006-08-02 Adam Roben <aroben@apple.com>
Reviewed by Darin.
/>
<Tool
Name="VCPostBuildEventTool"
- CommandLine="mkdir 2>NUL "$(WebKitOutputDir)\$(ConfigurationName)\WTF"
xcopy /y "$(ProjectDir)\..\..\..\JavaScriptCore\wtf\Vector.h" "$(WebKitOutputDir)\$(ConfigurationName)\WTF"
xcopy /y "$(ProjectDir)\..\..\..\JavaScriptCore\wtf\Assertions.h" "$(WebKitOutputDir)\$(ConfigurationName)\WTF"
xcopy /y "$(ProjectDir)\..\..\..\JavaScriptCore\wtf\VectorTraits.h" "$(WebKitOutputDir)\$(ConfigurationName)\WTF"
xcopy /y "$(ProjectDir)\..\..\..\JavaScriptCore\wtf\RefPtr.h" "$(WebKitOutputDir)\$(ConfigurationName)\WTF"
xcopy /y "$(ProjectDir)\..\..\..\JavaScriptCore\wtf\Platform.h" "$(WebKitOutputDir)\$(ConfigurationName)\WTF"
xcopy /y "$(ProjectDir)\..\..\..\JavaScriptCore\wtf\FastMalloc.h" "$(WebKitOutputDir)\$(ConfigurationName)\WTF"
copy /y "$(TargetPath)" "$(WebKitOutputDir)\$(ConfigurationName)\WTF\WTF.lib"
"
+ CommandLine="mkdir 2>NUL "$(WebKitOutputDir)\$(ConfigurationName)\WTF"
xcopy /y "$(ProjectDir)\..\..\..\JavaScriptCore\wtf\Vector.h" "$(WebKitOutputDir)\$(ConfigurationName)\WTF"
xcopy /y "$(ProjectDir)\..\..\..\JavaScriptCore\wtf\Assertions.h" "$(WebKitOutputDir)\$(ConfigurationName)\WTF"
xcopy /y "$(ProjectDir)\..\..\..\JavaScriptCore\wtf\VectorTraits.h" "$(WebKitOutputDir)\$(ConfigurationName)\WTF"
xcopy /y "$(ProjectDir)\..\..\..\JavaScriptCore\wtf\RefPtr.h" "$(WebKitOutputDir)\$(ConfigurationName)\WTF"
xcopy /y "$(ProjectDir)\..\..\..\JavaScriptCore\wtf\Platform.h" "$(WebKitOutputDir)\$(ConfigurationName)\WTF"
xcopy /y "$(ProjectDir)\..\..\..\JavaScriptCore\wtf\FastMalloc.h" "$(WebKitOutputDir)\$(ConfigurationName)\WTF"
xcopy /y "$(ProjectDir)\..\..\..\JavaScriptCore\wtf\MathExtras.h" "$(WebKitOutputDir)\$(ConfigurationName)\WTF"
copy /y "$(TargetPath)" "$(WebKitOutputDir)\$(ConfigurationName)\WTF\WTF.lib"
"
/>
</Configuration>
<Configuration
RelativePath="..\..\wtf\HashTraits.h"
>
</File>
+ <File
+ RelativePath="..\..\wtf\MathExtras.h"
+ >
+ </File>
<File
RelativePath="..\..\wtf\PassRefPtr.h"
>
inline float roundf(float num) { return num > 0 ? floorf(num + 0.5f) : ceilf(num - 0.5f); }
inline bool signbit(double num) { return _copysign(1.0, num) < 0; }
+inline double nextafter(double x, double y) { return _nextafter(x, y); }
+inline float nextafterf(float x, float y) { return x > y ? x - FLT_EPSILON : x + FLT_EPSILON; }
+
#if COMPILER(MSVC)
// Work around a bug in the Microsoft CRT, where fmod(x, +-infinity) yields NaN instead of x.
+2006-08-03 Adam Roben <aroben@apple.com>
+
+ Reviewed by Anders.
+
+ - Fixed Windows build.
+
+ * platform/Color.cpp:
+ (WebCore::makeRGBAFromHSLA): Whitespace change
+ * platform/win/TemporaryLinkStubs.cpp: Add new method stubs
+ (PlatformScrollBar::PlatformScrollBar):
+ (PlatformScrollBar::~PlatformScrollBar):
+ (PlatformScrollBar::width):
+ (PlatformScrollBar::height):
+ (PlatformScrollBar::setEnabled):
+ (PlatformScrollBar::paint):
+ (PlatformScrollBar::setScrollBarValue):
+ (PlatformScrollBar::setKnobProportion):
+ (PlatformScrollBar::setRect):
+ (ScrollBar::ScrollBar):
+ (ScrollBar::scroll):
+ (ScrollBar::setValue):
+
2006-08-02 Justin Garcia <justin.garcia@apple.com>
Reviewed by mjs
#include "PlatformString.h"
#include <math.h>
#include <wtf/Assertions.h>
+#include <wtf/MathExtras.h>
#include "ColorData.c"
RGBA32 makeRGBAFromHSLA(double hue, double saturation, double lightness, double alpha)
{
const double scaleFactor = nextafter(256.0, 0.0);
-
+
if (!saturation) {
int greyValue = static_cast<int>(lightness * scaleFactor);
return makeRGBA(greyValue, greyValue, greyValue, static_cast<int>(alpha * scaleFactor));
#include "loader.h"
#include "FrameView.h"
#include "KURL.h"
+#include "PlatformScrollBar.h"
#include "ScrollBar.h"
#include "JavaAppletWidget.h"
-#include "ScrollBar.h"
#include "Path.h"
#include "PlatformMouseEvent.h"
#include "CookieJar.h"
IntRect PopUpButton::frameGeometry() const { return IntRect(); }
void PopUpButton::setFrameGeometry(IntRect const&) { }
-ScrollBar::ScrollBar(ScrollBarOrientation) { }
-ScrollBar::~ScrollBar() { }
+PlatformScrollBar::PlatformScrollBar(ScrollBarClient* client, ScrollBarOrientation orientation) : ScrollBar(client, orientation) { }
+PlatformScrollBar::~PlatformScrollBar() { }
+int PlatformScrollBar::width() const { return 0; }
+int PlatformScrollBar::height() const { return 0; }
+void PlatformScrollBar::setEnabled(bool) { }
+void PlatformScrollBar::paint(GraphicsContext*, const IntRect& damageRect) { }
+void PlatformScrollBar::setScrollBarValue(int v) { }
+void PlatformScrollBar::setKnobProportion(int visibleSize, int totalSize) { }
+void PlatformScrollBar::setRect(const IntRect&) { }
+
+ScrollBar::ScrollBar(ScrollBarClient*, ScrollBarOrientation) { }
void ScrollBar::setSteps(int, int) { }
-bool ScrollBar::scroll(ScrollDirection, ScrollGranularity, float) { return 0; }
-bool ScrollBar::setValue(int) { return 0; }
+bool ScrollBar::scroll(ScrollDirection, ScrollGranularity, float) { return false; }
+bool ScrollBar::setValue(int) { return false; }
void ScrollBar::setKnobProportion(int, int) { }
ListBox::ListBox() { }