diff options
Diffstat (limited to 'Source/WebCore/accessibility/AccessibilityList.h')
-rw-r--r-- | Source/WebCore/accessibility/AccessibilityList.h | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/Source/WebCore/accessibility/AccessibilityList.h b/Source/WebCore/accessibility/AccessibilityList.h index 5e844ff0c..908979f4a 100644 --- a/Source/WebCore/accessibility/AccessibilityList.h +++ b/Source/WebCore/accessibility/AccessibilityList.h @@ -10,7 +10,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of + * 3. Neither the name of Apple Inc. ("Apple") nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * @@ -26,33 +26,31 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef AccessibilityList_h -#define AccessibilityList_h +#pragma once #include "AccessibilityRenderObject.h" namespace WebCore { -class AccessibilityList : public AccessibilityRenderObject { - -private: - explicit AccessibilityList(RenderObject*); +class AccessibilityList final : public AccessibilityRenderObject { public: - static PassRefPtr<AccessibilityList> create(RenderObject*); + static Ref<AccessibilityList> create(RenderObject*); virtual ~AccessibilityList(); - virtual bool isList() const override { return true; } bool isUnorderedList() const; bool isOrderedList() const; bool isDescriptionList() const; - virtual AccessibilityRole roleValue() const override final; + AccessibilityRole roleValue() const override; + private: - virtual bool computeAccessibilityIsIgnored() const override; + explicit AccessibilityList(RenderObject*); + bool isList() const override { return true; } + bool computeAccessibilityIsIgnored() const override; + AccessibilityRole determineAccessibilityRole() override; + bool childHasPseudoVisibleListItemMarkers(RenderObject*); }; -ACCESSIBILITY_OBJECT_TYPE_CASTS(AccessibilityList, isList()) - } // namespace WebCore -#endif // AccessibilityList_h +SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityList, isList()) |