Changeset 12786 in webkit


Ignore:
Timestamp:
Feb 13, 2006, 3:13:47 PM (20 years ago)
Author:
hyatt
Message:

Fix Win32 WebCore bustage.

Location:
trunk/WebCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r12785 r12786  
     12006-02-13  Dave Hyatt <hyatt@apple.com>
     2
     3        Fix Win32 bustage in WebCore.
     4
     5        Reviewed by darin
     6
     7        * WebCore.vcproj/WebCore/WebCore.vcproj:
     8        * platform/Timer.cpp:
     9        (WebCore::operator==):
     10        (WebCore::operator!=):
     11        (WebCore::TimerBase::heapPop):
     12
     13        HUGE_VAL can be used on both Windows and Mac, so replace 1e500 with
     14        that.
     15
     16        Add == and != operators for the TimerHeapIterator.
     17
     18        * platform/image-decoders/png/PNGImageDecoder.cpp:
     19        (WebCore::PNGImageDecoder::rowAvailable):
     20
     21        Fix my bustage in the PNG decoder where I left off a stray
     22        parenthesis.
     23
     24        * platform/win/SharedTimerWin.cpp:
     25        (WebCore::timerFired):
     26        (WebCore::setSharedTimerFireTime):
     27        (WebCore::stopSharedTimer):
     28
     29        KillTimer should take 2 arguments.  Add some missing includes.
     30
    1312006-02-12  Alexander Kellett  <lypanov@kde.org>
    232
  • trunk/WebCore/WebCore.vcproj/WebCore/WebCore.vcproj

    r12782 r12786  
    13481348                        </File>
    13491349                        <File
    1350                                 RelativePath="..\..\page\FrameTreeNode.cpp"
    1351                                 >
    1352                         </File>
    1353                         <File
    1354                                 RelativePath="..\..\page\FrameTreeNode.h"
     1350                                RelativePath="..\..\page\FrameTree.cpp"
     1351                                >
     1352                        </File>
     1353                        <File
     1354                                RelativePath="..\..\page\FrameTree.h"
    13551355                                >
    13561356                        </File>
     
    16621662                        </File>
    16631663                        <File
     1664                                RelativePath="..\..\platform\SharedTimer.h"
     1665                                >
     1666                        </File>
     1667                        <File
    16641668                                RelativePath="..\..\platform\String.cpp"
    16651669                                >
     
    16781682                        </File>
    16791683                        <File
     1684                                RelativePath="..\..\platform\Timer.cpp"
     1685                                >
     1686                        </File>
     1687                        <File
    16801688                                RelativePath="..\..\platform\Timer.h"
    1681                                 >
    1682                         </File>
    1683                         <File
    1684                                 RelativePath="..\..\platform\Timer.cpp"
    1685                                 >
    1686                         </File>
    1687                         <File
    1688                                 RelativePath="..\..\platform\SharedTimer.h"
    16891689                                >
    16901690                        </File>
     
    17011701                                >
    17021702                                <File
     1703                                        RelativePath="..\..\platform\win\SharedTimerWin.cpp"
     1704                                        >
     1705                                </File>
     1706                                <File
    17031707                                        RelativePath="..\..\platform\win\SystemTimeWin.cpp"
    1704                                         >
    1705                                 </File>
    1706                                 <File
    1707                                         RelativePath="..\..\platform\win\SharedTimerWin.cpp"
    17081708                                        >
    17091709                                </File>
     
    29042904                        >
    29052905                        <File
     2906                                RelativePath="..\..\dom\CDATASectionImpl.cpp"
     2907                                >
     2908                        </File>
     2909                        <File
     2910                                RelativePath="..\..\dom\CDATASectionImpl.h"
     2911                                >
     2912                        </File>
     2913                        <File
     2914                                RelativePath="..\..\dom\CharacterDataImpl.cpp"
     2915                                >
     2916                        </File>
     2917                        <File
     2918                                RelativePath="..\..\dom\CharacterDataImpl.h"
     2919                                >
     2920                        </File>
     2921                        <File
    29062922                                RelativePath="..\..\dom\ChildNodeListImpl.cpp"
    29072923                                >
     
    29122928                        </File>
    29132929                        <File
     2930                                RelativePath="..\..\dom\CommentImpl.cpp"
     2931                                >
     2932                        </File>
     2933                        <File
     2934                                RelativePath="..\..\dom\CommentImpl.h"
     2935                                >
     2936                        </File>
     2937                        <File
    29142938                                RelativePath="..\..\dom\ContainerNodeImpl.cpp"
    29152939                                >
     
    30083032                        </File>
    30093033                        <File
    3010                                 RelativePath="..\..\dom\dom_textimpl.cpp"
    3011                                 >
    3012                         </File>
    3013                         <File
    3014                                 RelativePath="..\..\dom\dom_textimpl.h"
    3015                                 >
    3016                         </File>
    3017                         <File
    30183034                                RelativePath="..\..\dom\dom_xmlimpl.cpp"
    30193035                                >
     
    30323048                        </File>
    30333049                        <File
     3050                                RelativePath="..\..\dom\EditingTextImpl.cpp"
     3051                                >
     3052                        </File>
     3053                        <File
     3054                                RelativePath="..\..\dom\EditingTextImpl.h"
     3055                                >
     3056                        </File>
     3057                        <File
    30343058                                RelativePath="..\..\dom\EventNames.cpp"
    30353059                                >
     
    30653089                        <File
    30663090                                RelativePath="..\..\dom\NodeListImpl.h"
     3091                                >
     3092                        </File>
     3093                        <File
     3094                                RelativePath="..\..\dom\TextImpl.cpp"
     3095                                >
     3096                        </File>
     3097                        <File
     3098                                RelativePath="..\..\dom\TextImpl.h"
    30673099                                >
    30683100                        </File>
  • trunk/WebCore/platform/Timer.cpp

    r12774 r12786  
    3030#include "SystemTime.h"
    3131#include <algorithm>
     32#include <math.h>
    3233#include <kxmlcore/Assertions.h>
    3334#include <kxmlcore/HashSet.h>
     
    131132};
    132133
     134inline bool operator==(TimerHeapIterator a, TimerHeapIterator b) { return a.index() == b.index(); }
     135inline bool operator!=(TimerHeapIterator a, TimerHeapIterator b) { return a.index() != b.index(); }
    133136inline bool operator<(TimerHeapIterator a, TimerHeapIterator b) { return a.index() < b.index(); }
    134137
     
    254257    // Temporarily force this timer to have the minimum key so we can pop it.
    255258    double fireTime = m_nextFireTime;
    256     m_nextFireTime = -1e500;
     259    m_nextFireTime = -HUGE_VAL;
    257260    heapDecreaseKey();
    258261    heapPopMin();
  • trunk/WebCore/platform/image-decoders/png/PNGImageDecoder.cpp

    r12767 r12786  
    315315
    316316        // For PNGs, the frame always fills the entire image.
    317         buffer.setRect(IntRect(0, 0, m_size.width(), m_size.height());
     317        buffer.setRect(IntRect(0, 0, m_size.width(), m_size.height()));
    318318
    319319        if (reader()->pngPtr()->interlaced)
  • trunk/WebCore/platform/win/SharedTimerWin.cpp

    r12774 r12786  
    2727#include "SharedTimer.h"
    2828
     29#include "SystemTime.h"
     30#include <kxmlcore/Assertions.h>
    2931#include <windows.h>
    3032
     
    3941}
    4042
    41 static CALLBACK timerFired(HWND, UINT, UINT_PTR, DWORD)
     43static void CALLBACK timerFired(HWND, UINT, UINT_PTR, DWORD)
    4244{
    4345    sharedTimerFiredFunction();
     
    6163
    6264    if (timerID)
    63         KillTimer(timerID);
     65        KillTimer(0, timerID);
    6466    timerID = SetTimer(0, 0, intervalInMS, timerFired);
    6567}
     
    6870{
    6971    if (timerID) {
    70         KillTimer(timerID);
     72        KillTimer(0, timerID);
    7173        timerID = 0;
    7274    }
Note: See TracChangeset for help on using the changeset viewer.