Commit Graph

329 Commits

Author SHA1 Message Date
Kyle Huey
94f653c385 Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Ting-Yu Lin
5a659c89ee Bug 1221459 - Remove TouchCaret and SelectionCarets. r=mtseng, r=roc
All the files modified are straightforward deletion except TouchManager
and ZoomConstraintsClient. I add some includes and wrap TouchManager by
mozilla namespace to fix build errors due to the removal of TouchCaret.
2015-12-22 14:14:12 +08:00
Nigel Babu
1a8c45a533 Backed out changeset 9f30d3caa231 (bug 1221459) 2015-12-22 14:03:21 +05:30
Ting-Yu Lin
484446ab59 Bug 1221459 - Remove TouchCaret and SelectionCarets. r=mtseng,roc
All the files modified are straightforward deletion except TouchManager
and ZoomConstraintsClient. I add some includes and wrap TouchManager by
mozilla namespace to fix build errors due to the removal of TouchCaret.
2015-12-22 14:14:12 +08:00
Jorg K
af1d6e0a1d Bug 1219928 - Skip misspelled words in style blocks. r=enndeakin. 2015-11-24 08:45:00 +01:00
Kyle Huey
fffe5cc829 Bug 1216401: Eviscerate nsIDOMWindow, move still needed methods to nsPIDOMWindow. r=bz 2015-10-26 14:37:32 -07:00
Ryan VanderMeulen
2ea4168f6f Bug 500847 - Remove assertion annotations from editor/composer/crashtests/removing-editable-xslt.html. 2015-10-24 15:03:19 -04:00
Ryan VanderMeulen
a74e0485c1 Bug 471185 - Re-enable 428844-1.html on Windows. 2015-10-23 09:54:33 -04:00
Jeremy Chen
c74c0fe875 Bug 1210341 - (v3) Reduce accessiblecaret size. r=TYLin 2015-10-19 01:53:00 +02:00
Nathan Froyd
e4e2da55c9 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
2015-10-18 01:24:48 -04:00
Jorg K
efcc4abcf2 Bug 1209414 - New test for manual dictionary change. r=ehsan 2015-10-11 18:13:10 +02:00
Andrew McCreight
0c62d00526 Bug 1210517 - Create nsVariant directly rather than via do_CreateInstance(). r=froydnj
The goal here is to leave creation stuff mostly for JS, so we can
convert it entirely over to a non-threadsafe cycle-collected version
without breaking any existing C++ users.

I didn't do this for a remaining use in nsGlobalWindow.h to avoid
including nsVariant.h all over the place.
2015-10-07 08:17:42 -07:00
Jorg K
d59aea0d8a Bug 1205983 - Remove all observer code from nsEditor (tests). r=ehsan 2015-09-29 08:25:00 +02:00
Jorg K
0e935cb055 Bug 1205983 - Remove all observer code from nsEditor. r=ehsan 2015-09-28 23:53:00 +02:00
Carsten "Tomcat" Book
ade15da63c 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
28555691e6 Bug 1205983 - Remove all observer code from nsEditor. r=ehsan 2015-09-28 23:53:00 +02:00
Jorg K
0a2a158744 Bug 1205983 - Remove all observer code from nsEditor (tests). r=ehsan 2015-09-28 13:28:00 +02:00
Wes Kocher
5b68e141b5 Merge inbound to central, a=merge CLOSED TREE 2015-09-22 16:42:03 -07:00
Jorg K
020aae0663 Bug 1204540 - Fix up spell checker tests so no content preferences are left behind. r=roc 2015-09-15 10:34:00 +02:00
Jorg K
432d0dcd6f Bug 1193293 - Don't pick a new dictionary which checking. r=roc 2015-09-21 21:51:00 +02:00
Calixte Denizet
11df8e4fbc Bug 1205796 - "Coverity 1323784 indicates a useless passed-by-value argument in nsEditorSpellCheck::TryDictionary". r=smaug 2015-09-22 00:28:00 +02:00
Carsten "Tomcat" Book
7d40232ae9 Backed out 1 changesets (bug 1193293) on developers requests
Backed out changeset c79d3947c307 (bug 1193293)
2015-09-21 14:00:43 +02:00
Jorg K
7ce27372c0 Bug 1193293 - Remove checking dictionary from editor. r=roc 2015-09-18 00:52:00 +02:00
Jorg K
b4062493fb Bug 697981 - Prevent reloading of spelling dictionary on unfocused editors (test). r=roc 2015-09-15 11:35:15 +05:30
Jorg K
2a850a5d22 Bug 1204147 - Prevent content preferences being written when they shouldn't (test). r=roc 2015-09-14 02:35:00 +02:00
Jorg K
2105c4ce1c Bug 1204147 - Prevent content preferences being written when they shouldn't. r=roc 2015-09-11 23:03:00 +02:00
Jorg K
98dc551ad1 Bug 1200533 - Fix spellchecker dictionary logic. r=smaug 2015-09-07 09:06:00 +02:00
Jorg K
482b8491b2 Bug 1200533 - Fix spellchecker dictionary logic (new test). r=smaug 2015-09-04 15:24:00 +02:00
Jorg K
3aec111e4b Bug 1200533 - Fix spellchecker dictionary logic (test changes); r=smaug 2015-09-04 11:29:00 +02:00
Carsten "Tomcat" Book
bb6e0717e6 Backed out 3 changesets (bug 1200533) for test failures in reftests/338427-2.html
Backed out changeset 9f3ca77e2d7b (bug 1200533)
Backed out changeset b3ad852a044a (bug 1200533)
Backed out changeset 74e6798a38a4 (bug 1200533)
2015-09-08 10:29:38 +02:00
Jorg K
0af23baa27 Bug 1200533 - Fix spellchecker dictionary logic. r=smaug 2015-09-07 09:06:00 +02:00
Jorg K
7eb6fb5f28 Bug 1200533 - Fix spellchecker dictionary logic (new test). r=smaug 2015-09-04 15:24:00 +02:00
Jorg K
3665c6e379 Bug 1200533 - Fix spellchecker dictionary logic (test changes). r=smaug 2015-09-04 11:29:00 +02:00
Jorg K
45b96e82a3 Bug 717433 - Make selected language stick, regardless of whether it partly matches (test). r=roc 2015-09-02 14:39:00 +02:00
Jorg K
f0af3921f9 Bug 717433 - Make selected language stick, regardless of whether it partly matches. r=roc 2015-09-01 23:12:00 -04:00
Nicholas Nethercote
69d088e45f 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.
2015-08-27 20:44:53 -07:00
Birunthan Mohanathas
e1f0334d06 Bug 1191100 - Remove XPIDL signature comments in .cpp files. r=ehsan
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
Eric Rahm
d38522a46f Bug 1184249 - Remove warning if rootContent is null in nsEditorSpellCheck::UpdateCurrentDictionary. r=ehsan 2015-07-22 09:24:59 -07:00
Eric Rahm
0dc8cdd770 Bug 1184280 - Remove warning about mDisabledJSAndPlugins being false. r=ehsan 2015-07-15 14:48:09 -07:00
Geoff Brown
f8e98ea39a Bug 1026290 - Update mochitest-chrome manifests for android; r=jgriffin 2015-07-10 14:41:59 -06:00
Masayuki Nakano
e141236539 Bug 1169139 Remove all trailing whitespaces in editor (IGNORE IDL) r=ehsan 2015-05-29 00:58:42 +09:00
Michael Layzell
23cd225ef9 Bug 309731 - Allow document.execCommand('inserthtml') with an empty string parameter. r=ehsan 2015-05-14 08:02:00 -04:00
Jan Horak
d6f3caa6d1 Bug 967494 - "Preference Composition/Spelling/Language is ignored, and changing spellcheck language in one composition window affects all open and new compositions" [r=ehsan] 2015-04-28 12:01:00 +03:00
Mike Hommey
ee117642af 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
94545cbb2e Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Ehsan Akhgari
5cccea6f0f 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
Nathan Froyd
7ff6a1d668 Bug 1142503 - don't use QueryInterface when the compiler can do the cast for us; r=ehsan
Calling QueryInterface with a statically known IID should typically not
be necessary.  In those cases where it's not, the compiler can do the
cast for us, though we have to supply the reference-counting that
QueryInterface would do.

In passing, several redundant null-checks for the result of |new T| have
been deleted.
2015-03-12 09:43:50 -04:00
Jonathan Griffin
8873726f67 Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown 2015-02-06 16:30:37 -08:00
Andrea Marchesini
dec2760ae9 Bug 1134280 - Get rid of Tag() - patch 2.2 - /editor - Fix all the occurrences, m=smaug, r=surkov 2015-03-03 11:08:59 +00:00
Chris Peterson
46d95f7a95 Bug 1133288 - Remove nonstandard expression closures from editor. r=ehsan 2015-01-24 23:53:32 -08:00