| 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 WebExceptionCode ec = 0; | 281 WebExceptionCode ec = 0; |
| 282 querySelectorAll(selector, results, ec); | 282 querySelectorAll(selector, results, ec); |
| 283 ASSERT(!ec); | 283 ASSERT(!ec); |
| 284 } | 284 } |
| 285 | 285 |
| 286 bool WebNode::focused() const | 286 bool WebNode::focused() const |
| 287 { | 287 { |
| 288 return m_private->focused(); | 288 return m_private->focused(); |
| 289 } | 289 } |
| 290 | 290 |
| 291 bool WebNode::remove() | |
| 292 { | |
| 293 TrackExceptionState exceptionState; | |
| 294 m_private->remove(exceptionState); | |
| 295 return !exceptionState.hadException(); | |
| 296 } | |
| 297 | |
| 298 WebPluginContainer* WebNode::pluginContainer() const | 291 WebPluginContainer* WebNode::pluginContainer() const |
| 299 { | 292 { |
| 300 if (isNull()) | 293 if (isNull()) |
| 301 return 0; | 294 return 0; |
| 302 const Node& coreNode = *constUnwrap<Node>(); | 295 const Node& coreNode = *constUnwrap<Node>(); |
| 303 if (isHTMLObjectElement(coreNode) || isHTMLEmbedElement(coreNode)) { | 296 if (isHTMLObjectElement(coreNode) || isHTMLEmbedElement(coreNode)) { |
| 304 LayoutObject* object = coreNode.layoutObject(); | 297 LayoutObject* object = coreNode.layoutObject(); |
| 305 if (object && object->isLayoutPart()) { | 298 if (object && object->isLayoutPart()) { |
| 306 Widget* widget = toLayoutPart(object)->widget(); | 299 Widget* widget = toLayoutPart(object)->widget(); |
| 307 if (widget && widget->isPluginContainer()) | 300 if (widget && widget->isPluginContainer()) |
| (...skipping 22 matching lines...) Expand all Loading... |
| 330 m_private = node; | 323 m_private = node; |
| 331 return *this; | 324 return *this; |
| 332 } | 325 } |
| 333 | 326 |
| 334 WebNode::operator PassRefPtrWillBeRawPtr<Node>() const | 327 WebNode::operator PassRefPtrWillBeRawPtr<Node>() const |
| 335 { | 328 { |
| 336 return m_private.get(); | 329 return m_private.get(); |
| 337 } | 330 } |
| 338 | 331 |
| 339 } // namespace blink | 332 } // namespace blink |
| OLD | NEW |