Ehsan Akhgari
8e702f60c5
Backed out 2 changesets (bug 579517)
...
Backed out changeset 5298adc70963
Backed out changeset 86ccf7c918ce (bug 579517)
2012-10-25 12:32:24 -04:00
Ehsan Akhgari
f3c0ac7a23
Code hygiene: don't use PR_TRUE and PR_FALSE, and use stdint types instead of PRInt types (no bug really, but you could say bug 579517)
2012-10-25 11:48:19 -04:00
Aryeh Gregor
f2d701a18c
Bug 802995 - Missing null check in nsTextServicesDocument::DeleteSelection; r=ehsan
2012-10-25 14:36:23 +02:00
Ehsan Akhgari
f0aeb33ea8
Merge mozilla-central into mozilla-inbound
2012-10-22 17:05:46 -04:00
Olli Pettay
cc5389f360
Bug 798677, make sure events are fully handled in editor, r=ehsan
2012-10-21 15:35:47 +03:00
Olli Pettay
fb580be9be
Bug 802985, PreDestroy editor, r=ehsan
2012-10-20 21:48:34 +03:00
Peter Van der Beken
9af14c557f
Fix for bug 801083 (Remove old proxy-based list bindings). r=bz.
2012-10-13 14:50:24 +02:00
Aryeh Gregor
acf2831104
Bug 795708 - Use more nsCOMPtr; r=ehsan
2012-10-11 12:26:15 +02:00
Peter Van der Beken
e4c543b77c
Fix for bug 773780 (Add API for new DOM bindings for Node). r=bz.
...
--HG--
extra : rebase_source : 5dd51c4ad5274da9235c8c341b0531f234e95a91
2012-10-09 14:31:24 +02:00
Peter Van der Beken
f52e02e082
Fix for bug 799464 (Make Element.getElementsBy* return HTMLCollection). r=bz.
...
--HG--
extra : rebase_source : fe059b8ad3b98df9e611899832584cc866db0479
2012-09-26 16:17:47 +02:00
Ehsan Akhgari
561619b7e0
Bug 802884 - Fix a build failure in Visual C++ 2012 because of what seems to be a compiler bug; r=me
2012-10-17 20:07:05 -04:00
Masayuki Nakano
b1133a0c74
Bug 705057 part.3 XP level code shouldn't call nsIWidget::ResetInputState() and nsIWidget::CancelIMEComposition() directly r=smaug+ehsan
2012-09-26 14:47:51 +09:00
David Zbarsky
ac35c2991b
Bug 801803: Followup to convert 2 more call sites r=me
2012-10-15 17:39:46 -04:00
Masayuki Nakano
bece5bbc26
Bug 795785 part.3 Add horizontal scroll test r=smaug
2012-10-15 09:32:53 +09:00
Trevor Saunders
a36712f74c
bug 798599 - remove prmem from editor r=ehsan
2012-10-04 02:45:16 -04:00
Ehsan Akhgari
4e49b86a4a
Merge mozilla-central into mozilla-inbound
2012-10-10 20:21:13 -04:00
Olli Pettay
76ea6cb8e7
Bug 733305, add a way to hide XBL, r=bz, a=abillings
...
--HG--
extra : rebase_source : df18273ecdbf013138e8e6f1f4ef8082ac4f410c
2012-10-10 22:04:42 +03:00
Aryeh Gregor
117e69b7e2
Bug 793866 - Missing null check in mozInlineSpellChecker::UpdateCurrentDictionary(); r=ehsan
2012-10-10 09:05:16 +02:00
Masayuki Nakano
7718f4b75d
Bug 795785 part.2 Scroll editor when caret is moved even if it's specified overflow: hidden; r=smaug
2012-10-08 03:45:51 +09:00
Masayuki Nakano
985cc75710
Bug 795785 part.1 Editor should scroll the selection into view after edit even when the editor is specified overflow: hidden; r=ehsan,smaug, sr=smaug
2012-10-08 03:45:51 +09:00
Ed Morley
24678699d7
Bug 795393 - Remove instances of "ifneq (mobile,$(MOZ_BUILD_APP))" since they're now always true; r=ted
2012-10-06 16:46:09 +01:00
Vladimir Vukicevic
b30fc13de4
b=716031 and probably 752808 and 759254; fix test_selection_move_commands by driving RefreshDriver directly; r=ehsan
2012-10-02 14:41:04 -04:00
Ehsan Akhgari
3f5dda291e
Bug 796839 - Part 4: Don't pretend that empty text nodes are not editable; r=roc
...
This is the real fix for this bug. Previously we mistakenly thought
that if a text node is empty (or has only whitespace content), it is not
editable. This patch removes that check completely and makes us treat
text nodes the same way that we treat element nodes.
2012-10-03 21:25:00 -04:00
Ehsan Akhgari
3a5a309d1a
Bug 796839 - Part 3: Don't get the inline properties from empty text nodes; r=roc
...
This is basically the equivalent of the previous part, just for getting
the inline properties.
2012-10-04 20:58:00 -04:00
Ehsan Akhgari
bcc50ca39a
Bug 796839 - Part 2 - Don't set inline properties on empty text nodes; r=roc
...
This part, similar to the previous one, ensures that we skip empty text
nodes when setting inline properties. Previously we were implicitly
getting this behavior becasue we were calling IsEditable, but we need to
be explicit about this.
2012-10-04 20:37:45 -04:00
Ehsan Akhgari
eaff7cb0b6
Bug 796839 - Part 1: Make sure not to try wrapping empty text nodes when applying alignment in editable regions; r=roc
...
The code here is just missing this condition, and this patch is needed
to make the last part of this series pass tests. Previously,
nsEditor::IsEditable would return false when it hit an empty text node,
which implied this property almost by accident. This check makes this
property explicit, so this patch by itself doesn't really change
semantics.
2012-10-04 11:34:58 -04:00
Vladimir Vukicevic
512feb5da3
b=768838; fix intermittent test_bug549262 failure; r=ehsan
2012-10-01 17:51:28 -04:00
Isaac Aggrey
481e7dfb0b
Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan
2012-09-28 01:57:33 -05:00
Matt Woodrow
7507512379
Bug 539356 - Part 10 - Test changes required for DLBI. r=roc
...
* * *
[mq]: test-fixes
2012-08-29 17:48:13 +12:00
Aryeh Gregor
b9ed7e8ba3
Bug 787432 - Don't strip existing empty wrappers when inserting text; r=ehsan
2012-09-27 14:39:39 +02:00
Ed Morley
aba3a8f5ef
Revert mozilla-inbound to e4dd1fa6d222 for crashes and test failures on a CLOSED TREE
2012-09-27 16:34:46 +01:00
Matt Woodrow
6f5a5e2a30
Bug 539356 - Part 10 - Test changes required for DLBI. r=roc
...
* * *
[mq]: test-fixes
2012-08-29 17:48:13 +12:00
Bobby Holley
a25701a3f7
Bug 792036 - Automated fixups. r=mccr8
...
find /files/mozilla/build/d/_tests/testing/mochitest/tests/ | egrep "\.(xhtml|html|xml|js)$" | grep -v SimpleTest | grep -vi mochikit | grep -v simpleThread | grep -v test_ipc_messagemanager_blob.html | grep -v "indexedDB/test" | xargs grep -l Components | xargs grep -L enablePrivilege | perl -pe 's#.*mochitest/tests/##' | xargs perl -p -i.bakkk -e 's/Components\.interfaces(\s|;|\.|\[)/SpecialPowers\.Ci$1/g, s/SpecialPowers\.wrap\(Components\)\.(.)(lasses|tils|nterfaces|esults)/SpecialPowers.C$1/g, s/(?<![\.a-zA-Z])Components/SpecialPowers\.Components/g, s/window\.Components/window\.SpecialPowers\.Components/g'
2012-09-24 14:46:29 +02:00
Bobby Holley
8188b09b4e
Bug 792036 - Fix up tests to avoid relying on the existence of window.Components (MANUAL). r=mccr8
...
These are the manual fixes that the ensuing auto-generation can't deal with. Some of them
just fix up formatting (such as Components.\nFoo, so that subsequent auto-generation can
work better).
2012-09-24 14:46:28 +02:00
Ehsan Akhgari
8cc30b88b2
Bug 792502 - Kill the FunctionTimer code; r=vlad
2012-09-19 16:59:38 -04:00
Ehsan Akhgari
db466de1ae
Bug 791907 - Remove prtypes.h #includes in editor/; r=jrmuizel
...
--HG--
extra : rebase_source : 93c2e11edeaa2f7275302a2c7499aa09c330da14
2012-09-17 22:58:51 -04:00
Koosha Khajeh Moogahi
dcf81f4fb0
Bug 788242: Implement and make use of void versions of NS_ENSURE_* macros; r=ehsan,bsmedberg
2012-09-14 14:30:31 +04:30
Aryeh Gregor
73eacbf006
Bug 788950 - Prevent mRules from dying in DoInsertHTMLWithContext; r=ehsan
2012-09-16 13:13:31 +03:00
Mark Capella
8dfb2b1858
Bug 785091 - Remove nsIEditorObserver, r=ehsan
2012-09-17 11:14:56 -04:00
Andrew McCreight
ad40555109
Bug 775868 - fix more tests. r=bholley
2012-09-10 12:44:29 -07:00
Neil Deakin
f80d12787a
Bug 788404, return unconditionally from attempts to insert from drop to prevent mutliple copies of text from appearing in contenteditable areas, r=ehsan
2012-09-07 15:57:10 -04:00
Isaac Aggrey
a989c54e1d
Bug 785131 - Don't process any node when aChildrenOnly is set; r=ehsan
2012-08-23 12:17:43 -05:00
Abhishek Potnis
0ade6e24e9
Bug 777925 : Removes HTML editor logging support; r=ehsan
2012-09-04 21:18:59 +05:30
Randell Jesup
65539ef89c
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
2012-09-01 22:35:17 -04:00
Ehsan Akhgari
fabdcd910a
Bug 785574 - Add a script blocker in nsHTMLEditor::SetAttributeOrEquivalent; r=bzbarsky
2012-08-29 16:43:32 -04:00
Andrew McCreight
c063a3e54c
Bug 750570, part 4 - Switch most native CC classes to use the purple buffer. r=smaug
...
This patch actually converts over most of the existing native CC classes
to use the participant. This is done by converting them to use
the newly generalized nsCycleCollectingAutoRefCnt instead of their usual
ref count.
This is mostly a matter of defining new macros defining AddRef() and Release()
for native CC classes with the CC ref count.
nsTimeout is left as a legacy native CC class because it is a weird class,
but hopefully eventually it too can be converted over. See bug 774874.
2012-08-24 09:50:06 -07:00
Ehsan Akhgari
e368dc9c85
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-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 PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Isaac Aggrey
40d9fa492d
Bug 711862 - Do not process the node itself in nsHTMLEditor::RemoveStyleInside if the caller requests only children to be modified; r=ehsan
2012-08-21 14:31:19 -04:00
Ian Melven
4f3defdd1a
Bug 341604 - Implement HTML5 sandbox attribute for IFRAMEs r=smaug r=jst
2012-08-20 11:34:32 -07:00
Kent James
1cd719aa66
Bug 780908 - Fix crash in editor with head after body. r=ehsan
2012-08-17 08:39:52 -07:00
Neil Deakin
43bc42a549
Bug 775110, allow data from the same domain to be dropped in editor fields, r=ehsan
2012-08-15 15:35:08 -04:00
Aryeh Gregor
5963cc87af
Bug 782252 - Don't return nsresult from main() (editor/); r=ehsan
2012-08-07 20:17:26 +03:00
Aryeh Gregor
8bb4aff89c
Bug 782252 - Cast NS_ENUMERATOR_FALSE to nsresult; r=ehsan
2012-08-07 17:54:44 +03:00
Aryeh Gregor
4e199a1679
Bug 780618 - Move all error codes to nsError.h; r=ehsan
2012-07-27 17:03:27 +03:00
Aryeh Gregor
76825e9b05
Bug 780035 - Don't cache font-style as CSS; r=ehsan
2012-08-14 12:10:43 +03:00
Aryeh Gregor
2d1471fe5d
Bug 751554 part 5 - Rename OperationID to EditAction; r=ehsan
2012-08-12 21:28:26 +03:00
Ed Morley
98aa4a8530
Merge mozilla-central to mozilla-inbound
2012-08-09 12:51:21 +01:00
Ed Morley
b5f4776008
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-08-09 12:46:05 +01:00
Ms2ger
9e96a99107
Bug 780502 - Remove unsound assertion; r=ehsan
2012-08-09 09:20:11 +02:00
Ms2ger
3977fd015e
Bug 179956 - Remove unsound assertion; r=ehsan
2012-08-09 09:20:06 +02:00
Ms2ger
3eeaed21b6
Bug 461440 - Remove unsound assertion; r=ehsan
2012-08-09 09:20:01 +02:00
Aryeh Gregor
a904071047
Bug 778428 - Refcount arrays of nodes in editor/; r=ehsan
2012-08-01 11:17:51 +03:00
Aryeh Gregor
d75065b649
Bug 751554 part 4 - Make nsEditor::OperationID an enum class; r=ehsan
2012-08-01 15:22:07 +03:00
Aryeh Gregor
275d0d4758
Bug 751554 part 3 - Fix OperationID type errors; r=ehsan
2012-08-01 15:20:59 +03:00
Bobby Holley
1895527d8c
Bug 778420 - Fix up tests that don't like the new enablePrivilege. r=jmaher
...
--HG--
extra : rebase_source : 1158df4a4eb917074204e649efd8f2b8e699f115
2012-08-03 22:19:54 +02:00
William Chen
607a319d22
Bug 778420 - Initial stab at the tests. v2 r=bholley
...
--HG--
extra : rebase_source : c24abc031c82a87f2f669e4b708f8ee364a9682b
2012-08-06 22:15:49 +02:00
Matt Brubeck
846d3da1b5
Bug 779551 - Mark spellcheck-superscript-2.html as failing on native Android, so reftest-3 can be unhidden; rs=edmorley
2012-08-05 13:20:23 +01:00
Ms2ger
c75eefb90d
Bug 716822 - Move attributes and methods on nsIDOMNSEvent to nsIDOMEvent; r=smaug
2012-08-04 09:44:00 +02:00
Mike Hommey
70d7c821af
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted
2012-08-04 20:26:44 +02:00
Ed Morley
f4181983a1
Revert inbound to 3d5d1daa2505 to stop OS X M5 failures (backout not clean/could have been a bad merge) on a CLOSED TREE
2012-08-04 18:05:15 +01:00
Ms2ger
27245512cd
Bug 716822 - Move attributes and methods on nsIDOMNSEvent to nsIDOMEvent; r=smaug
2012-08-04 09:44:00 +02:00
Aryeh Gregor
6378f5248d
Bug 777529 - Don't spellcheck Unicode numbers; r=ehsan
2012-07-31 11:50:04 +03:00
Aryeh Gregor
c81630fddb
Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan
2012-07-27 16:59:29 +03:00
Aryeh Gregor
8782e85213
Bug 291789 part 3 - Try not to ever delete across table boundaries; r=ehsan
2012-07-27 17:03:28 +03:00
Aryeh Gregor
0afc7f8770
Bug 291789 part 2 - Clean up nsHTMLEditRules::InDifferentTableElements; r=ehsan
2012-07-27 17:03:28 +03:00
Aryeh Gregor
a49c41b03d
Bug 291789 part 1 - Make various nsHTMLEditUtils methods take nsINode instead of Element; r=ehsan
2012-07-27 17:03:28 +03:00
Ehsan Akhgari
3ad40dbf10
Merge the nullptr conversion from mozilla-central into mozilla-inbound
2012-07-30 10:28:15 -04:00
Aryeh Gregor
d0ad5a7d0c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Aryeh Gregor
7fc47312ed
Bug 777292 - Use assert for arg validity in nsHTMLAnonymousUtils' GetCSSFloatValue instead of NS_ENSURE_ARG_POINTER; r=ehsan
2012-07-27 17:03:25 +03:00
Aryeh Gregor
f3f465386f
Bug 777292 - exit(-1) instead of exit(NS_ERROR_FAILURE); r=ehsan
2012-07-27 17:03:25 +03:00
Aryeh Gregor
829da4acf9
Bug 777292 - editor/: Remove conversions to nsresult that will always result in NS_SUCCEEDED; r=ehsan
2012-07-27 16:46:48 +03:00
Ehsan Akhgari
93833269e0
Bug 778028 - Build editor/ in parallel; r=khuey
2012-07-26 22:24:27 -04:00
Ehsan Akhgari
7083d7413e
Bug 777949 - Make the editor Makefile.in's splendid; r=khuey
...
--HG--
extra : rebase_source : cc24614034ecaa18260fdc16654d18d2ef844c7f
2012-07-26 21:57:31 -04:00
Ehsan Akhgari
ab26caf7ad
Bug 777937 - Remove the useless EXPORTS rule from editor/public/Makefile.in; r=khuey
...
--HG--
extra : rebase_source : 227bc8019a86a7f114677464a905625c57b4fa94
2012-07-26 21:55:53 -04:00
Jonathan Watt
87009fecbc
Bug 776686 - Remove bogus include path from Editor. r=ehsan.
2012-07-23 21:28:30 +01:00
Aryeh Gregor
688a8caad5
Bug 776323 part 2 - Clean up nsSelectionState::SaveSelection; r=ehsan
2012-07-23 13:27:22 +03:00
Aryeh Gregor
52e1b71cd6
Bug 776323 part 1 - Fix crash due to silly logic error in nsSelectionState::SaveSelection; r=ehsan
2012-07-23 13:27:22 +03:00
Aryeh Gregor
65eef91085
Bug 626472 part 1 - Define nsnull as nullptr where available; r=ehsan
2012-07-20 14:16:17 +03:00
Aryeh Gregor
4431987355
Bug 772332 part 1 - Make nsWSRunObject's type enum type-safe; r=ehsan
2012-07-13 09:33:43 +03:00
Aryeh Gregor
fd7bdd6064
Bug 775552 - Don't access siblings of nodes that might be deleted; r=ehsan
2012-07-13 09:33:42 +03:00
Aryeh Gregor
3c6dc3816c
Bug 768756 part 4 - Clean up nsHTMLCSSUtils::GetCSSInlinePropertyBase; r=ehsan
2012-07-08 13:31:53 +03:00
Aryeh Gregor
a8cc31c4f6
Bug 768756 part 3 - Get rid of nsHTMLCSSUtils::GetDefaultViewCSS; r=ehsan
2012-07-08 12:50:31 +03:00
Aryeh Gregor
4ea3421a9a
Bug 768756 part 1 - Use enum in nsHTMLCSSUtils for computed/specified style; r=ehsan
2012-07-06 14:50:07 +03:00
Masayuki Nakano
8191cad1be
Bug 751749 part.3 Editor should handle Win key as a modifier key r=ehsan
2012-07-19 10:28:17 +09:00
Ehsan Akhgari
7ce5477f9b
Bug 771976 - Part 3: Make sure that nsEditorSpellCheck's refcount doesn't go down prematurely; r=roc
...
--HG--
extra : rebase_source : 08c052ed543bbdcb8bc2c084e8aff24fbd4b40a5
2012-07-17 23:02:00 -04:00
Jared Wein
b4c254c0cb
Bug 754169 - Fix intermittent orange related to imprecise scrolling positions in test. r=ehsan
2012-07-17 11:40:49 -04:00
Ehsan Akhgari
70e10e9814
Bug 771976 - Part 2: Make sure that nsEditorSpellCheck's refcount doesn't go down prematurely; r=roc
2012-07-17 00:01:15 -04:00
Aryeh Gregor
337061262c
Bug 773262 - Re-add SetMaxTransactionCount call incorrectly removed by bug 765595 part 2; r=ehsan
2012-07-15 09:11:47 +03:00
Aryeh Gregor
dde10d9130
Bug 772807 - Clean up editor/ includes with include-what-you-use; r=ehsan
2012-07-13 09:33:42 +03:00
Aryeh Gregor
8f686980ed
Bug 771994 - Make nsRangeStore refcounted; r=ehsan
2012-07-13 09:31:15 +03:00