WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
114692
AX: aria-level does not override implicit level on h1, h2, etc
https://bugs.webkit.org/show_bug.cgi?id=114692
Summary
AX: aria-level does not override implicit level on h1, h2, etc
James Craig
Reported
2013-04-16 11:21:27 PDT
Change will be in AccessibilityNodeObject::headingLevel. Update commented lines of heading-level layout test at the same time.
Attachments
patch
(3.83 KB, patch)
2013-04-17 01:26 PDT
,
James Craig
no flags
Details
Formatted Diff
Diff
patch
(3.91 KB, patch)
2013-04-17 09:24 PDT
,
James Craig
no flags
Details
Formatted Diff
Diff
patch with review feedback
(4.09 KB, patch)
2013-04-17 11:34 PDT
,
James Craig
no flags
Details
Formatted Diff
Diff
patch with review feedback
(3.94 KB, patch)
2013-04-17 14:00 PDT
,
James Craig
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2013-04-16 11:22:18 PDT
<
rdar://problem/13665073
>
James Craig
Comment 2
2013-04-17 01:26:48 PDT
Created
attachment 198479
[details]
patch
chris fleizach
Comment 3
2013-04-17 08:03:30 PDT
Comment on
attachment 198479
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=198479&action=review
> Source/WebCore/ChangeLog:3 > + aria-level does not override implicit level on h1, h2, etc
We should prefix accessibility bugs with AX: so it's easier to know what aspect of the code their referring to
> Source/WebCore/accessibility/AccessibilityNodeObject.cpp:719 > + if (isHeading() && getAttribute(aria_levelAttr).toInt() > 0)
You should cache the value of getAttribute rather than call it two times
James Craig
Comment 4
2013-04-17 09:16:58 PDT
(In reply to
comment #3
)
> We should prefix accessibility bugs with AX: so it's easier to know what aspect…
Is this concern only for the ChangeLog comments? I hadn't been prefixing the bug titles b/c they're all filed in the "Accessibility" component.
> You should cache the value of getAttribute rather than call it two times
Okay, thanks.
chris fleizach
Comment 5
2013-04-17 09:22:20 PDT
(In reply to
comment #4
)
> (In reply to
comment #3
) > > We should prefix accessibility bugs with AX: so it's easier to know what aspect… > > Is this concern only for the ChangeLog comments? I hadn't been prefixing the bug titles b/c they're all filed in the "Accessibility" component.
My preference is that all Accessibility bugs have AX: in the title. The category of the bug isn't transferred to change logs, commit logs, etc, etc
> > > You should cache the value of getAttribute rather than call it two times > > Okay, thanks.
James Craig
Comment 6
2013-04-17 09:24:31 PDT
Created
attachment 198581
[details]
patch
chris fleizach
Comment 7
2013-04-17 09:31:52 PDT
Comment on
attachment 198581
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=198581&action=review
> Source/WebCore/accessibility/AccessibilityNodeObject.cpp:720 > + if (isHeading() && ariaLevel > 0)
we should probably do if (isHeading()) { int ariaLevel = getAttribute(aria_levelAttr).toInt(); if (ariaLevel > 0) return ariaLevel; } so that every object doesn't have to make that getAttribute call
James Craig
Comment 8
2013-04-17 11:34:31 PDT
Created
attachment 198589
[details]
patch with review feedback
chris fleizach
Comment 9
2013-04-17 12:39:47 PDT
Comment on
attachment 198589
[details]
patch with review feedback View in context:
https://bugs.webkit.org/attachment.cgi?id=198589&action=review
> Source/WebCore/accessibility/AccessibilityNodeObject.cpp:721 > + if (ariaLevel > 0) {
brackets not needed for a one line if (this will fail style-bot)
> Source/WebCore/accessibility/AccessibilityNodeObject.cpp:743 > +
this extra insertion should probably be removed to reduce churn
James Craig
Comment 10
2013-04-17 14:00:39 PDT
Created
attachment 198606
[details]
patch with review feedback
WebKit Commit Bot
Comment 11
2013-04-17 18:10:15 PDT
Comment on
attachment 198606
[details]
patch with review feedback Clearing flags on attachment: 198606 Committed
r148654
: <
http://trac.webkit.org/changeset/148654
>
WebKit Commit Bot
Comment 12
2013-04-17 18:10:18 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug