Changeset 152202 in webkit


Ignore:
Timestamp:
Jun 28, 2013 6:45:04 PM (11 years ago)
Author:
barraclough@apple.com
Message:

PageThrottler::shouldThrottleTimers is wrong.
https://bugs.webkit.org/show_bug.cgi?id=118210

Reviewed by Anders Carlson.

m_throttleState == PageNotThrottledState

-> page NOT throttled, so should NOT throttle timers

m_throttleState != PageNotThrottledState

-> page NOT NOT throttled, so should throttle timers

This needs cleaning up, but for now, 1 character fix.

  • page/PageThrottler.h:

(WebCore::PageThrottler::shouldThrottleTimers):

-> !=

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r152198 r152202  
     12013-06-28  Gavin Barraclough  <barraclough@apple.com>
     2
     3        PageThrottler::shouldThrottleTimers is wrong.
     4        https://bugs.webkit.org/show_bug.cgi?id=118210
     5
     6        Reviewed by Anders Carlson.
     7
     8        m_throttleState == PageNotThrottledState
     9            -> page NOT throttled, so should NOT throttle timers
     10        m_throttleState != PageNotThrottledState
     11            -> page NOT NOT throttled, so should throttle timers
     12
     13        This needs cleaning up, but for now, 1 character fix.
     14
     15        * page/PageThrottler.h:
     16        (WebCore::PageThrottler::shouldThrottleTimers):
     17            == -> !=
     18
    1192013-06-28  Ryosuke Niwa  <rniwa@webkit.org>
    220
  • trunk/Source/WebCore/page/PageThrottler.h

    r150971 r152202  
    4545
    4646    bool shouldThrottleAnimations() const { return m_throttleState != PageNotThrottledState; }
    47     bool shouldThrottleTimers() const { return m_throttleState == PageNotThrottledState; }
     47    bool shouldThrottleTimers() const { return m_throttleState != PageNotThrottledState; }
    4848
    4949    void setThrottled(bool);
Note: See TracChangeset for help on using the changeset viewer.