| 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 : V0CustomElementLifecycleCallbacks( | 105 : V0CustomElementLifecycleCallbacks( |
| 106 flagSet(attached, detached, attributeChanged)), | 106 flagSet(attached, detached, attributeChanged)), |
| 107 m_scriptState(scriptState), | 107 m_scriptState(scriptState), |
| 108 m_prototype(scriptState->isolate(), prototype), | 108 m_prototype(scriptState->isolate(), prototype), |
| 109 m_created(scriptState->isolate(), created), | 109 m_created(scriptState->isolate(), created), |
| 110 m_attached(scriptState->isolate(), attached), | 110 m_attached(scriptState->isolate(), attached), |
| 111 m_detached(scriptState->isolate(), detached), | 111 m_detached(scriptState->isolate(), detached), |
| 112 m_attributeChanged(scriptState->isolate(), attributeChanged) { | 112 m_attributeChanged(scriptState->isolate(), attributeChanged) { |
| 113 m_prototype.setPhantom(); | 113 m_prototype.setPhantom(); |
| 114 | 114 |
| 115 #define MAKE_WEAK(Var, _) \ | 115 #define MAKE_WEAK(Var, Ignored) \ |
| 116 if (!m_##Var.isEmpty()) \ | 116 if (!Var##_.isEmpty()) \ |
| 117 m_##Var.setPhantom(); | 117 Var##_.setPhantom(); |
| 118 | 118 |
| 119 CALLBACK_LIST(MAKE_WEAK) | 119 CALLBACK_LIST(MAKE_WEAK) |
| 120 #undef MAKE_WEAK | 120 #undef MAKE_WEAK |
| 121 } | 121 } |
| 122 | 122 |
| 123 V8PerContextData* V8V0CustomElementLifecycleCallbacks::creationContextData() { | 123 V8PerContextData* V8V0CustomElementLifecycleCallbacks::creationContextData() { |
| 124 if (!m_scriptState->contextIsValid()) | 124 if (!m_scriptState->contextIsValid()) |
| 125 return 0; | 125 return 0; |
| 126 | 126 |
| 127 v8::Local<v8::Context> context = m_scriptState->context(); | 127 v8::Local<v8::Context> context = m_scriptState->context(); |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 exceptionCatcher.SetVerbose(true); | 246 exceptionCatcher.SetVerbose(true); |
| 247 V8ScriptRunner::callFunction(callback, m_scriptState->getExecutionContext(), | 247 V8ScriptRunner::callFunction(callback, m_scriptState->getExecutionContext(), |
| 248 receiver, 0, 0, isolate); | 248 receiver, 0, 0, isolate); |
| 249 } | 249 } |
| 250 | 250 |
| 251 DEFINE_TRACE(V8V0CustomElementLifecycleCallbacks) { | 251 DEFINE_TRACE(V8V0CustomElementLifecycleCallbacks) { |
| 252 V0CustomElementLifecycleCallbacks::trace(visitor); | 252 V0CustomElementLifecycleCallbacks::trace(visitor); |
| 253 } | 253 } |
| 254 | 254 |
| 255 } // namespace blink | 255 } // namespace blink |
| OLD | NEW |