| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2013 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2013 Google Inc. All Rights Reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 virtual bool tasksNeedSuspension() { return m_tasksNeedSuspension; } | 58 virtual bool tasksNeedSuspension() { return m_tasksNeedSuspension; } |
| 59 | 59 |
| 60 void setTasksNeedSuspention(bool flag) { m_tasksNeedSuspension = flag; } | 60 void setTasksNeedSuspention(bool flag) { m_tasksNeedSuspension = flag; } |
| 61 | 61 |
| 62 void trace(Visitor* visitor) | 62 void trace(Visitor* visitor) |
| 63 { | 63 { |
| 64 visitor->trace(m_queue); | 64 visitor->trace(m_queue); |
| 65 ExecutionContext::trace(visitor); | 65 ExecutionContext::trace(visitor); |
| 66 } | 66 } |
| 67 | 67 |
| 68 virtual void reportBlockedScriptExecutionToInspector(const String& directive
Text) OVERRIDE { } |
| 69 virtual SecurityContext& securityContext() { return *this; } |
| 70 |
| 68 #if !ENABLE(OILPAN) | 71 #if !ENABLE(OILPAN) |
| 69 using RefCounted<NullExecutionContext>::ref; | 72 using RefCounted<NullExecutionContext>::ref; |
| 70 using RefCounted<NullExecutionContext>::deref; | 73 using RefCounted<NullExecutionContext>::deref; |
| 71 | 74 |
| 72 virtual void reportBlockedScriptExecutionToInspector(const String& directive
Text) OVERRIDE { } | |
| 73 | |
| 74 virtual SecurityContext& securityContext() { return *this; } | |
| 75 | |
| 76 virtual void refExecutionContext() OVERRIDE { ref(); } | 75 virtual void refExecutionContext() OVERRIDE { ref(); } |
| 77 virtual void derefExecutionContext() OVERRIDE { deref(); } | 76 virtual void derefExecutionContext() OVERRIDE { deref(); } |
| 78 #endif | 77 #endif |
| 79 | 78 |
| 80 protected: | 79 protected: |
| 81 virtual const KURL& virtualURL() const OVERRIDE { return m_dummyURL; } | 80 virtual const KURL& virtualURL() const OVERRIDE { return m_dummyURL; } |
| 82 virtual KURL virtualCompleteURL(const String&) const OVERRIDE { return m_dum
myURL; } | 81 virtual KURL virtualCompleteURL(const String&) const OVERRIDE { return m_dum
myURL; } |
| 83 | 82 |
| 84 private: | 83 private: |
| 85 bool m_tasksNeedSuspension; | 84 bool m_tasksNeedSuspension; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 bool isMarked = false; | 151 bool isMarked = false; |
| 153 | 152 |
| 154 context->setTasksNeedSuspention(true); | 153 context->setTasksNeedSuspention(true); |
| 155 runner->postTask(MarkingBooleanTask::create(&isMarked)); | 154 runner->postTask(MarkingBooleanTask::create(&isMarked)); |
| 156 runner.clear(); | 155 runner.clear(); |
| 157 WebCore::testing::runPendingTasks(); | 156 WebCore::testing::runPendingTasks(); |
| 158 EXPECT_FALSE(isMarked); | 157 EXPECT_FALSE(isMarked); |
| 159 } | 158 } |
| 160 | 159 |
| 161 } | 160 } |
| OLD | NEW |