| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2009 Google Inc. All rights reserved. | 2  * Copyright (C) 2009 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 179 | 179 | 
| 180 WebPluginContainer* WebNode::pluginContainerFromNode(const Node* node) { | 180 WebPluginContainer* WebNode::pluginContainerFromNode(const Node* node) { | 
| 181   if (!node) | 181   if (!node) | 
| 182     return nullptr; | 182     return nullptr; | 
| 183 | 183 | 
| 184   if (!isHTMLObjectElement(node) && !isHTMLEmbedElement(node)) | 184   if (!isHTMLObjectElement(node) && !isHTMLEmbedElement(node)) | 
| 185     return nullptr; | 185     return nullptr; | 
| 186 | 186 | 
| 187   LayoutObject* object = node->layoutObject(); | 187   LayoutObject* object = node->layoutObject(); | 
| 188   if (object && object->isLayoutPart()) { | 188   if (object && object->isLayoutPart()) { | 
| 189     FrameViewBase* frameViewBase = toLayoutPart(object)->widget(); | 189     FrameViewBase* frameViewBase = toLayoutPart(object)->frameViewBase(); | 
| 190     if (frameViewBase && frameViewBase->isPluginContainer()) | 190     if (frameViewBase && frameViewBase->isPluginContainer()) | 
| 191       return toWebPluginContainerImpl(frameViewBase); | 191       return toWebPluginContainerImpl(frameViewBase); | 
| 192   } | 192   } | 
| 193 | 193 | 
| 194   return nullptr; | 194   return nullptr; | 
| 195 } | 195 } | 
| 196 | 196 | 
| 197 WebPluginContainer* WebNode::pluginContainer() const { | 197 WebPluginContainer* WebNode::pluginContainer() const { | 
| 198   return pluginContainerFromNode(constUnwrap<Node>()); | 198   return pluginContainerFromNode(constUnwrap<Node>()); | 
| 199 } | 199 } | 
| (...skipping 11 matching lines...) Expand all  Loading... | 
| 211 WebNode& WebNode::operator=(Node* node) { | 211 WebNode& WebNode::operator=(Node* node) { | 
| 212   m_private = node; | 212   m_private = node; | 
| 213   return *this; | 213   return *this; | 
| 214 } | 214 } | 
| 215 | 215 | 
| 216 WebNode::operator Node*() const { | 216 WebNode::operator Node*() const { | 
| 217   return m_private.get(); | 217   return m_private.get(); | 
| 218 } | 218 } | 
| 219 | 219 | 
| 220 }  // namespace blink | 220 }  // namespace blink | 
| OLD | NEW | 
|---|