gecko-dev/dom
Masayuki Nakano 60bb642e47 Bug 1275528 part.1 Support a way to query content relative to insertion point r=smaug
Native IME handler may want to query content relative to start of selection (or composition if there is it). Additionally, in e10s mode, insertion point in actual content may be different from the cache in parent.  Therefore, in some cases, it does make sense to query content with offset relative to start of selection or composition.

This patch implements it simply and only in non-e10s mode.

Additionally, this fixes a bug of nsQueryContentEventResult::GetOffset() which hasn't been accepted its calls even if the event message is valid (eQueryTextContent, eQueryTextRect and eQueryCaretRect).

MozReview-Commit-ID: 34I7vyTUAgO

--HG--
extra : rebase_source : d79ba0dc3e002f7691495ee1ff8bdb3854d8f6fe
2016-06-16 14:10:49 +09:00
..
activities Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
alarm
animation Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
apps Bug 1274037 - Rename the gecko.mstone and gecko.buildID prefs to dom.apps.lastUpdate.* r=fabrice 2016-05-20 19:57:32 -07:00
archivereader Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
asmjscache Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
audiochannel Bug 1240423 - part7 : add attributes for AudioChannelLog. r=baku 2016-06-01 10:26:29 +08:00
base Bug 1275528 part.1 Support a way to query content relative to insertion point r=smaug 2016-06-16 14:10:49 +09:00
battery Bug 1259335 - Part 2: Remove deprecated navigator.battery API and tests. r=baku 2016-06-06 23:10:44 -07:00
bindings Bug 1279453 - Remove separate worker binding for ServiceWorkerRegistration API, r=bkelly 2016-06-12 16:26:51 +02:00
bluetooth Bug 1262671 - void** -> PickleIterator (r=froydnj) 2016-05-27 09:57:38 -07:00
broadcastchannel Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
browser-element merge mozilla-inbound to central a=merge 2016-06-10 15:39:23 +02:00
cache Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
camera Bug 1275744 - Reference MOZ_LOG in dom comments. r=erahm 2016-05-26 11:08:47 -07:00
canvas Backed out 8 changesets (bug 1268638) for build bustage CLOSED TREE 2016-06-21 14:53:22 -07:00
cellbroadcast Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
console Bug 1278838 - Remove separate worker binding for Performance API, r=smaug 2016-06-09 19:04:42 +02:00
contacts
crypto bug 1264771 - randomize key IDs in WebCrypto r=ttaubert 2016-05-04 12:48:37 -07:00
devicestorage Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
downloads Bug 1269303 - Remove RequestSync API, r=fabrice 2016-05-03 11:13:03 +02:00
encoding Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
events Bug 1275528 part.1 Support a way to query content relative to insertion point r=smaug 2016-06-16 14:10:49 +09:00
fetch Bug 1274170 - Remove unnecessary includes of nsCorsListenerProxy. r=jkingston 2016-06-21 12:54:03 +02:00
filehandle Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
filesystem Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
flyweb Bug 1263991 part 7: Add assertions checking that the actor is still alive on incoming messages. r=baku 2016-06-07 02:46:03 -07:00
fmradio Bug 1272414 - rip out qemu/browser/b2g flags from marionette manifests, r=AutomatedTester 2016-05-19 17:23:26 +01:00
gamepad Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
geolocation Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
html Bug 825294 - Add framework for datepicker widgets to input[type=date]. r=smaug 2016-06-20 15:55:00 +02:00
icc Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
identity
imptests Bug 1269872 - adjust manifests of all jobs that require a gpu. r=RyanVM,jgilbert 2016-05-25 16:22:27 -04:00
indexedDB Bug 1246828 - Part 3: Modify Factory instance counting to include FactoryOp and Database instances too; r=asuth 2016-06-15 11:48:56 +01:00
inputmethod Bug 1277234 - Rename key name VolumeUp to AudioVolumeUp. r=masayuki 2016-06-02 15:55:53 +02:00
inputport Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
interfaces Bug 1275528 part.1 Support a way to query content relative to insertion point r=smaug 2016-06-16 14:10:49 +09:00
ipc Bug 1280805 - Don't assert in the valid case where the child process gets an event with an input block id but no mHandledByAPZ. r=rbarker 2016-06-20 12:52:47 -04:00
json Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
jsurl Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
locales Bug 1259517 - Make dropping images in editors work in e10s. r=baku 2016-06-21 15:17:37 -07:00
manifest Bug 1251175 - Removed dependence on CPOW. r=mconley 2016-06-14 02:40:00 +01:00
mathml Bug 1274796 - Support spaces in MathML namedspaces. r=fredw 2016-05-27 01:48:00 +02:00
media Bug 1281139: Rename |CompositableForwarder| to |TextureForwarder| in b2g media code, r=nical 2016-06-21 16:54:26 +02:00
messagechannel Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
messages Bug 1261011 - Remove Inter-App Communication API; r=fabrice 2016-05-05 07:39:10 -04:00
mobileconnection Bug 1262671 - void** -> PickleIterator (r=froydnj) 2016-05-27 09:57:38 -07:00
mobileid
mobilemessage Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
network Bug 1275744 - Reference MOZ_LOG in dom comments. r=erahm 2016-05-26 11:08:47 -07:00
newapps
nfc Bug 1275016 - Rename Endian.h to EndianUtils.h to avoid #include confusion with Android's endian.h stdlib header. r=froydnj 2016-05-22 13:31:11 -07:00
notification Bug 1264815 - Add a component to handle 'persisent-notification-click'. r=kcambridge 2016-05-12 09:28:46 +08:00
offline Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
payment Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
performance Bug 1279194 - Get rid of nsDOMPerformanceNavigationType, r=smaug 2016-06-10 16:29:46 +02:00
permission Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
phonenumberutils
plugins Bug 1279657 - Fix missed callsites. - r=jrmuizel 2016-06-21 14:04:00 -07:00
power Bug 1246828 - Part 4: Rename profile-before-change2 to profile-before-change-qm and profile-before-change3 to profile-before-change-telemetry; r=asuth 2016-06-15 11:49:04 +01:00
presentation Bug 1276927: Fix DOM code to build with Android NDK, r=fabrice 2016-06-16 08:43:51 +01:00
promise Bug 1276272 - part 1 - add Promise::MaybeRejectWithVode() utility method; r=ehsan 2016-06-09 20:26:47 +01:00
push Bug 1271198 - Convert Websockets to use AsyncOpen2(). r=jduell 2016-05-17 12:04:11 +02:00
quota Bug 1280336 - b2g-installer broke indexedDB; r=asuth 2016-06-16 15:26:22 +01:00
res
resourcestats
secureelement
security Bug 1223838 - Fix wrong policy associated with empty string. r=fkiefer,hsivonen 2016-05-30 15:17:45 +08:00
settings
simplepush Bug 1271198 - Convert Websockets to use AsyncOpen2(). r=jduell 2016-05-17 12:04:11 +02:00
smil Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
speakermanager Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
storage Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
svg Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
system Bug 1276927: Define HAVE_ANDROID_OS before including 'android_filesystem_config.h', r=fabrice 2016-06-16 08:43:51 +01:00
telephony Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
tests Bug 1274741 - Skip the Fetch nestedWorkerTest on Windows for causing frequent WinXP timeouts in other DOM mochitests. r=bkelly 2016-06-21 16:07:19 -04:00
tethering Bug 1272414 - rip out qemu/browser/b2g flags from marionette manifests, r=AutomatedTester 2016-05-19 17:23:26 +01:00
time Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
tv Bug 1272707, part 1 - Shrink down TV mock data test file so as to not exceed pref size limit. r=mantaroh 2016-05-17 07:55:49 -07:00
u2f Bug 1275479 - Refactor U2F Token Interface (Part 1). r=keeler 2016-05-31 20:51:24 -07:00
voicemail Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
vr Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
wappush
webidl Bug 825294 - Add framework for datepicker widgets to input[type=date]. r=smaug 2016-06-20 15:55:00 +02:00
wifi Bug 1275016 - Rename Endian.h to EndianUtils.h to avoid #include confusion with Android's endian.h stdlib header. r=froydnj 2016-05-22 13:31:11 -07:00
workers Bug 1280241 - Remove the limit of number of workers per domain, r=khuey 2016-06-17 11:25:21 +01:00
xbl Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
xml Bug 1267989 part 1. Rename nsScriptLoader::Add/RemoveExecuteBlocker to Add/RemoveParserBlockingScriptBlocker, to more clearly reflect what it does. r=smaug 2016-05-20 23:13:18 -04:00
xslt Bug 1274170 - Remove unnecessary includes of nsCorsListenerProxy. r=jkingston 2016-06-21 12:54:03 +02:00
xul Bug 1275744 - Reference MOZ_LOG in dom comments. r=erahm 2016-05-26 11:08:47 -07:00
jar.mn
moz.build Bug 1278816 - Move Performance API into dom/performance, r=smaug 2016-06-09 12:42:21 +02:00