gecko-dev/dom
Masayuki Nakano d8cc4e966b Bug 1286464 part.4 ContentEventHandler::SetRangeFromFlatTextOffset() should set end of the range to after a line break when the range is end between a set of native line breakers r=smaug
Currently, ContentEventHandler::SetRangeFromFlatTextOffset() sets end point to before a line breaker when the end of queried range is between a set of native line breakers (i.e., "\r]\n" on Windows). This causes unexpected empty range (e.g., "[]\n") when it queries a text rect at [\r]\n.

Therefore, it should select an XP line breaker in such case (i.e., the range should be "[\n]" when it queries "[\r]\n" or "\r[\n]").

Note that we don't need to do anything at setting selection start because it's always aligned to before the line breaker.

MozReview-Commit-ID: 6ht8QNAhibY

--HG--
extra : rebase_source : b7933554c2a5bf51b8faabe3a96d006971510e0a
2016-07-28 17:23:47 +09:00
..
alarm Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
animation Comment grammar fix; no bug (DONTBUILD). r=sbaratheon 2016-08-09 15:10:57 +08:00
apps Backed out changeset 16aa7041c009 (bug 1287107) for causing xpcshell and mac tests 2016-07-22 11:30:23 +02:00
archivereader Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
asmjscache Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
audiochannel Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
base Bug 1197451 - Add clipboardWrite permission r=billm 2016-07-08 17:19:17 -07:00
battery Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
bindings Bug 826619 - Remove Canvas mozFillRule. r=mrbkap r=bas 2016-08-04 15:05:50 -04:00
bluetooth Bug 1292091 - Part 2 - replace MaybeResolve(JS::UndefinedHandleValue) with MaybeResolveWithUndefined(); r=bz 2016-08-09 17:15:13 +08:00
broadcastchannel merge mozilla-inbound to mozilla-central a=merge 2016-07-25 15:50:41 +02:00
browser-element Bug 1287655 - place textarea/input cursor at end of text when initialized; r=smaug 2016-07-21 14:52:49 -04:00
cache Bug 1292091 - Part 2 - replace MaybeResolve(JS::UndefinedHandleValue) with MaybeResolveWithUndefined(); r=bz 2016-08-09 17:15:13 +08:00
camera Bug 1292091 - Part 2 - replace MaybeResolve(JS::UndefinedHandleValue) with MaybeResolveWithUndefined(); r=bz 2016-08-09 17:15:13 +08:00
canvas Bug 1292545 - Don't skip clearing the canvas because of W(1) failures on Mac. 2016-08-10 17:00:25 +02:00
cellbroadcast Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
console Bug 1292289, part 3 - Remove dependency of Console on xpcprivate.h. r=mrbkap 2016-08-04 11:35:13 -07:00
contacts Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
crypto Bug 1289330 - Check for success when calling ToKeyAlgorithm() r=bz 2016-07-28 10:21:23 +02:00
devicestorage Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
downloads Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
encoding Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
events Bug 1286464 part.4 ContentEventHandler::SetRangeFromFlatTextOffset() should set end of the range to after a line break when the range is end between a set of native line breakers r=smaug 2016-07-28 17:23:47 +09:00
fetch Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
filehandle Bug 1288077: Forward declare arrays by including 'nsTArrayForwardDeclare.h', r=froydnj 2016-07-20 17:29:36 +02:00
filesystem Bug 1284742 - Replace profile directory traversal with a generated directory tree in dom/filesystem/test/test_basic.html. r=mystor 2016-08-02 15:48:13 -04:00
flyweb Bug 1286281 - Part 1: Make the nsITransportProvider interface scriptable r=sicking 2016-07-27 08:46:00 -07:00
fmradio Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
gamepad Bug 1291988 - Allow arbitrary number of axes/buttons in Windows Gamepad API; r=ted r=cleu 2016-08-08 15:58:05 -07:00
geolocation Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
grid Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
html Bug 1294398: Always calculate seekable attribute value. r=jwwang 2016-08-11 20:35:59 +10:00
icc Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
identity Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
imptests Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
indexedDB Bug 1289179. IDBRequest::SetResultCallback should expose its script owner to active JS before entering its compartment. r=baku 2016-07-27 11:05:36 -04:00
inputmethod Bug 1264231 - Part 4: add a TODO in test. r=kanru 2016-08-05 19:44:57 +08:00
inputport Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
interfaces Bug 824592 part 3. Get rid of nsIDOMElementCSSInlineStyle. r=peterv 2016-08-02 11:05:38 -07:00
ipc Bug 1290318 - listen to "cacheservice:empty-cache" to clear media cache. r=mayhemer 2016-08-08 11:04:55 +08:00
json Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
jsurl Bug 1280584 - implement cloneWithNewRef and thereby make hash/ref links use a simple unified codepath in the IO service, r=valentin 2016-07-26 23:38:46 +01:00
locales Bug 1210985 - More specific error message for "useCredentials" and wildcard allowing origin. r=browser-chrome-fix 2016-08-10 14:10:45 +02:00
manifest Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
mathml Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo 2016-07-20 22:03:25 -07:00
media Bug 1113634 - Update mLastComputedValue in AudioEventTimeline when skipping events of same time; r=karlt 2016-08-08 16:00:35 -04:00
messagechannel Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
mobileconnection Bug 1290642 - Allow PGO of MobileConnection.cpp because we no longer compile with VS2013. r=glandium 2016-07-28 11:45:44 -07:00
mobileid Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
mobilemessage Bug 1292091 - Part 2 - replace MaybeResolve(JS::UndefinedHandleValue) with MaybeResolveWithUndefined(); r=bz 2016-08-09 17:15:13 +08:00
network Bug 1292091 - Part 2 - replace MaybeResolve(JS::UndefinedHandleValue) with MaybeResolveWithUndefined(); r=bz 2016-08-09 17:15:13 +08:00
newapps Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
nfc Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
notification Bug 1292091 - Part 2 - replace MaybeResolve(JS::UndefinedHandleValue) with MaybeResolveWithUndefined(); r=bz 2016-08-09 17:15:13 +08:00
offline Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
payment Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
performance Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo 2016-07-20 22:03:25 -07:00
permission Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
phonenumberutils Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
plugins Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
power Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
presentation Bug 1288600 - reject promise with NotFoundError while no device, and NotAllowedError while canceled by user. r=smaug. 2016-08-09 09:58:14 +08:00
promise Bug 1292091 - Part 1 - add Promise::MaybeResolveWithUndefined() utility method; r=bz 2016-08-10 10:07:42 +08:00
push Bug 1285889 - Moving the ContextualIdentityService.jsm from from browser/components/contextualidentity into tookit/components/contextualidentity. r=baku 2016-07-11 20:03:00 +02:00
quota Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
res
resourcestats Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
secureelement
security Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
settings Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
simplepush
smil Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
speakermanager Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
storage Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
svg Bug 843480 - zoom on iframe is applied twice. r=jwatt 2016-08-03 07:37:35 +01:00
system Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
telephony Bug 1292091 - Part 2 - replace MaybeResolve(JS::UndefinedHandleValue) with MaybeResolveWithUndefined(); r=bz 2016-08-09 17:15:13 +08:00
tests Bug 1160200 - APNG can't be used with type switching. r=mcaceres, r=jrmuizel, r=johns 2016-08-09 22:15:00 +02:00
tethering Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
time Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
tv Bug 1292091 - Part 2 - replace MaybeResolve(JS::UndefinedHandleValue) with MaybeResolveWithUndefined(); r=bz 2016-08-09 17:15:13 +08:00
u2f Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
url Bug 1287657 - Context menu items should not be disabled for media with a blob URL; r=kinetik, r=baku 2016-07-25 22:41:52 +12:00
voicemail Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
vr Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
wappush
webidl Merge m-c to inbound, a=merge 2016-08-08 16:29:21 -07:00
wifi Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
workers Bug 1292091 - Part 2 - replace MaybeResolve(JS::UndefinedHandleValue) with MaybeResolveWithUndefined(); r=bz 2016-08-09 17:15:13 +08:00
xbl Backed out changeset c0bf6e0b8f1d (bug 1173199) for build bustage CLOSED TREE 2016-07-28 11:48:20 -07:00
xhr Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
xml Backed out changeset c0bf6e0b8f1d (bug 1173199) for build bustage CLOSED TREE 2016-07-28 11:48:20 -07:00
xslt Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
xul Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
jar.mn
moz.build Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00