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

819 Коммитов

Автор SHA1 Сообщение Дата
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
Tooru Fujisawa 470c96cd31 Bug 1338254 - Remove legacy generator from extensions/spellcheck/hunspell/tests/. r=ehsan 2017-02-11 01:53:24 +09:00
Joel Maher afe3e6a86e Bug 1332423 - add BUG_COMPONENT to extensions/* files. r=bsmedberg 2017-01-27 08:19:19 -05:00
Ryan VanderMeulen e9ab36bd47 Bug 1333648 - Update the en-US dictionary to SCOWL 2017.01.22. r=ehsan 2017-01-25 11:37:25 -05:00
Mark Banner 16e6d381ac Bug 503613 - Remove old 'tail =' lines from xpcshell.ini files; r=gps
MozReview-Commit-ID: 62Hp5ISxowJ

--HG--
extra : rebase_source : daa8efb3409031fea553f4fd0c9d0746e38dc308
extra : histedit_source : b4c23aacf678ba0d0ac9c09191a7c494ead11a08
2017-01-18 10:30:39 +00:00
Ryan VanderMeulen 605429a73d Bug 1326277 - Update README.mozilla to reflect the correct in-tree Hunspell version. DONTBUILD 2017-01-12 20:24:07 -05:00
Michael Layzell 085958fee1 Bug 1272623 part.1 Don't destroy nodes during text replacement due to spell checking r=masayuki
Spellchecker shouldn't delete selection with nsIEditor::eStrip before calling nsIPlaintextEditor::InsertText() because it causes removing some parent nodes which may have some style rules.

MozReview-Commit-ID: 2VJhFFbTzrh

--HG--
extra : rebase_source : ffe9cfb47cbae665219c1399875c592f49aff397
2016-12-27 18:41:07 +09:00
Ryan VanderMeulen 7afab1ba7f Bug 1326277 - Upgrade Hunspell to version 1.6.0. r=masayuki
--HG--
extra : rebase_source : dfd3b592a52a708fe62c49c826bfaedea801769d
2017-01-05 23:42:31 -05:00
Ryan VanderMeulen 0d5d58913a Bug 1322666 - Change MAXWORDLEN to 100, matching the previous default from Hunspell 1.3. r=masayuki 2016-12-14 21:42:32 -05:00
Ehsan Akhgari 23ab21c6fc Bug 1322995 - Update the en-US dictionary to SCOWL 2016.11.20 2016-12-13 14:46:50 -05:00
Ryan VanderMeulen 29af881512 Bug 1318955 - Upgrade to Hunspell 1.5.4. r=masayuki 2016-07-12 10:37:04 -04:00
Jan Beich face87e5ac Bug 1320621 - Make sure --enable-system-hunspell picks up system headers. r=glandium
MozReview-Commit-ID: ALlx4wGuvRH

--HG--
extra : rebase_source : f9cfe08623ea01135eca7961d4eeb3de3fecc5c7
2016-11-28 03:54:39 +00:00
Ryan VanderMeulen 906fc553b2 Backed out changeset 25c7efa29d66 (bug 1318955) for breaking Hungarian spellchecking.
--HG--
extra : rebase_source : 8267bc48037eaf64d26ff93d60cd7998cb26d0ac
2016-11-28 21:44:06 -05:00
Ryan VanderMeulen 08f3aaaca6 Bug 1318955 - Upgrade to Hunspell 1.5.0. r=masayuki
--HG--
extra : rebase_source : e5e0fe0ba11975e0e7bb8d5354561ba0b9f24248
2016-07-12 10:37:04 -04:00
Sylvestre Ledru 34c92c780f Bug 1317430 - Avoid a unnecessary copy by passing a const & in extensions/spellcheck/ r=njn
MozReview-Commit-ID: H7V0fap294l

--HG--
extra : rebase_source : d1bd92a379df53e4d239b1f3b2077a1162e7d6d9
2016-11-14 23:16:11 +01:00
Kan-Ru Chen f8100451db Bug 1314254 - Add mozilla::ipc::IPCResult type and convert IPDL handlers to use new return type. r=billm
We will use the new type for the generated IPDL message handler
prototype to make sure correct error handling method is called.

MozReview-Commit-ID: AzVbApxFGZ0
2016-11-15 04:26:00 +01:00
Masatoshi Kimura bdc9c380b3 Bug 1313280 - Fix invalid non-UTF-8 bytes from Hunspell. r=glandium
MozReview-Commit-ID: ClJbuk6FkfL

--HG--
extra : rebase_source : f41859d20175cb0893d8e1ff8de20136b16a0c7d
extra : source : ced53269c25222bb54e88065ae9fbe19185e2cfd
2016-10-28 21:09:09 +09:00
Phil Ringnalda a7bc94158c Merge m-i to m-c, a=merge
MozReview-Commit-ID: H4VKCYDq5cD

--HG--
rename : xpcom/tests/TestAutoRef.cpp => xpcom/tests/gtest/TestAutoRef.cpp
rename : xpcom/tests/TestCOMArray.cpp => xpcom/tests/gtest/TestCOMArray.cpp
rename : xpcom/tests/TestCOMPtr.cpp => xpcom/tests/gtest/TestCOMPtr.cpp
rename : xpcom/tests/TestCOMPtrEq.cpp => xpcom/tests/gtest/TestCOMPtrEq.cpp
rename : xpcom/tests/TestFile.cpp => xpcom/tests/gtest/TestFile.cpp
rename : xpcom/tests/TestHashtables.cpp => xpcom/tests/gtest/TestHashtables.cpp
rename : xpcom/tests/TestID.cpp => xpcom/tests/gtest/TestID.cpp
2016-11-05 13:36:25 -07:00
Sebastian Hengst a29b7edbc4 Bug 1310297 - Remove test annotations using b2g, mulet or gonk: extensions. r=RyanVM
MozReview-Commit-ID: H0AlYp2iIkp

--HG--
extra : rebase_source : 075e57481d6b986b4c87ddc7fae334a4c3369b14
2016-11-05 11:29:19 +01:00
Jookia 9d1c2e6c7b Bug 1310835 - Look for spellcheck dictionaries in DICPATH. r=smaug
Other applications allow loading dictionaries from DICPATH, so look
there too. A double-pass is required since dictionaries overwrite
each other, and DICPATH intends them to be overridden right-to-left
like any PATH on Unix-like systems.
2016-11-01 08:10:50 +11:00
Ekanan Ketunuti 79ac78034b Bug 1267325 - Add outlier, outliers and outlier's to the en-US dictionary. r=ehsan 2016-10-06 11:18:22 +07:00
Ekanan Ketunuti 0d6b019139 Bug 1255327 - Add canonicalization, canonicalizations, canonicalization's, canonicalize, canonicalized, canonicalizing and canonicalizes to the en-US dictionary. r=ehsan
MozReview-Commit-ID: 3BwfyUmIzxJ
2016-10-06 10:50:52 +07:00
m-r-m-s 04e71c59d2 Bug 1293704 - added adoptee/MS. r=ehsan 2016-09-27 08:11:47 +02:00
Michael Layzell 36e08437d0 Bug 1018486 - Part 8: Various other changes, r=smaug
MozReview-Commit-ID: B0dsomkWgEk
2016-09-07 10:50:45 -04:00
Nicholas Nethercote b71747b2ac Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm.
The new name makes the sense of the condition much clearer. E.g. compare:

  NS_WARN_IF_FALSE(!rv.Failed());

with:

  NS_WARNING_ASSERTION(!rv.Failed());

The new name also makes it clearer that it only has effect in debug builds,
because that's standard for assertions.

--HG--
extra : rebase_source : 886e57a9e433e0cb6ed635cc075b34b7ebf81853
2016-09-01 15:01:16 +10:00
Emilio Cobos Álvarez 619cb14d87 Bug 1299066: Make NS_STYLE_DISPLAY_* an enum class. Prefer indexing instead of linear search in the frame constructor r=heycam,bz
The main renaming was generated with the following python script:

```

import sys
import re

CAMEL_CASE_REGEX = re.compile(r"(^|_|-)([A-Z])([A-Z]+)")
DISPLAY_REGEX = re.compile(r"\bNS_STYLE_DISPLAY_([^M][A-Z_]+)\b")

def to_camel_case(ident):
  return re.sub(CAMEL_CASE_REGEX,
                lambda m: m.group(2) + m.group(3).lower(), ident)

def constant_to_enum(constant):
  return "StyleDisplay::" + to_camel_case(constant) + ("_" if constant == "NONE" else "")

def process_line(line):
  return re.sub(DISPLAY_REGEX,
                lambda m: constant_to_enum(m.group(1)), line)

lines = []
with open(sys.argv[1], "r") as f:
  for line in f:
    lines.append(process_line(line))

with open(sys.argv[1], "w") as f:
  for line in lines:
    f.write(line)
```

And the following shell commands:

```
find . -name '*.cpp' -exec python display.py {} \;
find . -name '*.h' -exec python display.py {} \;
```

MozReview-Commit-ID: 91xYCbLC2Vf
2016-09-01 20:41:17 -07:00
Nicholas Nethercote c2306345d5 Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm.
This patch removes checking of all the callback calls in memory reporter
CollectReport() functions, because it's not useful.

The patch also does some associated clean-up.

- Replaces some uses of nsIMemoryReporterCallback with the preferred
  nsIHandleReportCallback typedef.

- Replaces aCallback/aCb/aClosure with aHandleRepor/aData for CollectReports()
  parameter names, for consistency.

- Adds MOZ_MUST_USE/[must_use] in a few places in nsIMemoryReporter.idl.

- Uses the MOZ_COLLECT_REPORT macro in all suitable places.

Overall the patch reduces code size by ~300 lines and reduces the size of
libxul by about 37 KiB on my Linux64 builds.

--HG--
extra : rebase_source : e94323614bd10463a0c5134a7276238a7ca1cf23
2016-08-24 15:23:45 +10:00
Nicholas Nethercote e7f10a07fd Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.

As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.

--HG--
extra : rebase_source : 815d0018b0b13329bb5698c410f500dddcc3ee12
2016-08-08 12:18:10 +10:00
Ehsan Akhgari c23cea6e98 Bug 1288977 - Update the en-US dictionary to SCOWL 2016.06.26 2016-07-26 12:43:51 -04:00
Carsten "Tomcat" Book 336105a0de merge mozilla-inbound to mozilla-central a=merge 2016-07-22 11:58:02 +02:00
Tom Tromey 5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Nathan Froyd 82f3460a41 Bug 1288390 - avoid a few more warnings in third-party code when compiling with clang; r=mshal 2016-07-21 18:58:37 -04:00
Carsten "Tomcat" Book 0d2c8ddbb2 Merge mozilla-central to autoland 2016-07-11 11:51:22 +02:00
Daniel Holbert ecdc48365b Bug 1285640: Move mozHunspell::CollectReports definition from .h file to .cpp file, to avoid clang 3.9 warning about static variable declared in header. r=njn
MozReview-Commit-ID: 8mUP6zYPhIO

--HG--
extra : rebase_source : 0ab4dbcb933f02451f7557e82f5d2d1967855988
2016-07-08 13:17:27 -07:00
Masayuki Nakano 7f30e926b8 Bug 1260651 part.60 editor/libeditor should export some headers which are required by other modules and other modules shouldn't use local include for them r=mccr8
MozReview-Commit-ID: FZSExwkHH2B
2016-07-08 14:03:31 +09:00
Masayuki Nakano f382711dc3 Bug 1260651 part.59 Rename nsEditor to mozilla::EditorBase (and also their file names) r=mccr8
This patch also renames:

EditorInputEventDispatcher -> mozilla::EditorInputEventDispatcher

And some variable names are renamed from aEditor or mEditor to aEditorBase or mEditorBase for making their types clearer.

MozReview-Commit-ID: 2FCXWpLMn8e

--HG--
rename : editor/libeditor/nsEditor.cpp => editor/libeditor/EditorBase.cpp
rename : editor/libeditor/nsEditor.h => editor/libeditor/EditorBase.h
2016-07-08 13:10:13 +09:00
Masayuki Nakano 28ebbbd99b Bug 1260651 part.13 Rename nsAutoPlaceHolderBatch to mozilla::AutoPlaceHolderBatch r=mccr8
MozReview-Commit-ID: E8IlZjFSFRU
2016-06-23 18:51:19 +09:00
Masayuki Nakano 9771fba160 Bug 1260651 part.1 Rename nsEditorUtils to mozilla::EditorUtils (and their files too) r=mccr8
MozReview-Commit-ID: 7Z48LHQBRo7

--HG--
rename : editor/libeditor/nsEditorUtils.cpp => editor/libeditor/EditorUtils.cpp
rename : editor/libeditor/nsEditorUtils.h => editor/libeditor/EditorUtils.h
extra : rebase_source : e53301378ab6001cdb126c5cc8742b7cadfbbccc
extra : source : 0147a9c79800924614157f1fa74cda3b9397f688
2016-07-07 11:49:42 +09:00
Jonathan Watt b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Nicholas Nethercote ba949d4617 Bug 1278452 - Fix a typo in mozEnglishWordUtils::GetLanguage. r=ehsan.
|aLanguage| must be dereferenced when checked.

--HG--
extra : rebase_source : 8e5125c2eb99d66f731d58590a377b8238a81e70
2016-06-07 15:15:56 +10:00
Eric Rahm d16e0561bb Bug 1275064 - Use unsigned type in RealWord bitfield. r=froydnj 2016-05-25 12:15:27 -07:00
Carsten "Tomcat" Book 9e3e4f59dc Backed out changeset ac9e8b31ac78 (bug 1275064) for bustage on a CLOSED TREE
--HG--
extra : rebase_source : d810dbef0beaebe2b9434300c0c89f66df84b3e2
2016-05-24 11:51:53 +02:00
Eric Rahm cb88225fa4 Bug 1275064 - Use unsigned type in RealWord bitfield. r=froydnj 2016-05-23 15:05:19 -07:00
Eric Rahm 32c7d12a03 Bug 1261304 - Part 3: Avoid rebuilding real word list if possible. r=ehsan
We can avoid rebuilding the real word list if the begin and end nodes have not
changed. This can help with heap churn and possibly speed things up.
2016-05-21 10:07:16 -07:00
Eric Rahm af7d64ab20 Bug 1261304 - Part 2: Shrink RealWord struct. r=ehsan 2016-05-21 10:07:15 -07:00
Eric Rahm 60cbdf73f4 Bug 1261304 - Part 1: Make word splitting fallible. r=ehsan 2016-05-21 10:07:13 -07:00
Chris Peterson 8a9e2d2bd4 Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
Chris Peterson 353ee65255 Bug 1272513 - Part 1: Suppress -Wshadow warnings-as-errors in some directories. r=glandium 2016-05-11 00:00:01 -07:00
Ryan VanderMeulen 0ddefc4583 Bug 1269941 - Upgrade to Hunspell 1.4.1. r=ehsan 2016-05-03 19:00:00 -04:00
Ryan VanderMeulen 0e12039208 Bug 1257902 - Update Hunspell to version 1.4.0. r=ehsan
--HG--
extra : rebase_source : 44913bce7bd6e869cee9b2357af46142997feee4
2016-05-02 16:58:03 -04:00
Kyle Huey c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Marco Castelluccio 835a0d425f Bug 1250453 - Add a body element to test_add_remove_dictionaries.xul to display the test results. r=myk 2016-03-14 16:29:26 +00:00
Ted Mielczarek 68bd5e8c4d bug 1244743 - Replace MOZ_NATIVE_X with MOZ_SYSTEM_X. r=gps
MozReview-Commit-ID: 9ip3qeAXFEe

--HG--
extra : commitid : H6aEkHprVyX
extra : rebase_source : e20d5f4b297caf66711c72cd55dd76f7f9ef9d9c
extra : histedit_source : 47545e0ea61eb66f16545f70e6d3792a389bedb1
2016-02-01 10:49:34 -05:00
ISHIKAWA, Chiaki be2b50a7f8 Bug 1248252 - Improper outdated octal constant syntax in M-C tree. Use '0o' prefix. r=dao
Be warned. Do not attemp to change the .js "test" source code in ./js
They are meant to check

 - the outdated 0666 octal constant is still parsed correctly,
 - the outdated 0666 octal constant raises syntax error flag
   in strict mode, etc.

So leave them alone.
2016-02-15 08:57:00 +01:00
Aidin Gharibnavaz 686438c658 Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley 2016-02-10 08:23:00 +01:00
Carsten "Tomcat" Book 5b358688b7 Backed out changeset c18e29c1b369 (bug 1164581) for cpp unit tests test failures
--HG--
extra : rebase_source : fb6fd434c8e3f4b5fa53ea645a54c07cab207894
2016-02-08 11:17:38 +01:00
Aidin Gharibnavaz 69cf7e035f Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley
--HG--
extra : rebase_source : 3c6bba6613a14e48239d302bdd0f7fe2e322265d
2016-02-07 10:56:00 +01:00
Masayuki Nakano 48eb63e508 Bug 1243657 spellchecker should check if IME composition works as deleting whole text r=ehsan 2016-01-30 09:56:03 +09:00
Bill McCloskey c663839ade Bug 1240871 - Don't allow implicit "async" in IPDL (r=mccr8,billm) 2016-01-28 20:56:37 -08:00
Mike Hommey 05ff585562 Bug 1234130 - Fix MSVC LNK4217 warning in hunspell. r=mshal 2016-01-27 14:41:34 +09:00
Jorg K 4763acc777 Bug 1144254 - Add naive (with diaeresis) and derived words to the en-US dictionary. r=ehsan 2016-01-23 12:11:51 -05:00
Ehsan Akhgari e92cc7e2c7 Bug 1240916 - Part 2: Update the en-US dictionary to SCOWL 2016.01.19 2016-01-21 14:38:56 -05:00
Kevin Atkinson e44ca1f0ff Bug 1240916 - Part 1: Fix dictionary upgrade scripts 2016-01-21 14:35:33 -05:00
Ehsan Akhgari 336860f556 Backout bug 1240916 because the update from upstream seems to be broken
This is probably caused by https://github.com/kevina/wordlist/issues/144.
2016-01-21 13:17:13 -05:00
Ehsan Akhgari 9e044d01f9 Bug 1240916 - Update the en-US dictionary to SCOWL 2016.01.19 2016-01-21 09:54:34 -05:00
Jorg K d799e31aae Bug 301712 - Remove uncommon proper names, remove unneeded words. r=ehsan
--HG--
extra : rebase_source : f99b5c50331ea1c1953d9256a43a86241df0efcf
2016-01-21 08:34:29 +01:00
Kevin Atkinson 90d53702b5 Bug 1238031 - Fix make-new-dict to use a custom en_US dictionary that adds common variants and accented words. r=ehsan
--HG--
rename : extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/orig/README_en_US.txt => extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/orig/README_en_US-custom.txt
rename : extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/orig/en_US.aff => extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/orig/en_US-custom.aff
rename : extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/orig/en_US.dic => extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/orig/en_US-custom.dic
2016-01-14 10:33:12 +01:00
Aidin Gharibnavaz e6606278c0 Bug 1230216 - Changing nsIDOM*Event interfaces so that they don't inherit nsIDOMEvent. r=smaug
All the event interfaces changed except for nsIDOMUIEvent and its inheritors.

--HG--
extra : transplant_source : %A5U%3F%80%2B%DD%01%F4%D8%21%F2%E9z%C1%D6%AA%CC%D4%EC%F8
2016-01-12 07:49:08 +03:30
Wilmer Paulino 99af515866 Bug 1237668 - Remove nsSimpleUnicharStreamFactory r=froydnj 2016-01-11 19:31:29 -05:00
Jorg K 3a67481386 Bug 1235506 - Correct 353 entries in the en-US dictionary. r=ehsan
--HG--
extra : amend_source : 0aa8d755b2bcf4ef1cd74d1b5fea46e8ab8df361
2016-01-07 15:02:00 -05:00
Jorg K 8861594248 Bug 1235216 - fix comment in mozISpellCheckingEngine.idl. r=ehsan 2015-12-26 11:38:00 +01:00
Nathan Froyd 8a2948e596 Bug 1225923 - part 1 - convert all needs-to-copy instances of AppendElement(nsDependentString(...)); r=erahm
When people write:

  array.AppendElement(nsDependentString(...));

(resp. nsDependentCString), it's not clear whether they expect the newly
constructed dependent string to live in the array, or whether they're
just making a nsString-like holder whose contents can be freely copied
into the array's newly-created nsString.  Sometimes the latter is what
you prefer, and sometimes the former.  In all cases, however, the latter
behavior is what you get.

Let's try to make that behavior more explicit by pre-constructing
nsString elements and then using Assign to show that copying is taking
place.  This patch involves no functional change in behavior (it ought
to be epsilon faster due to using AppendElements, rather than repeatedly
calling AppendElement).
2015-11-18 10:25:19 -05:00
Ekanan Ketunuti c2dbe5f747 Bug 1228174 - Add validator to the en-US dictionary. r=ehsan
--HG--
extra : rebase_source : 86834b669a3ae11b3a894d8e08504938401a552d
2015-11-26 07:13:03 +07:00
Nicholas Nethercote 8375973fa2 Bug 1186814 - Replace nsBaseHashtable::EnumerateRead() calls in extensions/spellcheck/ with iterators. r=ehsan.
--HG--
extra : rebase_source : 92029fc4ed0d9fe4511cfefc21f1c4087ff4d37d
2015-10-19 22:31:53 -07:00
Nicholas Nethercote 5b34a25af2 Bug 1216020 - Comment all ALLOW_COMPILER_WARNINGS lines. r=glandium.
DONTBUILD because it only changes comments.

This will hopefully prevent confusion like that in bug 1215903.

--HG--
extra : rebase_source : f0a601d77b5f42b4fbe090693234f934e3becc42
2015-10-19 18:05:20 -07:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Ekanan Ketunuti d30806ea5e Bug 1213765 - Add preliminarily to the en-US dictionary. r=ehsan
--HG--
extra : amend_source : 0cef2913097daad80cdc55b45ba0554dbac73334
2015-10-12 15:21:51 +07:00
Carsten "Tomcat" Book 08997000eb Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book e7ef778c9d Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)

--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Shu-yu Guo d06b6030f6 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Jorg K 367c572f4b Bug 1205983 - Remove all observer code from nsEditor (tests). r=ehsan 2015-09-29 08:25:00 +02:00
Jorg K 1e378ea69e Bug 1205983 - Remove all observer code from nsEditor. r=ehsan 2015-09-28 23:53:00 +02:00
Carsten "Tomcat" Book 3b7a3c96c4 Backed out 2 changesets (bug 1205983) for memory leaks on a CLOSED TREE
Backed out changeset f2c49c0ab84f (bug 1205983)
Backed out changeset a81630dba992 (bug 1205983)
2015-09-29 13:58:35 +02:00
Jorg K 41a777b2d2 Bug 1205983 - Remove all observer code from nsEditor. r=ehsan
--HG--
extra : rebase_source : 3a3375a44d16d1a4a93c670c5ed44adefe6dbb9e
2015-09-28 23:53:00 +02:00
Jorg K 92731da747 Bug 1205983 - Remove all observer code from nsEditor (tests). r=ehsan
--HG--
extra : rebase_source : 71701166ea470c001fba64241545b03361df8a44
2015-09-28 13:28:00 +02:00
Ehsan Akhgari a07e70aab0 Bug 1208885 - Remove mozGenericWordUtils; r=smaug
Found by Viva64.  In the future we need to add support for more
langauges, but right now mozGenericWordUtils doesn't provide any value.
2015-09-28 09:08:40 -04:00
Chris Peterson 71920a9550 Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium 2015-09-22 21:39:03 -07:00
sajitk 2b31623cab Bug 1200065 - Split Mozilla specific code from extensions/spellcheck/hunspell directory to glue directory and adjusted moz.build files. r=glandium
--HG--
rename : extensions/spellcheck/hunspell/src/PRemoteSpellcheckEngine.ipdl => extensions/spellcheck/hunspell/glue/PRemoteSpellcheckEngine.ipdl
rename : extensions/spellcheck/hunspell/src/RemoteSpellCheckEngineChild.cpp => extensions/spellcheck/hunspell/glue/RemoteSpellCheckEngineChild.cpp
rename : extensions/spellcheck/hunspell/src/RemoteSpellCheckEngineChild.h => extensions/spellcheck/hunspell/glue/RemoteSpellCheckEngineChild.h
rename : extensions/spellcheck/hunspell/src/RemoteSpellCheckEngineParent.cpp => extensions/spellcheck/hunspell/glue/RemoteSpellCheckEngineParent.cpp
rename : extensions/spellcheck/hunspell/src/RemoteSpellCheckEngineParent.h => extensions/spellcheck/hunspell/glue/RemoteSpellCheckEngineParent.h
rename : extensions/spellcheck/hunspell/src/hunspell_alloc_hooks.h => extensions/spellcheck/hunspell/glue/hunspell_alloc_hooks.h
rename : extensions/spellcheck/hunspell/src/hunspell_fopen_hooks.h => extensions/spellcheck/hunspell/glue/hunspell_fopen_hooks.h
rename : extensions/spellcheck/hunspell/src/moz.build => extensions/spellcheck/hunspell/glue/moz.build
rename : extensions/spellcheck/hunspell/src/mozHunspell.cpp => extensions/spellcheck/hunspell/glue/mozHunspell.cpp
rename : extensions/spellcheck/hunspell/src/mozHunspell.h => extensions/spellcheck/hunspell/glue/mozHunspell.h
rename : extensions/spellcheck/hunspell/src/mozHunspellAllocator.h => extensions/spellcheck/hunspell/glue/mozHunspellAllocator.h
rename : extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp => extensions/spellcheck/hunspell/glue/mozHunspellDirProvider.cpp
rename : extensions/spellcheck/hunspell/src/mozHunspellDirProvider.h => extensions/spellcheck/hunspell/glue/mozHunspellDirProvider.h
2015-09-11 07:44:00 +02:00
Jorg K dd4cd7d08c Bug 697981 - Prevent reloading of spelling dictionary on unfocused editors; r=roc 2015-09-15 11:35:10 +05:30
Michael Layzell fe31896607 Bug 571294 - Part 1: Implement selection events behind the dom.select_events.enabled pref, r=smaug 2015-09-12 17:56:44 -04:00
Kaustabh Datta Choudhury 2a080acfd0 Bug 1162003 - Enable run-by-dir mode on Fx desktop debug & ASAN builds. r=jmaher 2015-09-10 09:52:00 +02:00
Joel Maher af2cf10bce backout 06bb0c1766f1 for more frequent bc failures 2015-09-09 07:55:37 -04:00
Kaustabh Datta Choudhury eeaa15095f Bug 1162003 - Enable run-by-dir mode on Fx desktop debug & ASAN builds. r=jmaher 2015-09-09 05:42:04 -04:00
Ekanan Ketunuti beb0ebaae0 Bug 1202600 - Add Fukushima to the en-US dictionary. r=ehsan
--HG--
extra : transplant_source : H%06%F8T%A5%93%3AV%CAy%E2E%B1%23%B4%5B%9B%A2M%C7
2015-09-08 16:24:47 +07:00
Ekanan Ketunuti cdcd4cc89c Bug 1200508 - Add dialogs to the en-US dictionary. r=ehsan 2015-09-01 11:51:54 +07:00
Nicholas Nethercote f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Ehsan Akhgari bf2e647675 Bug 1199540 - Update the en-US dictionary to SCOWL 2015.08.24 2015-08-27 23:06:54 -04:00
Ekanan Ketunuti 35859eed5f Bug 1199532 - Add disassembly, disassembler to the en-US dictionary. r=ehsan 2015-08-28 08:34:02 +07:00
Ryan VanderMeulen 292c7111d0 Bug 1170484 - Skip the new test on Mulet as well.
--HG--
extra : rebase_source : 66777ac0a46c77298c5a4bee815f03dd92fca208
2015-08-24 14:25:48 -04:00
Bobby Holley 268566e18f Bug 1170484 - Followup fix to make the guard object actually a guard object. r=me CLOSED TREE 2015-08-24 10:01:47 -07:00
Bobby Holley bb40e2959b Bug 1170484 - Test. r=ehsan 2015-08-24 08:42:04 -07:00
Bobby Holley d9d8ef80a5 Bug 1170484 - Use {Begin,End}PlaceHolderTransaction from mozInlineSpellCheck::ReplaceWord. r=ehsan
Both InsertText and DeleteSelection do a placeholder transaction. When the placeholder
transaction depth drops to zero, we fire input events (which in turn does a microtask
checkpoint). So we can prevent that from happening mid-operation by scoping a larger
placeholder transaction around both calls.
2015-08-24 08:42:03 -07:00
Ehsan Akhgari 8d5db0758d Bug 1184298 - Remove a spammy spellchecker warning 2015-08-10 23:54:42 -04:00
Ekanan Ketunuti 67a0b7a8c8 Bug 1192054 - Add subsumption to the en-US dictionary. r=ehsan 2015-08-07 08:43:44 +07:00
Birunthan Mohanathas 7315345693 Bug 1191100 - Remove XPIDL signature comments in .cpp files. r=ehsan
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
Jorg K 65f20661ad Bug 345852 - Save personal dictionary when a word is added or removed. r=ehsan 2015-07-22 02:06:00 -04:00
Ryan VanderMeulen e5e20485f9 Merge m-c to fx-team. a=merge 2015-07-16 16:23:27 -04:00
Birunthan Mohanathas 659e44ce89 Bug 1182408 - Part 3: Use nsTHashTable::Iterator in mozPersonalDictionary. r=ehsan 2015-07-14 10:53:23 -07:00
Ekanan Ketunuti 3515ae935a Bug 1183765 - Add crappiness to our en-US dictionary. r=ehsan
CLOSED TREE
2015-07-15 08:34:14 +07:00
Birunthan Mohanathas a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Geoff Brown 52d4e225a0 Bug 1026290 - Update mochitest-chrome manifests for android; r=jgriffin 2015-07-10 14:41:59 -06:00
Emanuel Hoogeveen 7d1e52f2ff Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Juan Gomez 258ad59e3f Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Ryan VanderMeulen 5f5c327690 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Juan Gomez 702a59d135 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
--HG--
extra : rebase_source : 2ecbe6c1dd8a7ad8dc529b53349ad431cf1116c9
2015-06-24 14:11:00 -04:00
Ehsan Akhgari 9c6df9d16f Bug 1168802 - Update the en-US dictionary to SCOWL 2015.05.18 2015-05-27 08:12:59 -04:00
Ekanan Ketunuti fcde6fa0d5 Bug 1167912 - Add eldritch to the en-US dictionary. r=ehsan
--HG--
extra : rebase_source : 01ab107ade1df66d95108aac795bdd307b969870
2015-05-26 10:33:53 +07:00
Ekanan Ketunuti 84cf869290 Bug 1160730 - Add composited, compositing and compositeness to the en-US dictionary. r=ehsan 2015-05-11 10:34:22 +07:00
Ehsan Akhgari 5c6c077a96 Bug 1162823 - Do not treat non-Latin words as misspelled; r=ekanan
--HG--
rename : layout/base/tests/bug646382-1.html => editor/reftests/spellcheck-non-latin-arabic-ref.html
2015-05-08 22:45:16 -04:00
Ehsan Akhgari 71fdc7e35a Bug 1137544 - Update the en-US dictionary based on the SCOWL 2015.04.24 wordlist using the new scripts 2015-05-03 23:08:11 -04:00
Kevin Atkinson cdffec50e9 Bug 1137544 - Generate 5-mozilla-added and 5-mozilla-removed to aid in submitting changes upstream; r=ehsan 2015-05-03 23:08:05 -04:00
Kevin Atkinson aea82ef5c9 Bug 1137544 - Upgrade en-US.dic dictionary to upstream version 2015.02.15; r=ehsan 2015-05-03 23:08:02 -04:00
Kevin Atkinson 65f235a3ae Bug 1137544 - New scripts to upgrade en-US.dic to the latest upstream version; r=ehsan
--HG--
rename : extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/hunspell-en_US-20081205.dic => extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/orig/en_US.dic
2015-05-03 23:07:59 -04:00
Kevin Atkinson ffa9034638 Bug 1137544 - Backout changeset ece86f9a9c3b and d594db3c891b in order to redo dictionary update; r=ehsan 2015-05-03 23:04:50 -04:00
Mike Hommey 924c9eb636 Bug 1134923 - Remove NS_Alloc/NS_Realloc/NS_Free. r=nfroyd
They are kept around for the sake of the standalone glue, which is used
for e.g. webapprt, which doesn't have direct access to jemalloc, and thus
still needs a wrapper to go through the xpcom function list and get to
jemalloc from there.
2015-05-01 09:40:30 +09:00
Boris Zbarsky d36060dc11 Bug 1157898 part 5. Eliminate the remaining non-ErrorResult consumers of ErrorResult::ErrorCode and make it protected. r=peterv 2015-04-27 09:18:52 -04:00
Boris Zbarsky 1540774b0c Bug 1157898 part 1. Make code of the form "return rv.ErrorCode();" where rv is an ErrorResult use StealNSResult instead. r=peterv
This patch was generated with the following command:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 's/return ([a-zA-Z0-9]+)\.ErrorCode\(\);/return \1.StealNSResult();/'
2015-04-27 09:18:51 -04:00
Kyle Huey 0f81e8288a Bug 1158366: Remove nsIDOMHTML[BR|Div|Heading|TableCaption|Table|Title]Element.idl. r=ehsan 2015-04-25 07:23:54 -07:00
Wes Kocher 65b94d7a9d Backed out changeset 022beda1707c (bug 1158366) for wError build bustage 2015-04-24 16:52:52 -07:00
Kyle Huey cdd7af4cfa Bug 1158366: Remove nsIDOMHTML[BR|Div|Heading|TableCaption|Table|Title]Element.idl. r=ehsan 2015-04-24 16:09:30 -07:00
Andrea Marchesini 085da9302a Bug 1156632 - Remove unused forward class declarations - patch 5 - rdf, parser, layout and something else, r=ehsan 2015-04-22 08:29:22 +02:00
Németh László 39caf57915 Bug 318040 - Accept abbreviated words without dots to workaround incomplete tokenization. r=ehsan
--HG--
extra : rebase_source : 4192e282330f6249645a11e307c1f62078c05a1c
2014-08-05 08:01:00 -04:00
Ekanan Ketunuti 969d3c3454 Bug 1151296 - Add misandry, misandrist to the en-US dictionary. r=ehsan
--HG--
extra : transplant_source : %03%402%9BY%A1%9Ak%EA%E8a%8D%94%7F%11t%40%AC%D8%E4
2015-04-09 15:02:44 +07:00
Mike Hommey b077d9624d Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd 2015-04-01 13:51:45 +09:00
Andrea Marchesini e6f385fb3d Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Ehsan Akhgari 883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Jonathan Griffin d1c61bc9b6 Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown 2015-02-06 16:30:37 -08:00
Ehsan Akhgari a878938970 Bug 983817 follow-up: Add the fix for the bug to the hunspell patches directory
DONTBUILD
2015-03-11 22:03:05 -04:00
Andrea Marchesini 2c4f63331f Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug 2015-03-03 11:08:59 +00:00
Ting-Yu Lin eacb4adcf8 Bug 1136065 - Remove GetRangeCount() in Selection.h. r=ehsan
We replace GetRangeCount() with the identical function RangeCount() to
avoid any confusion.
2015-02-25 17:08:00 +01:00
Ekanan Ketunuti 574e00c2b0 Bug 1133363 - Part 2 - add new words to en-US dictioanry. r=ehsan 2015-02-17 16:04:04 +07:00
Ekanan Ketunuti b03a9ad8cf Bug 1133363 - Part 1 - add missing /M suffix to en-US dictionary. r=ehsan 2015-02-17 16:04:04 +07:00
Carsten "Tomcat" Book f17167d40f Backed out changeset 271171d2c620 (bug 1133363) for m4 test failures 2015-02-25 10:33:00 +01:00