Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: third_party/WebKit/Source/core/frame/DOMWindowProperty.cpp

Issue 2138003002: Remove DOMWindowProperty::willDetachGlobalObjectFromFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/DOMWindowProperty.h ('k') | third_party/WebKit/Source/core/frame/LocalDOMWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698