[Webkit-unassigned] [Bug 146533] AX: Selection change as a result of focusing an element should include that information in the intent
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jul 2 14:43:17 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=146533
--- Comment #4 from chris fleizach <cfleizach at apple.com> ---
Comment on attachment 255970
--> https://bugs.webkit.org/attachment.cgi?id=255970
patch
View in context: https://bugs.webkit.org/attachment.cgi?id=255970&action=review
> Source/WebCore/accessibility/AccessibilityRenderObject.cpp:1686
> + if (AXObjectCache* cache = axObjectCache())
i don't think you have to worry about axObjectCache() being nullptr inside of an AX object
> Source/WebCore/dom/Element.h:325
> + static AXTextStateChangeIntent defaultFocusTextStateChangeIntent() { return AXTextStateChangeIntent(AXTextStateChangeTypeSelectionMove, AXTextSelection { AXTextSelectionDirectionDiscontiguous, AXTextSelectionGranularityUnknown, true }); }
is this one different from the default AXTextStateChangeIntent();
for cases, like
select(Element::defaultFocusTextStateChangeIntent());
it would be nice to not have to pass the argument
> Source/WebCore/editing/FrameSelection.cpp:174
> + AXTextStateChangeIntent newIntent;
can we remove the else and just initialize with
newIntent = intent;
> Source/WebCore/html/HTMLTextFormControlElement.h:113
> + void restoreCachedSelection(const AXTextStateChangeIntent& = AXTextStateChangeIntent());
AXTextStateChangeIntent is looking a bit wordy. Since this is being used all over non accessibility code, maybe the name should be changed to something like
TextIntention
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150702/47264c1d/attachment.html>
More information about the webkit-unassigned
mailing list