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

Side by Side Diff: third_party/WebKit/Source/core/html/PluginDocument.cpp

Issue 2318913002: Rename Document::attach/detachLayoutTree to Document::initialize/shutdown (Closed)
Patch Set: temp Created 4 years, 3 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) 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008 Apple 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 return widget; 185 return widget;
186 } 186 }
187 return 0; 187 return 0;
188 } 188 }
189 189
190 Node* PluginDocument::pluginNode() 190 Node* PluginDocument::pluginNode()
191 { 191 {
192 return m_pluginNode.get(); 192 return m_pluginNode.get();
193 } 193 }
194 194
195 void PluginDocument::detachLayoutTree(const AttachContext& context) 195 void PluginDocument::shutdown()
196 { 196 {
197 // Release the plugin node so that we don't have a circular reference. 197 // Release the plugin node so that we don't have a circular reference.
198 m_pluginNode = nullptr; 198 m_pluginNode = nullptr;
199 HTMLDocument::detachLayoutTree(context); 199 HTMLDocument::shutdown();
200 } 200 }
201 201
202 DEFINE_TRACE(PluginDocument) 202 DEFINE_TRACE(PluginDocument)
203 { 203 {
204 visitor->trace(m_pluginNode); 204 visitor->trace(m_pluginNode);
205 HTMLDocument::trace(visitor); 205 HTMLDocument::trace(visitor);
206 } 206 }
207 207
208 } // namespace blink 208 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/PluginDocument.h ('k') | third_party/WebKit/Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698