mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 02:14:43 +00:00
Bug 1659215 - Re-expose text attributes. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D87149
This commit is contained in:
parent
3489d995ee
commit
62494de24f
@ -349,12 +349,10 @@
|
||||
|
||||
#pragma mark - ParameterizedTextAttributeGetters
|
||||
|
||||
// Bug 1657653: This is too slow for now
|
||||
// AXLengthForTextMarkerRange_
|
||||
// AXLengthForTextMarkerRange
|
||||
- (NSNumber* _Nullable)moxLengthForTextMarkerRange:(id _Nonnull)textMarkerRange;
|
||||
|
||||
// Bug 1657653: This is too slow for now
|
||||
// AXStringForTextMarkerRange_
|
||||
// AXStringForTextMarkerRange
|
||||
- (NSString* _Nullable)moxStringForTextMarkerRange:(id _Nonnull)textMarkerRange;
|
||||
|
||||
// AXTextMarkerRangeForUnorderedTextMarkers
|
||||
@ -378,8 +376,7 @@
|
||||
// AXPreviousTextMarkerForTextMarker
|
||||
- (id _Nullable)moxPreviousTextMarkerForTextMarker:(id _Nonnull)textMarker;
|
||||
|
||||
// Bug 1657653: This is too slow for now
|
||||
// AXAttributedStringForTextMarkerRange_
|
||||
// AXAttributedStringForTextMarkerRange
|
||||
- (NSAttributedString* _Nullable)moxAttributedStringForTextMarkerRange:(id _Nonnull)textMarkerRange;
|
||||
|
||||
@end
|
||||
|
@ -13,7 +13,7 @@ loadScripts(
|
||||
|
||||
function stringForRange(macDoc, range) {
|
||||
return macDoc.getParameterizedAttributeValue(
|
||||
"AXStringForTextMarkerRange_",
|
||||
"AXStringForTextMarkerRange",
|
||||
range
|
||||
);
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ function testValueChangedEventData(
|
||||
textMarker
|
||||
);
|
||||
let str = macIface.getParameterizedAttributeValue(
|
||||
"AXStringForTextMarkerRange_",
|
||||
"AXStringForTextMarkerRange",
|
||||
range,
|
||||
"correct word before caret"
|
||||
);
|
||||
@ -100,7 +100,7 @@ async function synthKeyAndTestSelectionChanged(
|
||||
);
|
||||
|
||||
let rangeString = inputEvent.macIface.getParameterizedAttributeValue(
|
||||
"AXStringForTextMarkerRange_",
|
||||
"AXStringForTextMarkerRange",
|
||||
inputEvent.data.AXSelectedTextMarkerRange
|
||||
);
|
||||
is(
|
||||
|
Loading…
Reference in New Issue
Block a user