Changeset 122421 in webkit


Ignore:
Timestamp:
Jul 11, 2012 11:18:09 PM (12 years ago)
Author:
mrowe@apple.com
Message:

<http://webkit.org/b/91051> Fix the Qt Mac build after r122400.

Qt on Mac builds with a deployment target of OS X 10.5. However, it was not been setting
BUILDING_ON_LEOPARD / TARGETING_LEOPARD and thus was falling down code paths in DisplaySleepDisabler.cpp
that were specific to Snow Leopard and newer. After the removal of BUILDING_ON_LEOPARD
and TARGETING_LEOPARD it ended up falling down the correct Leopard-compatible code path,
which revealed that the code made assumptions about which headers had already been included.

  • platform/mac/DisplaySleepDisabler.cpp: Include CoreServices/CoreServices.h to pull in

a declaration of UpdateSystemActivity when targeting Leopard.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r122420 r122421  
     12012-07-11  Mark Rowe  <mrowe@apple.com>
     2
     3        <http://webkit.org/b/91051> Fix the Qt Mac build after r122400.
     4
     5        Qt on Mac builds with a deployment target of OS X 10.5. However, it was not been setting
     6        BUILDING_ON_LEOPARD / TARGETING_LEOPARD and thus was falling down code paths in DisplaySleepDisabler.cpp
     7        that were specific to Snow Leopard and newer. After the removal of BUILDING_ON_LEOPARD
     8        and TARGETING_LEOPARD it ended up falling down the correct Leopard-compatible code path,
     9        which revealed that the code made assumptions about which headers had already been included.
     10
     11        * platform/mac/DisplaySleepDisabler.cpp: Include CoreServices/CoreServices.h to pull in
     12        a declaration of UpdateSystemActivity when targeting Leopard.
     13
    1142012-07-11  Matt Falkenhagen  <falken@chromium.org>
    215
  • trunk/Source/WebCore/platform/mac/DisplaySleepDisabler.cpp

    r122400 r122421  
    3232#if __MAC_OS_X_VERSION_MIN_REQUIRED == 1050
    3333#include <wtf/UnusedParam.h>
     34#include <CoreServices/CoreServices.h>
    3435#endif
    3536
     
    5859    IOPMAssertionRelease(m_disableDisplaySleepAssertion);
    5960}
    60    
     61
    6162#if __MAC_OS_X_VERSION_MIN_REQUIRED == 1050
    6263void DisplaySleepDisabler::systemActivityTimerFired(Timer<DisplaySleepDisabler>*)
Note: See TracChangeset for help on using the changeset viewer.