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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 void importDidFinishLoading(); | 61 void importDidFinishLoading(); |
62 WeakPtr<CustomElementMicrotaskImportStep> weakPtr() { return m_weakFactory.c
reateWeakPtr(); } | 62 WeakPtr<CustomElementMicrotaskImportStep> weakPtr() { return m_weakFactory.c
reateWeakPtr(); } |
63 | 63 |
64 virtual void trace(Visitor*) OVERRIDE; | 64 virtual void trace(Visitor*) OVERRIDE; |
65 | 65 |
66 private: | 66 private: |
67 explicit CustomElementMicrotaskImportStep(HTMLImportChild*); | 67 explicit CustomElementMicrotaskImportStep(HTMLImportChild*); |
68 | 68 |
69 void didUpgradeAllCustomElements(); | 69 void didUpgradeAllCustomElements(); |
70 bool shouldWaitForImport() const; | 70 bool shouldWaitForImport() const; |
71 bool shouldStopProcessing() const; | |
72 | 71 |
73 // CustomElementMicrotaskStep | 72 // CustomElementMicrotaskStep |
74 virtual Result process() OVERRIDE FINAL; | 73 virtual Result process() OVERRIDE FINAL; |
75 virtual bool needsProcessOrStop() const OVERRIDE FINAL; | |
76 | 74 |
77 #if !defined(NDEBUG) | 75 #if !defined(NDEBUG) |
78 virtual void show(unsigned indent) OVERRIDE; | 76 virtual void show(unsigned indent) OVERRIDE; |
79 #endif | 77 #endif |
80 WeakPtr<HTMLImportChild> m_import; | 78 WeakPtr<HTMLImportChild> m_import; |
81 RefPtrWillBeMember<CustomElementMicrotaskQueue> m_queue; | 79 RefPtrWillBeMember<CustomElementMicrotaskQueue> m_queue; |
82 WeakPtrFactory<CustomElementMicrotaskImportStep> m_weakFactory; | 80 WeakPtrFactory<CustomElementMicrotaskImportStep> m_weakFactory; |
83 }; | 81 }; |
84 | 82 |
85 } | 83 } |
86 | 84 |
87 #endif // CustomElementMicrotaskImportStep_h | 85 #endif // CustomElementMicrotaskImportStep_h |
OLD | NEW |