Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(545)

Side by Side Diff: third_party/WebKit/Source/web/WebNode.cpp

Issue 2872133003: Remove dependency of WebNode.cpp on AXObjectImpl (Closed)
Patch Set: Rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/AXObjectTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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/AXObjectCacheBase.h" 35 #include "core/dom/AXObjectCacheBase.h"
35 #include "core/dom/Document.h" 36 #include "core/dom/Document.h"
36 #include "core/dom/Element.h" 37 #include "core/dom/Element.h"
37 #include "core/dom/Node.h" 38 #include "core/dom/Node.h"
38 #include "core/dom/NodeList.h" 39 #include "core/dom/NodeList.h"
39 #include "core/dom/StaticNodeList.h" 40 #include "core/dom/StaticNodeList.h"
40 #include "core/dom/TagCollection.h" 41 #include "core/dom/TagCollection.h"
41 #include "core/dom/TaskRunnerHelper.h" 42 #include "core/dom/TaskRunnerHelper.h"
42 #include "core/editing/EditingUtilities.h" 43 #include "core/editing/EditingUtilities.h"
43 #include "core/editing/serializers/Serialization.h" 44 #include "core/editing/serializers/Serialization.h"
44 #include "core/events/Event.h" 45 #include "core/events/Event.h"
45 #include "core/exported/WebPluginContainerBase.h" 46 #include "core/exported/WebPluginContainerBase.h"
46 #include "core/html/HTMLCollection.h" 47 #include "core/html/HTMLCollection.h"
47 #include "core/html/HTMLElement.h" 48 #include "core/html/HTMLElement.h"
48 #include "core/layout/LayoutObject.h" 49 #include "core/layout/LayoutObject.h"
49 #include "core/layout/LayoutPart.h" 50 #include "core/layout/LayoutPart.h"
50 #include "modules/accessibility/AXObjectImpl.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 58
59 namespace blink { 59 namespace blink {
60 60
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 private_->GetDocument().UpdateStyleAndLayoutIgnorePendingStylesheets(); 120 private_->GetDocument().UpdateStyleAndLayoutIgnorePendingStylesheets();
121 return ToElement(private_.Get())->IsFocusable(); 121 return ToElement(private_.Get())->IsFocusable();
122 } 122 }
123 123
124 bool WebNode::IsContentEditable() const { 124 bool WebNode::IsContentEditable() const {
125 private_->GetDocument().UpdateStyleAndLayoutTree(); 125 private_->GetDocument().UpdateStyleAndLayoutTree();
126 return HasEditableStyle(*private_); 126 return HasEditableStyle(*private_);
127 } 127 }
128 128
129 bool WebNode::IsInsideFocusableElementOrARIAWidget() const { 129 bool WebNode::IsInsideFocusableElementOrARIAWidget() const {
130 return AXObjectImpl::IsInsideFocusableElementOrARIAWidget( 130 return AXObject::IsInsideFocusableElementOrARIAWidget(
131 *this->ConstUnwrap<Node>()); 131 *this->ConstUnwrap<Node>());
132 } 132 }
133 133
134 bool WebNode::IsElementNode() const { 134 bool WebNode::IsElementNode() const {
135 return private_->IsElementNode(); 135 return private_->IsElementNode();
136 } 136 }
137 137
138 bool WebNode::IsDocumentNode() const { 138 bool WebNode::IsDocumentNode() const {
139 return private_->IsDocumentNode(); 139 return private_->IsDocumentNode();
140 } 140 }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 WebNode& WebNode::operator=(Node* node) { 190 WebNode& WebNode::operator=(Node* node) {
191 private_ = node; 191 private_ = node;
192 return *this; 192 return *this;
193 } 193 }
194 194
195 WebNode::operator Node*() const { 195 WebNode::operator Node*() const {
196 return private_.Get(); 196 return private_.Get();
197 } 197 }
198 198
199 } // namespace blink 199 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/AXObjectTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698