+2006-03-05 Eric Seidel <eseidel@apple.com>
+
+ Reviewed by darin.
+
+ Make updateContents invalidate entire window for now.
+ Fix indentation in fileLoadTimer.
+
+ * platform/win/ScrollViewWin.cpp:
+ (WebCore::ScrollView::updateContents):
+ * platform/win/TransferJobWin.cpp:
+ (WebCore::TransferJob::fileLoadTimer):
+
2006-03-05 Eric Seidel <eseidel@apple.com>
Reviewed by adele.
namespace WebCore {
-void ScrollView::updateContents(const IntRect& dirtyRect, bool now)
+void ScrollView::updateContents(const IntRect&, bool now)
{
- RECT repaintRect = RECT(dirtyRect);
- InvalidateRect(windowHandle(), &repaintRect, true);
+ // FIXME: Too many other things are broken to turn on precise invalidation
+ InvalidateRect(windowHandle(), 0, true);
if (now)
UpdateWindow(windowHandle());
}
TransferJobInternal::~TransferJobInternal()
{
- if (m_fileHandle)
- CloseHandle(m_fileHandle);
+ if (m_fileHandle)
+ CloseHandle(m_fileHandle);
}
TransferJob::~TransferJob()
QString path = d->URL.path();
// windows does not enjoy a leading slash on paths
if (path[0] == '/')
- path = path.mid(1);
- d->m_fileHandle = CreateFileA(path.ascii(), GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
+ path = path.mid(1);
+ d->m_fileHandle = CreateFileA(path.ascii(), GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
}
if (!d->m_fileHandle || d->m_fileHandle == INVALID_HANDLE_VALUE) {
delete this;
- return false;
+ return false;
}
d->m_fileLoadTimer.startOneShot(0.0);
do {
const int bufferSize = 8192;
- char buffer[bufferSize];
- result = ReadFile(d->m_fileHandle, &buffer, bufferSize, &bytesRead, NULL);
- d->client->receivedData(this, buffer, bytesRead);
- // Check for end of file.
+ char buffer[bufferSize];
+ result = ReadFile(d->m_fileHandle, &buffer, bufferSize, &bytesRead, NULL);
+ d->client->receivedData(this, buffer, bytesRead);
+ // Check for end of file.
} while (result && bytesRead);
CloseHandle(d->m_fileHandle);