Граф коммитов

761 Коммитов

Автор SHA1 Сообщение Дата
Nicholas Nethercote f582d96b98 Bug 1390428 (part 9) - Remove nsXPIDLCString. r=erahm.
This is straightforward, with only two notable things.

- `#include "nsXPIDLString.h" is replaced with `#include "nsString.h"`
  throughout, because all nsXPIDLString.h did was include nsString.h. The
  exception is for files which already include nsString.h, in which case the
  patch just removes the nsXPIDLString.h inclusion.

- The patch removes the |xpidl_string| gtest, but improves the |voided| test to
  cover some of its ground, e.g. testing Adopt(nullptr).

--HG--
extra : rebase_source : 452cc4a08046a1adb1a8099a7e85a1917de5add8
2017-08-17 15:29:03 +10:00
Ekanan Ketunuti fce1846312 Bug 1392842 - Add intermittency and intermittence to the en-US dictionary. r=ehsan 2017-08-23 07:48:31 +07:00
Ekanan Ketunuti ac3ebf6f71 Bug 1391596 - Add cockatiel to the en-US dictionary. r=ehsan 2017-08-18 19:05:39 +07:00
Ekanan Ketunuti 7363261c76 Bug 1391111 - Add balkanize and balkanization to the en-US dictionary. r=ehsan 2017-08-17 07:17:07 +07:00
Masayuki Nakano e1a21d5a3e Bug 1387317 - part5: AutoPlaceHolderBatch should take EditorBase instead of nsIEditor r=m_kato
AutoPlaceHolderBatch can take EditorBase class and its inherited class, AutoEditBatch, can be removed if we implement other constructor which doesn't take transaction name.

Additionally, nsIEditor::(Begin|End)PlaceHolderTransaction() are referred only by AutoPlaceHolderBatch.  Therefore, they can be non-public methods and removed from nsIEditor interface.

Note that this patch also repalces "PlaceHolder" with "Placeholder" since it's a word.

MozReview-Commit-ID: 5dw3kcX3bOx

--HG--
extra : rebase_source : e926cc1c2ebea70eb08e43778a8b52912b559b7b
2017-08-14 14:56:39 +09:00
Masayuki Nakano 1f7edc42ce Bug 1388269 - part4: Make mozInlineSpellChecker::GetSpellCheckSelection() return Selection instead of nsISelection r=m_kato
Although, this is not necessary for bug 1388269, we should fix this here since this change is really similar to what bug 1388269 tries to fix and enough simple and safe.

MozReview-Commit-ID: H68pYTBmurf

--HG--
extra : rebase_source : dfa47370232ad44e1523c94929cf50e5539b787d
2017-08-14 14:03:44 +09:00
Masayuki Nakano 310515ea06 Bug 1388269 - part3: spellchecker should use TextEditor instead of nsIEditor r=m_kato
MozReview-Commit-ID: 37npmisPqR2

--HG--
extra : rebase_source : 1732cd953fc79fce5b444644ec2838652db768a9
2017-08-14 13:48:00 +09:00
Masayuki Nakano 2ead4e24a4 Bug 1388269 - part2: Make mozInlineSpellChecker store TextEditor instead of nsIEditor r=m_kato
Then, can reduce a lot of unnecessary virtual calls and QI.

MozReview-Commit-ID: 28JS4q2L1Vj

--HG--
extra : rebase_source : 3f7dc379a80777f05f6b4e2d2ed1e7787de03d69
2017-08-14 13:36:25 +09:00
Masayuki Nakano 00f1cbdf08 Bug 1388269 - part1: mozInlineSpellChecker should store editor as strong pointer instead of weak pointer r=smaug
mozInlineSpellChecker is a cycle collectable class.  Therefore, with including mEditor to the cycle, we can make it nsCOMPtr<nsIEditor> instead of nsWeakPtr.

MozReview-Commit-ID: DAK02zbksvy

--HG--
extra : rebase_source : 5914f37a2f339a1a39b7bd2e9065a2f7d2a1ed9c
2017-08-14 13:04:37 +09:00
Wes Kocher ef0d82bb2b Merge m-c to inbound, a=merge
MozReview-Commit-ID: HSkzFTcnhOy
2017-08-11 13:25:37 -07:00
Ekanan Ketunuti accb1622a2 Bug 1389363 - Add bullseye to the en-US dictionary. r=ehsan 2017-08-11 09:06:26 +07:00
Makoto Kato d2a2028b21 Bug 1388971 - Remove unused GetCurrentDictionary calls. r=Ehsan
After landing bug 1205983, mPreviousDictionary is unused.  So we should remove unused GetCurrentDictionary calls.

MozReview-Commit-ID: 20GAyoiEWCN

--HG--
extra : rebase_source : 6abc0e50073c836a99a699e1de8103a3faacf071
2017-08-10 12:46:24 +09:00
Nicholas Nethercote 1a6f1a62fa Bug 1387381 - Remove nsXPIDLString local variables. r=erahm.
nsXPIDLStrings are marked as VOIDED upon initialization. Most of these local
nsXPIDLString variables are immediately set via getter_Copies(), which will
either assign a string value (using Adopt()) or do SetIsVoid(). These can be
trivially converted to nsString, which will get the same treatment.

The patch suitably converts the remaining nsXPIDLString local variable as well.

--HG--
extra : rebase_source : 5fff9f2c6844559198f601853f8db08564add7d5
2017-08-08 16:07:55 +10:00
Ekanan Ketunuti 476b21828b Bug 1384810 - Add dystopia and dystopian to the en-US dictionary. r=ehsan 2017-07-27 11:04:44 +07:00
Masayuki Nakano 2f92264fb7 Bug 1377978 - Make nsRange use uint32_t to offset r=smaug
DOM Standard defines that offset of Range is unsigned long.  However, nsRange uses int32_t to them.

This patch makes nsRange use uint32_t instead.  However, this patch does NOT allow to set over INT32_MAX as offset values since a lot of users of nsRange cannot treat the values as over INT32_MAX because a lot of internal APIs take int32_t as offsets.

For easier to search such points, this patch adds static_cast<int32_t> to uint32_t variables when they are used for int32_t arguments.

And note that nsContentUtils::ComparePoints() behaves odd.  It accepts negative offset and compares such value with valid offset simply.  This patch still uses int32_t offset variables in nsRange::CompareNodeToRange() even though it may be negative value if nsINode::IndexOf() returns -1 because the caller of it depends on this behavior.

MozReview-Commit-ID: 8RbOgA86JuT

--HG--
extra : rebase_source : 46d526c6d50dfa2f104439b19b8691477b17a4af
2017-07-19 22:49:52 +09:00
Ekanan Ketunuti 4bc0303099 Bug 1379514 - Add victimless, combust, combusts and combusted to the en-US dictionary. r=ehsan 2017-07-19 05:39:45 +07:00
Andrea Marchesini 50f9ea47a3 Bug 1350958 - Finish labeling ProxyReleaseEvent, r=billm 2017-07-14 08:49:22 +02:00
Masayuki Nakano fa5e6a171b Bug 1377989 - part3: Rename nsRange::GetParentAndOffsetAfter() to nsRange::GetContainerAndOffsetAfter() r=smaug
MozReview-Commit-ID: LsRjvVmfJmC

--HG--
extra : rebase_source : 32f4ee435dcf9323947f67cb4db70f0db1a4c9c1
2017-07-11 21:17:52 +09:00
Masayuki Nakano 4ee17d1b8c Bug 1377989 - part2: Rename nsRange::GetEndParent() to nsRange::GetEndContainer() r=smaug
MozReview-Commit-ID: K4qPjtZ62yO

--HG--
extra : rebase_source : 8653db98b9bd70c77a6aac8d906f401f0222c58a
2017-07-11 21:11:37 +09:00
Masayuki Nakano 2f2ce53be5 Bug 1377989 - part1: Rename nsRange::GetStartParent() to nsRange::GetStartContainer() r=smaug
Web standards use "Container" instead of "Parent".  So, nsRange shouldn't use "Parent" for its members and methods.

MozReview-Commit-ID: Ho6N0diuWtE

--HG--
extra : rebase_source : ee4eb7068a68b118c7fe98e9e9e7fa9c9e7f13e2
2017-07-11 20:53:04 +09:00
Sylvestre Ledru 4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
Bill McCloskey f115503a0b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Nicholas Nethercote f1364a75ea Bug 1374580 (part 3) - Remove ns{,C}Substring typedefs. r=froydnj.
All the instances are converted as follows.

- nsSubstring  --> nsAString
- nsCSubstring --> nsACString

--HG--
extra : rebase_source : cfd2238c52e3cb4d13e3bd5ddb80ba6584ab6d91
2017-06-20 19:19:52 +10:00
Florian Quèze 66f6d259bc Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
Carsten "Tomcat" Book ea1b86680c Backed out changeset 9846de3bd954 (bug 1372405)
--HG--
extra : rebase_source : 5d4a48e8ec394c329994689d938d2a6e9b2752b0
2017-06-20 08:27:02 +02:00
Bill McCloskey 4592152411 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Bevis Tseng d1637b9c5a Bug 1372453 - Part 2: Name the caller of ProxyReleaseEvent. r=billm
MozReview-Commit-ID: LYhSWnZkq0i
2017-06-14 09:27:17 +08:00
Ehsan Akhgari 8ba7fa2a64 Bug 1370754 - Dispatch spell checker tasks to the idle queue; r=masayuki
We use a timeout of 1 second to ensure that spell checking
will happen with some delay since it is visible to the
user.
2017-06-16 15:22:47 -04:00
Ehsan Akhgari acb69ad667 Backout bug 1370754 for test failures 2017-06-16 13:54:50 -04:00
Ehsan Akhgari fa242ea02c Bug 1370754 - Dispatch spell checker tasks to the idle queue; r=masayuki
We use a timeout of 1 second to ensure that spell checking
will happen with some delay since it is visible to the
user.
2017-06-16 12:17:30 -04:00
Evelyn Hung 53f744301b Bug 1354641 - adjust the value of spell check heuristics. r=Ehsan,masayuki
This patch is mainly for adjusting the value of INLINESPELL_CHECK_TIMEOUT
from 50ms to 1ms. The value means how long the main thread is blocked
for spelling check, and 50ms is too long. It causes significant delays
when a rich content document is loading, and the user tries to
type immediately before spell checking is done.

With the INLINESPELL_CHECK_TIMEOUT setting to 1ms, it's possible to be
too short to less powerful machines. Therefore we add
INLINESPELL_MINIMUM_WORDS_BEFORE_TIMEOUT to ensure at least N words were
checked.

MozReview-Commit-ID: 2PmAOWs5qjn

--HG--
extra : rebase_source : a173b07eb072348d042639ccfa636a2efeec9ae4
2017-06-06 18:13:51 +08:00
Wes Kocher 1af6d5cf57 Merge inbound to central, a=merge
UPGRADE_NSS_RELEASE
MozReview-Commit-ID: CBIFPwA5aNp

--HG--
extra : amend_source : 035a5be59d0046a643d0f836a95195e8c4ade4a6
2017-06-13 18:27:10 -07:00
Evelyn Hung 153b74fe52 Bug 1362858 - Part 2: Exclude script and style tags when building soft text.r=Ehsan
We keep checking if a node is a text node when building soft text and
set spell checking range in DoSpellCheck. However, simply checking text
node is not optimal, we could furthur exclude text node in script and
style tags. There might be more cases we could consider to exclude.

--HG--
extra : rebase_source : 7be2615c8baa5b7af425caa792398e2101d84744
2017-06-12 17:27:12 +08:00
Evelyn Hung 02f72b8b81 Bug 1362858 - Part 1: make word boundary check more consistent.r=Ehsan
We use ClassifyCharacter for detecting all possibilities of word
boudaries when building mRealWords but not when building soft text.
This inconsistency leads us repeatedly checking the same set of words
in some cases.

--HG--
extra : rebase_source : 01834f49584ee696a4caec240d16356db8efe5bd
2017-06-12 17:16:28 +08:00
Henri Sivonen 432653453a Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor.
MozReview-Commit-ID: 15Y5GTX98bv
2017-06-13 13:23:23 +03:00
Matt Brubeck 4842a8b989 Bug 1367839 - Add decrypt(s,ed,ing,able) to the spellcheck dictionary. r=Ehsan
MozReview-Commit-ID: 4jyTphO6Ja3

--HG--
extra : rebase_source : f7007f626b954b59d58098662ede1099786323e3
2017-05-25 11:34:32 -07:00
Masayuki Nakano 61af94acbd Bug 1367683 Optimize initializing nsRange r=smaug
nsRange::DoSetRange() adds/remove its root to/from mutation observer, initializes common ancestor, registers itself to the common ancestor, unregisters itself from old common ancestor, and notifies selection listeners of selection change.

However, those runtime cost is expensive but on the other hand, a lot of callers set both start and end of the range and that causes calling DoSetRange() twice.

This patch renames Set() to SetStartAndEnd() for easier to understand the meaning and make it call DoSetRange() only once.

MozReview-Commit-ID: FRV55tuBAgg

--HG--
extra : rebase_source : 67adf929cf119e2425f7d3741651217522094590
2017-05-30 13:18:25 +09:00
Xidorn Quan ac6cc1d36a Bug 1368418 part 3 - Remove nsCategoryImp. r=emk
MozReview-Commit-ID: 5qCoeqfM2s5

--HG--
extra : rebase_source : 6dc1693ce61bea4ec35469a3388c75a9fb64e5b3
2017-05-29 16:17:39 +10:00
Evelyn Hung c415d0931b Backout revision 20a9d741cdf4 (bug 1354641) for causing bug 1363176. a=me 2017-05-10 09:08:00 -04:00
Bill McCloskey c197e07ff2 Bug 1363560 - Name more runnables (r=mccr8)
MozReview-Commit-ID: 3hxZDA4JlTV
2017-05-09 21:53:25 -07:00
Evelyn Hung 3f3888d09f Bug 1354641 - adjust the value of spell check heuristics. r=masayuki
This patch is mainly for adjusting the value of INLINESPELL_CHECK_TIMEOUT
from 50ms to 1ms. The value means how long the main thread is blocked
for spelling check, and 50ms is too long. It causes significant delays
when a rich content document is loading, and the user tries to
type immediately before spell checking is done.

With the INLINESPELL_CHECK_TIMEOUT setting to 1ms, it's possible to be
too short to less powerful machines. Therefore we add
INLINESPELL_MINIMUM_WORDS_BEFORE_TIMEOUT to ensure at least N words were
checked.

MozReview-Commit-ID: 1KYeFpggZGn

--HG--
extra : rebase_source : d7733dd37a923e6d6afb7f88174f352d28d4a3c4
2017-04-26 15:54:12 +08:00
Chris Peterson 45ad5ab207 Bug 1356843 - Fix -Wcomma warning in extensions/spellcheck/src/mozSpellChecker.cpp. r=masayuki
clang's -Wcomma warning warns about suspicious use of the comma operator such as calling a function for side effects within an expression. Check NS_SUCCEEDED() to use HasMoreElement() in an expression and confirm that it actually returned a legitimate out parameter.

extensions/spellcheck/src/mozSpellChecker.cpp:532:54 [-Wcomma] possible misuse of comma operator here

MozReview-Commit-ID: 3GnKVvx8Nu4

--HG--
extra : rebase_source : 0ceaaad16e3d701e24029e431a9d577e9636d626
extra : source : ceb864752cc324d629118d44f22a01d9594b26fd
2017-03-27 21:24:35 -07:00
Makoto Kato 55e9044079 Bug 1330912 - Part 1. Add async version of SetCurrentDictionary using list. r=Ehsan
Now, mozInlineSpellChecker::UpdateCurrentDictionary uses several sync IPC message to update spellcheck dictionary.  So I want async IPC to set dictionary.

Also, since nsEditorSpellCheck::DictionaryFetched calls SetCurrentDictionary several times (max: 6 times), so to reduce calls, we should use list of dictionary.

MozReview-Commit-ID: EVMAJxpMT2X

--HG--
extra : rebase_source : 5a1ed28bd6eb1dd9d3a6a634a286531b7ebb32c7
2017-04-10 18:29:16 +09:00
Makoto Kato cd753d1158 Bug 1351074 - Part 2. Use testing-common for AsyncSpellCheckTestHelper.jsm. r=masayuki
TESTING_JS_MODULES uses testing-common, not gre.  So we should replace gre with testing-common for mochitest.

MozReview-Commit-ID: BqsS2D3IGR6

--HG--
extra : rebase_source : a8553684f8f106c1dfb6e2d9b51df7ebeb15275d
2017-03-29 15:34:49 +09:00
Phil Ringnalda 7ac3bd5b7e Backed out 3 changesets (bug 1351074) for reftest harness and browser_all_files_referenced.js bustage
CLOSED TREE

Backed out changeset 941e0f9ff9a7 (bug 1351074)
Backed out changeset 4fdf3b87a70b (bug 1351074)
Backed out changeset 586428f69838 (bug 1351074)
2017-04-02 19:46:49 -07:00
Makoto Kato cd8761e0f4 Bug 1351074 - Part 2. Use testing-common for AsyncSpellCheckTestHelper.jsm. r=masayuki
TESTING_JS_MODULES uses testing-common, not gre.  So we should replace gre with testing-common for mochitest.

MozReview-Commit-ID: BqsS2D3IGR6

--HG--
extra : rebase_source : 2143fcdf33c428c82c6b2e00b542649b958aeccc
2017-03-29 15:34:49 +09:00
Ryan VanderMeulen dfcca02a7f Bug 1350908 - Upgrade Hunspell to version 1.6.1. r=masayuki
--HG--
extra : rebase_source : 0f8f351d0e5951a4d0a86a79fe8510c718a88c67
2017-03-30 22:30:35 -04:00
Ekanan Ketunuti d8eab65dc1 Bug 1345018 - Add anaphylactic, anaphylaxis and anaphylaxes to the en-US dictionary. r=ehsan 2017-03-08 07:03:13 +07:00
Ekanan Ketunuti b67b9b8bdc Bug 1340011 - Add inverter to the en-US dictionary. r=ehsan
--HG--
extra : rebase_source : f84e03f6cdd46d7b66a0c34d0cd6dae237107e16
2017-02-16 08:58:14 +07:00
Ekanan Ketunuti 1d6b4bdc87 Bug 1333591 - Add foundational to the en-US dictionary. r=ehsan 2017-02-15 08:16:29 +07:00