Changeset 284798 in webkit
- Timestamp:
- Oct 25, 2021, 11:04:45 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
accessibility/AccessibilityObject.h (modified) (2 diffs)
-
accessibility/AccessibilityObjectInterface.h (modified) (2 diffs)
-
accessibility/isolatedtree/AXIsolatedObject.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r284796 r284798 1 2021-10-25 Andres Gonzalez <andresg_22@apple.com> 2 3 Remove childrenInitialized() from the AXCoreObject interface. 4 https://bugs.webkit.org/show_bug.cgi?id=232241 5 <rdar://problem/84613750> 6 7 Reviewed by Chris Fleizach. 8 9 Follow up to https://bugs.webkit.org/show_bug.cgi?id=232130 10 11 AXCoreObject::childrenInitialized is an internal housekeeping method to 12 the AccessibilityObject class hierarchy, thus it is unnecessary to 13 expose in the AXCoreObject interface. 14 15 * accessibility/AccessibilityObject.h: 16 (WebCore::AccessibilityObject::childrenInitialized const): 17 * accessibility/AccessibilityObjectInterface.h: 18 (WebCore::AXCoreObject::isDescendantOfObject const): No need to check 19 for childrenInitialized in this function. 20 * accessibility/isolatedtree/AXIsolatedObject.h: 21 1 22 2021-10-25 Tyler Wilcock <tyler_w@apple.com> 2 23 -
trunk/Source/WebCore/accessibility/AccessibilityObject.h
r284769 r284798 496 496 497 497 bool canHaveChildren() const override { return true; } 498 bool childrenInitialized() const override { return m_childrenInitialized; }499 498 void updateChildrenIfNecessary() override; 500 499 void setNeedsToUpdateChildren() override { } … … 811 810 AXID m_id { 0 }; 812 811 protected: // FIXME: Make the data members private. 812 bool childrenInitialized() const { return m_childrenInitialized; } 813 813 AccessibilityChildrenVector m_children; 814 814 mutable bool m_childrenInitialized { false }; -
trunk/Source/WebCore/accessibility/AccessibilityObjectInterface.h
r284769 r284798 1250 1250 1251 1251 virtual bool canHaveChildren() const = 0; 1252 virtual bool childrenInitialized() const = 0;1253 1252 virtual void updateChildrenIfNecessary() = 0; 1254 1253 virtual void setNeedsToUpdateChildren() = 0; … … 1626 1625 inline bool AXCoreObject::isDescendantOfObject(const AXCoreObject* axObject) const 1627 1626 { 1628 return axObject && axObject->childrenInitialized() 1629 && Accessibility::findAncestor<AXCoreObject>(*this, false, [axObject] (const AXCoreObject& object) { 1627 return axObject && Accessibility::findAncestor<AXCoreObject>(*this, false, [axObject] (const AXCoreObject& object) { 1630 1628 return &object == axObject; 1631 1629 }) != nullptr; -
trunk/Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.h
r284769 r284798 611 611 void insertChild(AXCoreObject*, unsigned, DescendIfIgnored = DescendIfIgnored::Yes) override; 612 612 bool canHaveChildren() const override; 613 bool childrenInitialized() const override { return true; }614 613 void setNeedsToUpdateChildren() override; 615 614 void setNeedsToUpdateSubtree() override;
Note:
See TracChangeset
for help on using the changeset viewer.