OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 * | 7 * |
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 if (!(result & ShouldStop) && !shouldWaitForImport()) | 78 if (!(result & ShouldStop) && !shouldWaitForImport()) |
79 didUpgradeAllCustomElements(); | 79 didUpgradeAllCustomElements(); |
80 | 80 |
81 if (shouldWaitForImport()) | 81 if (shouldWaitForImport()) |
82 result = Result(result | ShouldRemain | ShouldStop); | 82 result = Result(result | ShouldRemain | ShouldStop); |
83 if (!shouldStopProcessing()) | 83 if (!shouldStopProcessing()) |
84 result = Result(result & ~ShouldStop); | 84 result = Result(result & ~ShouldStop); |
85 return result; | 85 return result; |
86 } | 86 } |
87 | 87 |
| 88 bool CustomElementMicrotaskImportStep::needsProcessOrStop() const |
| 89 { |
| 90 return shouldStopProcessing() || m_queue->needsProcessOrStop(); |
| 91 } |
| 92 |
88 #if !defined(NDEBUG) | 93 #if !defined(NDEBUG) |
89 void CustomElementMicrotaskImportStep::show(unsigned indent) | 94 void CustomElementMicrotaskImportStep::show(unsigned indent) |
90 { | 95 { |
91 fprintf(stderr, "%*sImport(wait=%d sync=%d, url=%s)\n", indent, "", shouldWa
itForImport(), shouldStopProcessing(), m_import ? m_import->url().string().utf8(
).data() : "null"); | 96 fprintf(stderr, "%*sImport(wait=%d sync=%d, url=%s)\n", indent, "", shouldWa
itForImport(), shouldStopProcessing(), m_import ? m_import->url().string().utf8(
).data() : "null"); |
92 m_queue->show(indent + 1); | 97 m_queue->show(indent + 1); |
93 } | 98 } |
94 #endif | 99 #endif |
95 | 100 |
96 } // namespace WebCore | 101 } // namespace WebCore |
OLD | NEW |