Chromium Code Reviews| Index: third_party/WebKit/Source/core/dom/ElementRareData.h |
| diff --git a/third_party/WebKit/Source/core/dom/ElementRareData.h b/third_party/WebKit/Source/core/dom/ElementRareData.h |
| index 687cac5460e37c58b5472a6cd256b4dc178901dc..dfca0becf031b429ae56d8b35bc519433f4d41a6 100644 |
| --- a/third_party/WebKit/Source/core/dom/ElementRareData.h |
| +++ b/third_party/WebKit/Source/core/dom/ElementRareData.h |
| @@ -22,9 +22,11 @@ |
| #ifndef ElementRareData_h |
| #define ElementRareData_h |
| +#include <memory> |
| #include "bindings/core/v8/ScriptWrappableVisitor.h" |
| #include "core/animation/ElementAnimations.h" |
| #include "core/css/cssom/InlineStylePropertyMap.h" |
| +#include "core/dom/AccessibleNode.h" |
| #include "core/dom/Attr.h" |
| #include "core/dom/CompositorProxiedPropertySet.h" |
| #include "core/dom/DatasetDOMStringMap.h" |
| @@ -39,7 +41,6 @@ |
| #include "core/html/ClassList.h" |
| #include "platform/heap/Handle.h" |
| #include "wtf/HashSet.h" |
| -#include <memory> |
| namespace blink { |
| @@ -153,6 +154,17 @@ class ElementRareData : public NodeRareData { |
| return m_customElementDefinition.get(); |
| } |
| + AccessibleNode* accessibleNode() const { return m_accessibleNode.get(); } |
| + AccessibleNode* ensureAccessibleNode(Element* ownerElement) { |
| + if (!m_accessibleNode) { |
| + m_accessibleNode = new AccessibleNode(ownerElement); |
| + |
| + // Note to reviewers: do I need this? |
| + ScriptWrappableVisitor::writeBarrier(this, m_accessibleNode); |
|
esprehn
2017/03/22 03:40:32
Yeah I have no idea what this is, haraken@ should
|
| + } |
| + return m_accessibleNode; |
| + } |
| + |
| AttrNodeList& ensureAttrNodeList(); |
| AttrNodeList* attrNodeList() { return m_attrNodeList.get(); } |
| void removeAttrNodeList() { m_attrNodeList.clear(); } |
| @@ -210,6 +222,8 @@ class ElementRareData : public NodeRareData { |
| Member<PseudoElementData> m_pseudoElementData; |
| + Member<AccessibleNode> m_accessibleNode; |
| + |
| explicit ElementRareData(LayoutObject*); |
| }; |