Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Перейти к файлу
Masayuki Nakano 4e5c167f73 Bug 1275914 part.5 Support special selections at handling eQuerySelectedText r=smaug
TextComposition needs to query first IME selection.  Therefore, we need to add support to query special selection range with eQuerySelectedText.

First, WidgetQueryContentEvent::mInput should have mSelectionType which should be initialized with InitForQuerySelectedText() but unfortunately, there is no method for eQuerySelectedText.  Therefore, this patch initializes WidgetQueryContentEvent::mInit::mSelectionType with SelectionType::eNormal in its constructor.

Next, ContentEventHandler needs to support to handle eQuerySelectedText with special selection types.  However, we need to create 2 paths in some cases, one is for normal selection and the other is for special selections because there are no selection ranges may be usual case for special selections but not so for normal selection.  Therefore, ContentEventHandler::InitCommon() becomes a little bit more complicated.  ContentEventHandler::mSelection and ContentEventHandler::mFirstSelectedRange is initialized with the specified selection type but normal selection type is also necessary to compute the selection root since the selection root is computed from the first selected range which may not be anywhere if its selection type is not normal.

Finally, ContentEventHandler::OnQuerySelectedText() returns "there are no selections" as succeeded case in special selection type cases.

MozReview-Commit-ID: 9WzUx8b5piw

--HG--
extra : rebase_source : fb07b40748b594d36315f1fc21c0a02ff9f668bb
2016-06-21 13:13:11 +09:00
accessible Bug 1279643 - Don't compile interfaces with midl during artifact builds. r=mshal 2016-06-14 05:30:41 -07:00
addon-sdk Bug 1280200 - Convert toolkit/loader.js to use channel.open2() r=gkrizsanits 2016-06-20 11:20:59 +02:00
b2g Bug 1276927: Build B2G with Android build scripts where possible, r=glandium 2016-06-16 08:43:51 +01:00
browser merge mozilla-inbound to mozilla-central a=merge 2016-06-18 04:35:15 +01:00
build Bug 1279369 - Move --enable-debug, MOZ_DEBUG_FLAGS, and --enable-debug-symbols to Python configure. r=glandium 2016-06-20 16:02:01 -07:00
caps Bug 1274480 - followup: use image that exists on android, rs=bustage 2016-06-09 15:35:11 +01:00
chrome Bug 1262671 - void** -> PickleIterator (r=froydnj) 2016-05-27 09:57:38 -07:00
config Bug 1275111 - Move artifact download/install into its own tier; r=glandium 2016-06-01 13:48:53 -04:00
db/sqlite3 Bug 1273909 - Upgrade to SQLite 3.13.0. r=mak 2016-05-27 08:49:13 -04:00
devtools merge mozilla-inbound to mozilla-central a=merge 2016-06-16 08:06:50 +01:00
docshell Bug 1278925 - micro-optimize nsCOMArray appending with already_AddRefed AppendElement; r=erahm 2016-06-20 18:38:10 -04:00
dom Bug 1275914 part.5 Support special selections at handling eQuerySelectedText r=smaug 2016-06-21 13:13:11 +09:00
editor Bug 1277131 : Part 1 - rename nsTableOuterFrame to nsTableWrapperFrame. r=heycam 2016-06-16 13:14:08 +01:00
embedding Back out 32d16086e85e (bug 1271516) for frequent ChromeUtils::IsOriginAttributesEqual assertin failures 2016-06-06 21:07:42 -07:00
extensions Bug 1280497 - fixes bug 1280497 by removing the assert and adding missing code in permission manage. r= baku 2016-06-17 08:18:00 +02:00
gfx Bug 1281015 - Remove unused mConsumerKeyedMutex. r=kamidphish 2016-06-20 11:09:00 -04:00
gradle/wrapper Bug 1263390 - Use Gradle 2.10 and Android Gradle plugin 2.0. r=mcomella 2016-04-19 20:01:38 +02:00
hal Bug 1276927: Add V4L ioctl 'VIDIOC_S_HW_FREQ_SEEK' if undefined by Linux, r=gsvelto 2016-06-16 08:43:51 +01:00
image Bug 1279859 - Correctly skip over extra image sub blocks in the GIF decoder. r=njn 2016-06-20 21:09:29 -07:00
intl Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
ipc Bug 1276927: Define HAVE_ANDROID_OS before including 'android_filesystem_config.h', r=fabrice 2016-06-16 08:43:51 +01:00
js Bug 1280252 - Refactor RareArgumentsData a bit so it behaves correctly on moving GC. r=luke 2016-06-21 08:49:09 +02:00
layout Bug 1275914 part.4 Add a method to retrieve focused content's selection controller to nsIPresShell r=smaug 2016-06-10 21:01:32 +09:00
media Bug 1275901 - Update in-tree libpng to version 1.6.23. r=seth 2016-06-09 12:05:00 -04:00
memory Bug 1262671 - Introduce MFBT BufferList class (r=froydnj) 2016-05-27 09:57:40 -07:00
mfbt Bug 525063 - add attribute to mark member variables that should be skipped by clang plugin initialization checker. r=nfroyd 2016-06-09 09:32:11 +03:00
mobile Bug 1257454: Capture thumbnails for tabs even if tab overview is not currently shown. r=snorp 2016-06-17 16:00:45 +01:00
modules Bug 1280047 - Update Brotli to version 0.4.0. r=jkew 2016-06-18 12:06:00 +02:00
mozglue Bug 1278863 - fix delete/delete[] mismatch in NativeCrypto; r=snorp 2016-06-09 18:44:34 -04:00
netwerk Bug 1280643 - Remove telemetry for URLs ending in !//. r=mcmanus 2016-06-17 15:52:34 +01:00
nsprpub Bug 1257250 - pr_getnameforidentity bounds check and locking r=ted.mielczarek 2016-03-15 17:44:17 -04:00
other-licenses Bug 1261140 - Allow stub installer to read post-signing data and leave it where Firefox can find it; r=rstrong 2016-05-20 18:17:57 -07:00
parser Bug 1274777 - Check for oveflow. r=peterv 2016-06-08 13:54:05 -07:00
probes Bug 1253622 - Move the mozilla-trace.h generation into moz.build; r=ted 2016-03-07 14:59:13 +01:00
python Bug 1275111 - Move artifact download/install into its own tier; r=glandium 2016-06-01 13:48:53 -04:00
rdf Bug 1275744 - Reference MOZ_LOG in rdf comments. r=erahm 2016-05-26 11:40:52 -07:00
release/docker Bug 1266039 - Generate release promotion specific docker images as a part of release promotion process r=Callek a=release DONTBUILD 2016-04-20 17:03:09 -04:00
security Bug 1277255, land NSS_3_25_RC1, r=me 2016-06-20 19:17:28 +02:00
services Bug 1277026 - Disconnect Sync and show a notification on FxA remote disconnect. r=markh 2016-06-08 10:40:42 -07:00
startupcache Bug 1278452 - Add some null checks when getting streams. r=froydnj. 2016-06-07 16:03:32 +10:00
storage Bug 1278468 - Fix -Wshadow warnings in storage/ directory. r=mak 2016-06-07 22:08:41 -07:00
taskcluster Followup bustage fix for Bug 1277648 2016-06-20 21:41:21 -04:00
testing Followup bustage fix for Bug 1277648 2016-06-20 21:41:21 -04:00
toolkit Bug 1277831 - Enable e10s for RTL users on Windows and OSX. r=felipe 2016-06-09 07:35:37 -05:00
tools Bug 1276927: Fix breakpad to build on B2G, r=mshal 2016-06-16 08:43:51 +01:00
uriloader Bug 1258033 - Part 1: Add IsTrackingProtectionOn for nsILoadContext. r=smaug 2016-06-02 10:12:39 +08:00
view Bug 881832 - Make inner document reflow asynchronous. r=tnikkel 2016-05-12 12:07:45 +12:00
widget Bug 1275914 part.5 Support special selections at handling eQuerySelectedText r=smaug 2016-06-21 13:13:11 +09:00
xpcom Bug 1278925 - micro-optimize nsCOMArray appending with already_AddRefed AppendElement; r=erahm 2016-06-20 18:38:10 -04:00
xpfe Bug 1275261 - Only fire xul-window-destroyed for nsXULWindows that successfully registered. r=smaug 2016-06-02 10:28:28 -07:00
.clang-format
.clang-format-ignore
.eslintignore Bug 1193390 - Remove single arg Cu.import from /devtools. r=tromey 2016-06-09 14:10:07 -05:00
.eslintrc Bug 1245916: Unify eslint global discovery rules. r=pbrosset 2016-02-05 11:37:50 -08:00
.flake8 Bug 1270506 - [mozlint] Add python flake8 linter, r=smacleod 2016-05-05 17:21:12 -04:00
.gdbinit bug 985566 - add some pretty printers to .gdbinit r=froydnj r=glandium 2016-06-02 13:33:07 -04:00
.gdbinit_python bug 985566 - add some pretty printers to .gdbinit r=froydnj r=glandium 2016-06-02 13:33:07 -04:00
.gitignore Bug 1271734 - Move all eslint related infrastructure to tools/lint, r=miker 2016-06-02 15:38:36 -04:00
.hgignore Bug 1271734 - Move all eslint related infrastructure to tools/lint, r=miker 2016-06-02 15:38:36 -04:00
.hgtags No bug - Tagging mozilla-central d98f20c25feeac4dd7ebbd1c022957df1ef58af4 with FIREFOX_AURORA_49_BASE a=release DONTBUILD CLOSED TREE 2016-06-06 15:11:06 -04:00
.lldbinit Bug 1254128 - Make the Mozilla .lldbinit use the full path for topsrcdir. r=sparky 2016-03-01 16:36:08 +00:00
.taskcluster.yml Bug 1280129 - Update tasks to use v2 treeherder routes r=dustin 2016-06-14 12:56:25 -05:00
.ycm_extra_conf.py
AUTHORS
Android.mk
CLOBBER Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2016-06-06 15:18:13 -04:00
GNUmakefile
LEGAL
LICENSE
Makefile.in Bug 1275111 - Move artifact download/install into its own tier; r=glandium 2016-06-01 13:48:53 -04:00
README.txt
aclocal.m4 Bug 1259382 - Move CC/CXX/HOST_CC/HOST_CXX to moz.configure. r=ted 2016-04-14 13:21:29 +09:00
build.gradle Bug 1268453 - Use Android Gradle plugin 2.1. r=mcomella 2016-04-29 14:48:43 +02:00
client.mk Bug 1278415 - Ensure MOZ_CURRENT_PROJECT is set when running make directly in objdir. r=gps 2016-06-16 11:43:30 +09:00
client.py
configure.in Bug 1250294 - Make configure a Python script that invokes the old configure.sh. r=ted 2016-02-25 07:22:33 +09:00
configure.py Bug 1278415 - Also write a mozinfo for js standalone builds. r=gps 2016-06-16 11:43:23 +09:00
gradle.properties
gradlew
mach Bug 1278900 - [mach] Also look for config.status when detecting an objdir, r=gps 2016-06-08 10:33:54 -04:00
moz.build Bug 1258497: Implement a new taskgraph generation system; r=gps 2016-05-16 22:53:22 +00:00
moz.configure Bug 1279369 - Move --enable-debug, MOZ_DEBUG_FLAGS, and --enable-debug-symbols to Python configure. r=glandium 2016-06-20 16:02:01 -07:00
mozilla-config.h.in
old-configure.in Bug 1275901 - Update in-tree libpng to version 1.6.23 (part 2, old-configure.in). r=seth 2016-06-09 12:12:00 -04:00
settings.gradle Bug 1233882 - Fold base Gradle project into app Gradle project. r=sebastian,mcomella 2016-02-17 19:25:54 -08:00
test.mozbuild

README.txt

An explanation of the Mozilla Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://developer.mozilla.org/en/Mozilla_Source_Code_Directory_Structure

For information on how to build Mozilla from the source code, see:

    http://developer.mozilla.org/en/docs/Build_Documentation

To have your bug fix / feature added to Mozilla, you should create a patch and
submit it to Bugzilla (https://bugzilla.mozilla.org). Instructions are at:

    http://developer.mozilla.org/en/docs/Creating_a_patch
    http://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree

If you have a question about developing Mozilla, and can't find the solution
on http://developer.mozilla.org, you can try asking your question in a
mozilla.* Usenet group, or on IRC at irc.mozilla.org. [The Mozilla news groups
are accessible on Google Groups, or news.mozilla.org with a NNTP reader.]

You can download nightly development builds from the Mozilla FTP server.
Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy. Firefox nightlies, for example, can be found at:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    http://nightly.mozilla.org/