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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 { | 229 { |
230 return m_private->containsIncludingShadowDOM(other.m_private.get()); | 230 return m_private->containsIncludingShadowDOM(other.m_private.get()); |
231 } | 231 } |
232 | 232 |
233 WebPluginContainer* WebNode::pluginContainer() const | 233 WebPluginContainer* WebNode::pluginContainer() const |
234 { | 234 { |
235 if (isNull()) | 235 if (isNull()) |
236 return 0; | 236 return 0; |
237 const Node& coreNode = *constUnwrap<Node>(); | 237 const Node& coreNode = *constUnwrap<Node>(); |
238 if (isHTMLObjectElement(coreNode) || isHTMLEmbedElement(coreNode)) { | 238 if (isHTMLObjectElement(coreNode) || isHTMLEmbedElement(coreNode)) { |
239 LayoutObject* object = coreNode.renderer(); | 239 LayoutObject* object = coreNode.layoutObject(); |
240 if (object && object->isLayoutPart()) { | 240 if (object && object->isLayoutPart()) { |
241 Widget* widget = toLayoutPart(object)->widget(); | 241 Widget* widget = toLayoutPart(object)->widget(); |
242 if (widget && widget->isPluginContainer()) | 242 if (widget && widget->isPluginContainer()) |
243 return toWebPluginContainerImpl(widget); | 243 return toWebPluginContainerImpl(widget); |
244 } | 244 } |
245 } | 245 } |
246 return 0; | 246 return 0; |
247 } | 247 } |
248 | 248 |
249 WebElement WebNode::shadowHost() const | 249 WebElement WebNode::shadowHost() const |
(...skipping 24 matching lines...) Expand all Loading... |
274 m_private = node; | 274 m_private = node; |
275 return *this; | 275 return *this; |
276 } | 276 } |
277 | 277 |
278 WebNode::operator PassRefPtrWillBeRawPtr<Node>() const | 278 WebNode::operator PassRefPtrWillBeRawPtr<Node>() const |
279 { | 279 { |
280 return m_private.get(); | 280 return m_private.get(); |
281 } | 281 } |
282 | 282 |
283 } // namespace blink | 283 } // namespace blink |
OLD | NEW |