OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2011 Google, Inc. All Rights Reserved. |
3 * Copyright (C) 2012 Apple Inc. All Rights Reserved. | 3 * Copyright (C) 2012 Apple 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 } | 45 } |
46 | 46 |
47 void DOMWindowProperty::willDestroyGlobalObjectInFrame() | 47 void DOMWindowProperty::willDestroyGlobalObjectInFrame() |
48 { | 48 { |
49 // If the property is getting this callback it must have been | 49 // If the property is getting this callback it must have been |
50 // created with a LocalFrame and it should still have it. | 50 // created with a LocalFrame and it should still have it. |
51 ASSERT(m_frame); | 51 ASSERT(m_frame); |
52 m_frame = nullptr; | 52 m_frame = nullptr; |
53 } | 53 } |
54 | 54 |
55 void DOMWindowProperty::willDetachGlobalObjectFromFrame() | |
56 { | |
57 // If the property is getting this callback it must have been | |
58 // created with a LocalFrame and it should still have it. | |
59 ASSERT(m_frame); | |
60 } | |
61 | |
62 DEFINE_TRACE(DOMWindowProperty) | 55 DEFINE_TRACE(DOMWindowProperty) |
63 { | 56 { |
64 visitor->trace(m_frame); | 57 visitor->trace(m_frame); |
65 } | 58 } |
66 | 59 |
67 } // namespace blink | 60 } // namespace blink |
OLD | NEW |