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

943 Коммитов

Автор SHA1 Сообщение Дата
Ekanan Ketunuti ccda860171 Bug 1518008 - Add words to en-US dictionary. r=ehsan 2019-01-06 19:23:58 +07:00
Emilio Cobos Álvarez d2ed260822 Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.

Overall it's not a very interesting patch I think.

nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.

I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.

While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Ekanan Ketunuti 630643001b Bug 1517173 - Add words to en-US dictionary. r=ehsan 2019-01-02 10:25:10 +07:00
Jean-Yves Avenard 99f56c67bc Bug 1512214 - Use promise chaining. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D13952

--HG--
extra : moz-landing-system : lando
2018-12-07 17:47:19 +00:00
Jean-Yves Avenard 48517afae6 Bug 1512298 - Make IPDL MozPromise exclusive. r=gerald,froydnj
MozPromise most common use is to have an single or exclusive listener. By making the MozPromise generated by IPDL exclusive we can also use move semantics.

While at it, we also use move semantics for the ResponseRejectReason and via the callback's reject method so that the lambda used with the MozPromise::Then can be identical to the one used by the IPDL callback.
As it currently is, it provides no advantage over a copy as it's just an enum; however, this will facilitate future changes where it may not be.

Differential Revision: https://phabricator.services.mozilla.com/D13906

--HG--
extra : moz-landing-system : lando
2018-12-11 19:22:26 +00:00
Mark Banner 8c00ef3f30 Bug 1512052 - Add more .eslintrc.js files for test directories. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D13746

--HG--
extra : moz-landing-system : lando
2018-12-11 13:15:08 +00:00
Ciure Andrei ed617be144 Backed out 2 changesets (bug 1512052)for causing build bustages CLOSED TREE
Backed out changeset 4773a3f46c22 (bug 1512052)
Backed out changeset 2f48c5afbe57 (bug 1512052)

--HG--
rename : browser/components/attribution/test/xpcshell/.eslintrc.js => browser/components/attribution/test/.eslintrc.js
2018-12-05 05:47:39 +02:00
Mark Banner 8256078237 Bug 1512052 - Add more .eslintrc.js files for test directories. r=mossop
Depends on D13745

Differential Revision: https://phabricator.services.mozilla.com/D13746

--HG--
extra : moz-landing-system : lando
2018-12-04 22:27:35 +00:00
Tooru Fujisawa 7983faeb5d Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp 2018-12-01 04:52:05 +09:00
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Cosmin Sabou e1e8f2ea69 Merge mozilla-inbound to mozilla-central. a=merge 2018-11-28 06:08:19 +02:00
Ehsan Akhgari 2febd96e7e Bug 1508472 - Part 2: Second batch of comment fix-ups in preparation for the tree reformat r=sylvestre
This is a best effort attempt at ensuring that the adverse impact of
reformatting the entire tree over the comments would be minimal.  I've used a
combination of strategies including disabling of formatting, some manual
formatting and some changes to formatting to work around some clang-format
limitations.

Differential Revision: https://phabricator.services.mozilla.com/D13073

--HG--
extra : moz-landing-system : lando
2018-11-28 00:54:56 +00:00
Cosmin Sabou 0afa5aa670 Backed out 2 changesets (bug 1508472) for causing build bustages on JobScheduler_posix.cpp. CLOSED TREE
Backed out changeset af951294cf96 (bug 1508472)
Backed out changeset 2320933cb7bc (bug 1508472)
2018-11-28 00:08:11 +02:00
Ehsan Akhgari 7c937c2747 Bug 1508472 - Part 2: Second batch of comment fix-ups in preparation for the tree reformat r=sylvestre
This is a best effort attempt at ensuring that the adverse impact of
reformatting the entire tree over the comments would be minimal.  I've used a
combination of strategies including disabling of formatting, some manual
formatting and some changes to formatting to work around some clang-format
limitations.

Differential Revision: https://phabricator.services.mozilla.com/D13073

--HG--
extra : moz-landing-system : lando
2018-11-27 21:36:18 +00:00
Ekanan Ketunuti 495265ab08 Bug 1509577 - Add words to en-US dictionary. r=ehsan 2018-11-27 18:09:38 +07:00
Andreea Pavel 945463d394 Backed out changeset 11d6688b953f (bug 1508472) for build bustages on a CLOSED TREE 2018-11-27 18:28:30 +02:00
Ehsan Akhgari d0a3a76106 Bug 1508472 - Part 2: Second batch of comment fix-ups in preparation for the tree reformat r=sylvestre
This is a best effort attempt at ensuring that the adverse impact of
reformatting the entire tree over the comments would be minimal.  I've used a
combination of strategies including disabling of formatting, some manual
formatting and some changes to formatting to work around some clang-format
limitations.

Differential Revision: https://phabricator.services.mozilla.com/D13073

--HG--
extra : moz-landing-system : lando
2018-11-27 15:18:32 +00:00
byron jones f7dfd8df9e Bug 1508256 - replace hunspell's README.mozilla with moz.yaml; r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D12298

--HG--
rename : extensions/spellcheck/hunspell/src/license.hunspell => extensions/spellcheck/hunspell/src/LICENSE
extra : moz-landing-system : lando
2018-11-20 01:33:40 +00:00
Ekanan Ketunuti 9fafdd48d5 Bug 1506334 - Add words to en-US dictionary. r=ehsan
--HG--
extra : histedit_source : b0d7ee804b4207809ff517763a33f0eb9159a2ab
2018-11-10 14:22:18 +07:00
Makoto Kato b682338978 Bug 1504913 - Part 2. Get rid of nsISpellChecker. r=masayuki
No one uses nsISpellChecker, so let's get rid of nsISpellChecker.

Differential Revision: https://phabricator.services.mozilla.com/D10994

--HG--
extra : rebase_source : 1caeba2edf7677258c0406f087eaa41e12cbb8a8
extra : histedit_source : 6a90572e8ecddf0f13fbe5b1abf1bedf1c84a4d9
2018-11-06 12:32:04 +09:00
Makoto Kato a9fe8aa60c Bug 1504913 - Part 1. Use mozSpellChecker directly instead of nsISpellChecker. r=masayuki
When creating an instance of nsISpellChecker, we always use
mozSpellChecker::Create.  So we should use mozSpellChecker directly instead of
nsISpellChecker.

Differential Revision: https://phabricator.services.mozilla.com/D10993

--HG--
extra : rebase_source : 0feffa60e6dc788904d212a77acbf416279af083
extra : histedit_source : b89cc8270c2df70ae414479f43ac30e8aa0a3d42
2018-11-06 12:31:36 +09:00
Edgar Chen 944027d0f7 Bug 1497480 - Part 2: Make spellchecking to work in ShadowDOM after anchor navigates away from it; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D9543

--HG--
extra : moz-landing-system : lando
2018-11-02 00:07:30 +00:00
Edgar Chen fbdd9bcacf Bug 1497480 - Part 1: Set the root for spelling checker to shadow root if the contenteditable nodes are in the shadow DOM; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D9542

--HG--
extra : moz-landing-system : lando
2018-11-02 00:07:30 +00:00
Cosmin Sabou 223a549fe5 Backed out 3 changesets (bug 1497480) for causing Android mochitest failures on editor/libeditor/tests/test_bug. CLOSED TREE
Backed out changeset 6c2a5ce9fad8 (bug 1497480)
Backed out changeset cf74ff09b141 (bug 1497480)
Backed out changeset 31d9a680fb90 (bug 1497480)
2018-10-31 19:06:35 +02:00
Edgar Chen af96c255f6 Bug 1497480 - Part 2: Make spellchecking to work in ShadowDOM after anchor navigates away from it; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D9543

--HG--
extra : moz-landing-system : lando
2018-10-31 14:35:42 +00:00
Edgar Chen 383ec68585 Bug 1497480 - Part 1: Set the root for spelling checker to shadow root if the contenteditable nodes are in the shadow DOM; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D9542

--HG--
extra : moz-landing-system : lando
2018-10-31 15:16:52 +00:00
Ekanan Ketunuti 97e6490eb7 Bug 1498084 - Add words to en-US dictionary. r=ehsan 2018-10-16 13:00:37 +07:00
Ekanan Ketunuti ced19a86b0 Bug 1493920 - Add words to en-US dictionary and remove the problematic word "hangry". r=ehsan 2018-09-26 06:49:22 +07:00
Ehsan Akhgari ad7b8c9b02 Bug 1491569 - Remove the XPCOM registration for mozSpellChecker; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D5946
2018-09-15 20:13:51 -04:00
Ehsan Akhgari 6d56a36888 Bug 1489793 - Part 1: Remove the XPCOM component registration for EditorSpellCheck; r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D5371
2018-09-12 18:58:53 -04:00
Ekanan Ketunuti 4999563d5f Bug 1490541 - Bug - Add words to en-US dictionary. r=ehsan 2018-09-12 16:48:38 -04:00
shindli 53d4f9c065 Backed out 2 changesets (bug 1489793) for failures in editor/spellchecker/tests/test_bug1219928.html
Backed out changeset 9d793ccd3fca (bug 1489793)
Backed out changeset 30219dab424e (bug 1489793)
2018-09-12 05:59:31 +03:00
Ehsan Akhgari d536808f38 Bug 1489793 - Part 1: Remove the XPCOM component registration for EditorSpellCheck; r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D5371
2018-09-11 19:17:46 -04:00
Ehsan Akhgari d212ff2809 Bug 1489787 - Part 1: Remove nsITextServicesFilter and replace nsIEditorSpellCheck.setFilter() with nsIEditorSpellCheck.setFilterType(); r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D5353
2018-09-10 08:14:59 -04:00
Ekanan Ketunuti f3f6216cc7 Bug 1488970 - Add words to en-US dictionary. r=Ehsan 2018-09-06 11:49:36 +07:00
Jonathan Kew b5d54610de Bug 1487098 - Reorder boolean expression to take advantage of short-circuiting. r=decoder 2018-09-01 22:41:59 +01:00
Nicholas Nethercote ac5efebb4b Bug 1486690 - Remove unnecessary checks after moz_xmalloc() calls. r=glandium
There are surprisingly many of them.

(Plus a couple of unnecessary checks after `new` calls that were nearby.)

--HG--
extra : rebase_source : 47b6d5d7c5c99b1b50b396daf7a3b67abfd74fc1
2018-08-28 15:56:01 +10:00
Ekanan Ketunuti 780ed8d1ec Bug 1486338 - Add words to en-US dictionary. r=ehsan 2018-08-27 08:20:40 +07:00
Ekanan Ketunuti 35acc70c65 Bug 1481231 - Add words to en-US dictionary. r=Ehsan
--HG--
extra : amend_source : 9f3778a6d2913671f147a31f917257e62f6fbf49
2018-08-07 08:13:32 +07:00
Makoto Kato 5074358d1a Bug 1480699 - Use IPDL's promise instead in PRemoteSpellcheckEngine. r=masayuki
Summary:
When implementing async call for PRemoteSpellcheckEngine, IPDL doesn't support
Promise.  But now, IPDL supports it, so I should convert to it to avoid
unexpected leak.

And SetDictionary supports empty string as parameter to clear dictionary.  So
SetDictionaryFromList should support empty string to clear it to remove
SetDictionary sync call.

Reviewers: masayuki

Tags: #secure-revision

Bug #: 1480699

Differential Revision: https://phabricator.services.mozilla.com/D2714

--HG--
extra : rebase_source : 17fe76e6484f2af4021fe0d963e4fc47f53bebd8
2018-07-31 16:36:43 +09:00
Boris Zbarsky d4993da381 Bug 1476142 part 4. Remove some unnecessary QIs on window in various parts of the tree. r=kmag
The crashtest was not testing anything useful, because getInterface is no longer exposed to web content.
2018-08-02 15:26:48 -04:00
Brian Hackett 3c13dd9f31 Bug 1479641 - Don't record counting allocator amount, r=froydnj.
--HG--
extra : rebase_source : 23de9644662c1f9ed36429074837e54bb7cac868
2018-07-31 19:22:54 +00:00
Masayuki Nakano 0fadf6b9da Bug 1467796 - part 3: Make mozInlineSpellChecker::ReplaceWord() use TextEditor::ReplaceTextAsAction() r=m_kato,smaug
mozInlineSpellChecker::ReplaceWord() is used for replacing misspelled word
with a word.  So, this is necessary to be distinguished from insertText
command when we implement InputEvent.inputType.  So, we should make it
use TextEditor::ReplaceTextAsAction() instead (same as autocomplete).

This patch makes TextEditor::ReplaceTextAsAction() take optional argument
to make callers can specify replace range.  Then, the range is a spellchecker
selection range if the caller is mozInlineSpellChecker::ReplaceWord().
Prior to this patch, it clones the range for normal selection, but it's
expensive and we may be able to reuse cached range of Selection in this case.
So, this patch makes Selection::AddRangeInternal() checks if given range is
in another Selection and use mCachedRange as far as possible.

MozReview-Commit-ID: JIOTTsxlj4Q

--HG--
extra : rebase_source : 7c26b0255f08608ebe8c7045c9bcdca1dc70cadf
2018-07-04 22:51:55 +09:00
Masayuki Nakano efd8891532 Bug 1467796 - part 1: Split TextEditor::InsertTextAsAction() to itself and TextEditor::InsertTextAsSubAction() for internal use r=m_kato
For bug 1465702, we need to split TextEditor::InsertTextAsAction() to 2 methods.
One is for root of handling an edit operation.  The other is for internal use,
e.g., handling as a part of an edit operation.  Therefore, this patch creates
InsertTextAsSubAction() for the internal use.

MozReview-Commit-ID: CIU5zdp0owP

--HG--
extra : rebase_source : 79b58fb01e48d1831bbdea01ed7b1a26dcd1821b
2018-07-02 20:12:22 +09:00
Ekanan Ketunuti 0357874225 Bug 1477961 - Add words to en-US dictionary. r=ehsan 2018-07-27 06:59:07 +07:00
Makoto Kato efbf30c79f Bug 1477917 - Part 2. Use AString instead of wstring in spellchecker. r=masayuki
The language parameter of mozIPersonalDictionary is unused, so we should remove
this from parameter.  Then, no one uses mLanguage member of mozHunspell now.

Differential Revision: https://phabricator.services.mozilla.com/D2349

--HG--
extra : moz-landing-system : lando
2018-07-26 03:13:51 +00:00
Makoto Kato 229108931f Bug 1477917 - Part 1. Remove unused methods for spellchecker. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D2348

--HG--
extra : moz-landing-system : lando
2018-07-26 03:09:14 +00:00
Ekanan Ketunuti 3f1345e2c2 Bug 1476849 - Add words to en-US dictionary. r=ehsan
--HG--
extra : rebase_source : 59221034a1891c973e79a5ba1d900be4fb61fac9
2018-07-23 13:31:26 +07:00
Sylvestre Ledru c86ee15013 Bug 1477540 - Use RemoveLastElement instead of PopLastElement r=bhackett
The later is only interesting when the returned value is used

MozReview-Commit-ID: 8CF5HSkcttf

--HG--
extra : rebase_source : deb1761dd017108c9dba1d831a996baf54c7f425
2018-07-22 16:23:57 +02:00
Brian Hackett 9624bb7849 Bug 1464890 - Use integers instead of raw pointer values as PRemoteSpellCheck IDs, r=ehsan.
--HG--
extra : rebase_source : 3eac7443b7e0c382e432ff2b7c50f21efb23e668
2018-07-20 23:57:26 +00:00