| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 } | 72 } |
| 73 | 73 |
| 74 void ActiveDOMObject::suspend() | 74 void ActiveDOMObject::suspend() |
| 75 { | 75 { |
| 76 } | 76 } |
| 77 | 77 |
| 78 void ActiveDOMObject::resume() | 78 void ActiveDOMObject::resume() |
| 79 { | 79 { |
| 80 } | 80 } |
| 81 | 81 |
| 82 void ActiveDOMObject::willStop() |
| 83 { |
| 84 } |
| 85 |
| 82 void ActiveDOMObject::stop() | 86 void ActiveDOMObject::stop() |
| 83 { | 87 { |
| 84 } | 88 } |
| 85 | 89 |
| 86 void ActiveDOMObject::didMoveToNewExecutionContext(ExecutionContext* context) | 90 void ActiveDOMObject::didMoveToNewExecutionContext(ExecutionContext* context) |
| 87 { | 91 { |
| 88 observeContext(context); | 92 observeContext(context); |
| 89 | 93 |
| 90 if (context->activeDOMObjectsAreStopped()) { | 94 if (context->activeDOMObjectsAreStopped()) { |
| 91 stop(); | 95 stop(); |
| 92 return; | 96 return; |
| 93 } | 97 } |
| 94 | 98 |
| 95 if (context->activeDOMObjectsAreSuspended()) { | 99 if (context->activeDOMObjectsAreSuspended()) { |
| 96 suspend(); | 100 suspend(); |
| 97 return; | 101 return; |
| 98 } | 102 } |
| 99 | 103 |
| 100 resume(); | 104 resume(); |
| 101 } | 105 } |
| 102 | 106 |
| 103 } // namespace WebCore | 107 } // namespace WebCore |
| OLD | NEW |