OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 void ActiveDOMObject::suspendIfNeeded() | 61 void ActiveDOMObject::suspendIfNeeded() |
62 { | 62 { |
63 #if ENABLE(ASSERT) | 63 #if ENABLE(ASSERT) |
64 ASSERT(!m_suspendIfNeededCalled); | 64 ASSERT(!m_suspendIfNeededCalled); |
65 m_suspendIfNeededCalled = true; | 65 m_suspendIfNeededCalled = true; |
66 #endif | 66 #endif |
67 if (ExecutionContext* context = executionContext()) | 67 if (ExecutionContext* context = executionContext()) |
68 context->suspendActiveDOMObjectIfNeeded(this); | 68 context->suspendActiveDOMObjectIfNeeded(this); |
69 } | 69 } |
70 | 70 |
71 bool ActiveDOMObject::hasPendingActivity() const | |
72 { | |
73 return false; | |
74 } | |
75 | |
76 void ActiveDOMObject::suspend() | 71 void ActiveDOMObject::suspend() |
77 { | 72 { |
78 } | 73 } |
79 | 74 |
80 void ActiveDOMObject::resume() | 75 void ActiveDOMObject::resume() |
81 { | 76 { |
82 } | 77 } |
83 | 78 |
84 void ActiveDOMObject::stop() | 79 void ActiveDOMObject::stop() |
85 { | 80 { |
(...skipping 10 matching lines...) Expand all Loading... |
96 | 91 |
97 if (context->activeDOMObjectsAreSuspended()) { | 92 if (context->activeDOMObjectsAreSuspended()) { |
98 suspend(); | 93 suspend(); |
99 return; | 94 return; |
100 } | 95 } |
101 | 96 |
102 resume(); | 97 resume(); |
103 } | 98 } |
104 | 99 |
105 } // namespace blink | 100 } // namespace blink |
OLD | NEW |