| 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 13 matching lines...) Expand all Loading... |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "public/web/WebNode.h" | 31 #include "public/web/WebNode.h" |
| 32 | 32 |
| 33 #include "bindings/core/v8/ExceptionState.h" | 33 #include "bindings/core/v8/ExceptionState.h" |
| 34 #include "core/dom/AXObject.h" |
| 34 #include "core/dom/Document.h" | 35 #include "core/dom/Document.h" |
| 35 #include "core/dom/Element.h" | 36 #include "core/dom/Element.h" |
| 36 #include "core/dom/Node.h" | 37 #include "core/dom/Node.h" |
| 37 #include "core/dom/NodeList.h" | 38 #include "core/dom/NodeList.h" |
| 38 #include "core/dom/StaticNodeList.h" | 39 #include "core/dom/StaticNodeList.h" |
| 39 #include "core/dom/TagCollection.h" | 40 #include "core/dom/TagCollection.h" |
| 40 #include "core/dom/TaskRunnerHelper.h" | 41 #include "core/dom/TaskRunnerHelper.h" |
| 41 #include "core/editing/EditingUtilities.h" | 42 #include "core/editing/EditingUtilities.h" |
| 42 #include "core/editing/serializers/Serialization.h" | 43 #include "core/editing/serializers/Serialization.h" |
| 43 #include "core/events/Event.h" | 44 #include "core/events/Event.h" |
| 44 #include "core/html/HTMLCollection.h" | 45 #include "core/html/HTMLCollection.h" |
| 45 #include "core/html/HTMLElement.h" | 46 #include "core/html/HTMLElement.h" |
| 46 #include "core/layout/LayoutObject.h" | 47 #include "core/layout/LayoutObject.h" |
| 47 #include "core/layout/LayoutPart.h" | 48 #include "core/layout/LayoutPart.h" |
| 48 #include "modules/accessibility/AXObjectCacheImpl.h" | 49 #include "modules/accessibility/AXObjectCacheImpl.h" |
| 49 #include "modules/accessibility/AXObjectImpl.h" | |
| 50 #include "platform/FrameViewBase.h" | 50 #include "platform/FrameViewBase.h" |
| 51 #include "platform/wtf/PtrUtil.h" | 51 #include "platform/wtf/PtrUtil.h" |
| 52 #include "public/platform/WebString.h" | 52 #include "public/platform/WebString.h" |
| 53 #include "public/web/WebAXObject.h" | 53 #include "public/web/WebAXObject.h" |
| 54 #include "public/web/WebDOMEvent.h" | 54 #include "public/web/WebDOMEvent.h" |
| 55 #include "public/web/WebDocument.h" | 55 #include "public/web/WebDocument.h" |
| 56 #include "public/web/WebElement.h" | 56 #include "public/web/WebElement.h" |
| 57 #include "public/web/WebElementCollection.h" | 57 #include "public/web/WebElementCollection.h" |
| 58 #include "public/web/WebPluginContainer.h" | 58 #include "public/web/WebPluginContainer.h" |
| 59 #include "web/WebPluginContainerImpl.h" | 59 #include "web/WebPluginContainerImpl.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 private_->GetDocument().UpdateStyleAndLayoutIgnorePendingStylesheets(); | 122 private_->GetDocument().UpdateStyleAndLayoutIgnorePendingStylesheets(); |
| 123 return ToElement(private_.Get())->IsFocusable(); | 123 return ToElement(private_.Get())->IsFocusable(); |
| 124 } | 124 } |
| 125 | 125 |
| 126 bool WebNode::IsContentEditable() const { | 126 bool WebNode::IsContentEditable() const { |
| 127 private_->GetDocument().UpdateStyleAndLayoutTree(); | 127 private_->GetDocument().UpdateStyleAndLayoutTree(); |
| 128 return HasEditableStyle(*private_); | 128 return HasEditableStyle(*private_); |
| 129 } | 129 } |
| 130 | 130 |
| 131 bool WebNode::IsInsideFocusableElementOrARIAWidget() const { | 131 bool WebNode::IsInsideFocusableElementOrARIAWidget() const { |
| 132 return AXObjectImpl::IsInsideFocusableElementOrARIAWidget( | 132 return AXObject::IsInsideFocusableElementOrARIAWidget( |
| 133 *this->ConstUnwrap<Node>()); | 133 *this->ConstUnwrap<Node>()); |
| 134 } | 134 } |
| 135 | 135 |
| 136 bool WebNode::IsElementNode() const { | 136 bool WebNode::IsElementNode() const { |
| 137 return private_->IsElementNode(); | 137 return private_->IsElementNode(); |
| 138 } | 138 } |
| 139 | 139 |
| 140 bool WebNode::IsDocumentNode() const { | 140 bool WebNode::IsDocumentNode() const { |
| 141 return private_->IsDocumentNode(); | 141 return private_->IsDocumentNode(); |
| 142 } | 142 } |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 WebNode& WebNode::operator=(Node* node) { | 209 WebNode& WebNode::operator=(Node* node) { |
| 210 private_ = node; | 210 private_ = node; |
| 211 return *this; | 211 return *this; |
| 212 } | 212 } |
| 213 | 213 |
| 214 WebNode::operator Node*() const { | 214 WebNode::operator Node*() const { |
| 215 return private_.Get(); | 215 return private_.Get(); |
| 216 } | 216 } |
| 217 | 217 |
| 218 } // namespace blink | 218 } // namespace blink |
| OLD | NEW |