OLD | NEW |
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 Loading... |
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 |
OLD | NEW |