| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 : V0CustomElementLifecycleCallbacks( | 106 : V0CustomElementLifecycleCallbacks( |
| 107 flagSet(attached, detached, attributeChanged)), | 107 flagSet(attached, detached, attributeChanged)), |
| 108 m_scriptState(scriptState), | 108 m_scriptState(scriptState), |
| 109 m_prototype(scriptState->isolate(), prototype), | 109 m_prototype(scriptState->isolate(), prototype), |
| 110 m_created(scriptState->isolate(), created), | 110 m_created(scriptState->isolate(), created), |
| 111 m_attached(scriptState->isolate(), attached), | 111 m_attached(scriptState->isolate(), attached), |
| 112 m_detached(scriptState->isolate(), detached), | 112 m_detached(scriptState->isolate(), detached), |
| 113 m_attributeChanged(scriptState->isolate(), attributeChanged) { | 113 m_attributeChanged(scriptState->isolate(), attributeChanged) { |
| 114 m_prototype.setPhantom(); | 114 m_prototype.setPhantom(); |
| 115 | 115 |
| 116 #define MAKE_WEAK(Var, _) \ | 116 #define MAKE_WEAK(Var, Ignored) \ |
| 117 if (!m_##Var.isEmpty()) \ | 117 if (!Var##_.IsEmpty()) \ |
| 118 m_##Var.setPhantom(); | 118 Var##_.SetPhantom(); |
| 119 | 119 |
| 120 CALLBACK_LIST(MAKE_WEAK) | 120 CALLBACK_LIST(MAKE_WEAK) |
| 121 #undef MAKE_WEAK | 121 #undef MAKE_WEAK |
| 122 } | 122 } |
| 123 | 123 |
| 124 V8PerContextData* V8V0CustomElementLifecycleCallbacks::creationContextData() { | 124 V8PerContextData* V8V0CustomElementLifecycleCallbacks::creationContextData() { |
| 125 if (!m_scriptState->contextIsValid()) | 125 if (!m_scriptState->contextIsValid()) |
| 126 return 0; | 126 return 0; |
| 127 | 127 |
| 128 v8::Local<v8::Context> context = m_scriptState->context(); | 128 v8::Local<v8::Context> context = m_scriptState->context(); |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 exceptionCatcher.SetVerbose(true); | 247 exceptionCatcher.SetVerbose(true); |
| 248 V8ScriptRunner::callFunction(callback, m_scriptState->getExecutionContext(), | 248 V8ScriptRunner::callFunction(callback, m_scriptState->getExecutionContext(), |
| 249 receiver, 0, 0, isolate); | 249 receiver, 0, 0, isolate); |
| 250 } | 250 } |
| 251 | 251 |
| 252 DEFINE_TRACE(V8V0CustomElementLifecycleCallbacks) { | 252 DEFINE_TRACE(V8V0CustomElementLifecycleCallbacks) { |
| 253 V0CustomElementLifecycleCallbacks::trace(visitor); | 253 V0CustomElementLifecycleCallbacks::trace(visitor); |
| 254 } | 254 } |
| 255 | 255 |
| 256 } // namespace blink | 256 } // namespace blink |
| OLD | NEW |