forked from mirrors/gecko-dev
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
3 changed files with 6 additions and 9 deletions
|
|
@ -349,12 +349,10 @@
|
||||||
|
|
||||||
#pragma mark - ParameterizedTextAttributeGetters
|
#pragma mark - ParameterizedTextAttributeGetters
|
||||||
|
|
||||||
// Bug 1657653: This is too slow for now
|
// AXLengthForTextMarkerRange
|
||||||
// AXLengthForTextMarkerRange_
|
|
||||||
- (NSNumber* _Nullable)moxLengthForTextMarkerRange:(id _Nonnull)textMarkerRange;
|
- (NSNumber* _Nullable)moxLengthForTextMarkerRange:(id _Nonnull)textMarkerRange;
|
||||||
|
|
||||||
// Bug 1657653: This is too slow for now
|
// AXStringForTextMarkerRange
|
||||||
// AXStringForTextMarkerRange_
|
|
||||||
- (NSString* _Nullable)moxStringForTextMarkerRange:(id _Nonnull)textMarkerRange;
|
- (NSString* _Nullable)moxStringForTextMarkerRange:(id _Nonnull)textMarkerRange;
|
||||||
|
|
||||||
// AXTextMarkerRangeForUnorderedTextMarkers
|
// AXTextMarkerRangeForUnorderedTextMarkers
|
||||||
|
|
@ -378,8 +376,7 @@
|
||||||
// AXPreviousTextMarkerForTextMarker
|
// AXPreviousTextMarkerForTextMarker
|
||||||
- (id _Nullable)moxPreviousTextMarkerForTextMarker:(id _Nonnull)textMarker;
|
- (id _Nullable)moxPreviousTextMarkerForTextMarker:(id _Nonnull)textMarker;
|
||||||
|
|
||||||
// Bug 1657653: This is too slow for now
|
// AXAttributedStringForTextMarkerRange
|
||||||
// AXAttributedStringForTextMarkerRange_
|
|
||||||
- (NSAttributedString* _Nullable)moxAttributedStringForTextMarkerRange:(id _Nonnull)textMarkerRange;
|
- (NSAttributedString* _Nullable)moxAttributedStringForTextMarkerRange:(id _Nonnull)textMarkerRange;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ loadScripts(
|
||||||
|
|
||||||
function stringForRange(macDoc, range) {
|
function stringForRange(macDoc, range) {
|
||||||
return macDoc.getParameterizedAttributeValue(
|
return macDoc.getParameterizedAttributeValue(
|
||||||
"AXStringForTextMarkerRange_",
|
"AXStringForTextMarkerRange",
|
||||||
range
|
range
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ function testValueChangedEventData(
|
||||||
textMarker
|
textMarker
|
||||||
);
|
);
|
||||||
let str = macIface.getParameterizedAttributeValue(
|
let str = macIface.getParameterizedAttributeValue(
|
||||||
"AXStringForTextMarkerRange_",
|
"AXStringForTextMarkerRange",
|
||||||
range,
|
range,
|
||||||
"correct word before caret"
|
"correct word before caret"
|
||||||
);
|
);
|
||||||
|
|
@ -100,7 +100,7 @@ async function synthKeyAndTestSelectionChanged(
|
||||||
);
|
);
|
||||||
|
|
||||||
let rangeString = inputEvent.macIface.getParameterizedAttributeValue(
|
let rangeString = inputEvent.macIface.getParameterizedAttributeValue(
|
||||||
"AXStringForTextMarkerRange_",
|
"AXStringForTextMarkerRange",
|
||||||
inputEvent.data.AXSelectedTextMarkerRange
|
inputEvent.data.AXSelectedTextMarkerRange
|
||||||
);
|
);
|
||||||
is(
|
is(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue