gecko-dev/dom
Masayuki Nakano 2408130832 Bug 1286464 part.17 ContentEventHandler::OnQueryTextRect() should compute a line breaker's rect from the last text frame if the queried range starts with a block frame r=smaug
When queried range starts with a block frame, we cannot compute proper line breaker's rect at its open tag only with the frame's rect because the proper rect should be at the end of previous text frame.

Therefore, this patch makes SetRangeFromFlatTextOffset() return the last text node found at scanning the range. Then, OnQueryTextRect() can compute the first line breaker's rect with it (if there is at least one text node).

However, if the last text node is hidden by CSS or something, this patch won't work. We need to do something in another bug for hidden frame's issue, though. But note that IME typically doesn't request hidden text's rect because neither selection nor composition string is in such range.

MozReview-Commit-ID: 2FFzNoubJ1y

--HG--
extra : rebase_source : b9c4af40b8747f19da8e55434d580e29322c9601
2016-08-08 18:11:11 +09:00
..
alarm
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
asmjscache
audiochannel Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
base Bug 1286464 part.15 Rewrite ContentEventHandler::OnQueryTextRect() with new utilities like ContentEventHandler::OnQueryTextRectArray() r=smaug 2016-08-12 14:11:33 +09:00
battery
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
console Bug 1292289, part 3 - Remove dependency of Console on xpcprivate.h. r=mrbkap 2016-08-04 11:35:13 -07:00
contacts
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
encoding
events Bug 1286464 part.17 ContentEventHandler::OnQueryTextRect() should compute a line breaker's rect from the last text frame if the queried range starts with a block frame r=smaug 2016-08-08 18:11:11 +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
html Bug 1294398: Always calculate seekable attribute value. r=jwwang 2016-08-11 20:35:59 +10:00
icc
identity
imptests
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
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
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
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
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
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
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
payment
performance Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo 2016-07-20 22:03:25 -07:00
permission
phonenumberutils
plugins Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
power
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
quota Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
res
resourcestats
secureelement
security Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
settings
simplepush
smil Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm. 2016-08-08 12:18:10 +10:00
speakermanager
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
time
tv Bug 1292091 - Part 2 - replace MaybeResolve(JS::UndefinedHandleValue) with MaybeResolveWithUndefined(); r=bz 2016-08-09 17:15:13 +08:00
u2f
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
vr
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