Boris Zbarsky
d46a52933e
Bug 776536 part 1. Rename nsNodeIterator to mozilla::dom::NodeIterator. r=peterv
...
--HG--
rename : content/base/src/nsNodeIterator.cpp => content/base/src/NodeIterator.cpp
rename : content/base/src/nsNodeIterator.h => content/base/src/NodeIterator.h
2013-02-28 12:56:41 -05:00
Ryan VanderMeulen
238b010bd5
Backed out 7 changesets (bug 832920, bug 776536, bug 843261) for mochitest-a11y assertions on a CLOSED TREE.
...
--HG--
rename : content/base/src/NodeIterator.cpp => content/base/src/nsNodeIterator.cpp
rename : content/base/src/NodeIterator.h => content/base/src/nsNodeIterator.h
rename : content/base/src/TreeWalker.cpp => content/base/src/nsTreeWalker.cpp
rename : content/base/src/TreeWalker.h => content/base/src/nsTreeWalker.h
2013-02-28 14:41:30 -05:00
Boris Zbarsky
8fb2a41fef
Bug 776536 part 1. Rename nsNodeIterator to mozilla::dom::NodeIterator. r=peterv
...
--HG--
rename : content/base/src/nsNodeIterator.cpp => content/base/src/NodeIterator.cpp
rename : content/base/src/nsNodeIterator.h => content/base/src/NodeIterator.h
2013-02-28 12:56:41 -05:00
Gregory Szorc
803629b9c6
Merge mozilla-central into build-system
...
There were merges in configure.in and some Makefile.in. None had any
conflicts. I spot verified the Makefile.in changes and confirmed that
the changes did not touch any DIRS* variables.
2013-02-27 10:03:52 -08:00
Ms2ger
2801c25ab8
Merge m-c to b-s.
2013-02-26 19:09:25 +01:00
Gregory Szorc
1f468ac521
Bug 784841 - Part 18l: Convert /editor; r=glandium f=Ms2ger
2013-02-25 12:47:20 -08:00
Boris Zbarsky
ec134a3b8c
Bug 838686 part 2. Use NodeFilterHolder in treewalker and nodeiterator and start using WebIDL codegen for NodeFilter. r=peterv
2013-02-26 15:10:15 -05:00
L. David Baron
05d5d9dfa9
Bug 404077: Use navigator.platform.startsWith rather than navigator.platform.indexOf, at Jesse's suggestion.
2013-02-26 22:23:08 -08:00
Boris Zbarsky
3156f16358
Back out changeset 1c851a5bbc9f (bug 838686) because it depends on a changeset gcc doesn't like
2013-02-26 15:34:25 -05:00
Boris Zbarsky
8551942b65
Bug 838686 part 2. Use NodeFilterHolder in treewalker and nodeiterator and start using WebIDL codegen for NodeFilter. r=peterv
2013-02-26 15:10:15 -05:00
L. David Baron
4f4296979b
Bug 404077: Annotate known assertions in mochitests.
2013-02-25 18:39:21 -08:00
Ehsan Akhgari
3ee70b1986
Bug 842892 - Block scripts while extending the selection for deletion in order to prevent a crash when changing the type of an input; r=smaug
2013-02-22 18:40:09 -05:00
Ehsan Akhgari
08ba6f9b51
Bug 838582 - Part 2: Move HTMLTextAreaElement to Web IDL bindings; r=bzbarsky
2013-02-19 00:54:23 -05:00
Ryan VanderMeulen
486f369f1f
Backed out 6 changesets (bug 832920, bug 825341, bug 838582, bug 842726, bug 629801, bug 842561) for Linux32 debug mochitest-2 and Windows/OSX mochitest-browser-chrome failures on a CLOSED TREE.
2013-02-22 15:30:06 -05:00
Ehsan Akhgari
b855a12fa5
Bug 838582 - Part 2: Move HTMLTextAreaElement to Web IDL bindings; r=bzbarsky
...
--HG--
extra : rebase_source : f8933c4973220dc8845b9ce2f63e91b366167117
2013-02-19 00:54:23 -05:00
Trevor Saunders
b98e34aed0
bug 822289 - remove NS_IMPL_CYCLE_COLLECTION_CLASS and friends r=mccr8
2013-01-12 07:40:33 -05:00
Ehsan Akhgari
34fe9d9f64
Bug 830600 - Improve the performance of pasting into the location bar by rewriting the O(n^2) algorithm used there to be O(n); r=roc
2013-01-15 18:44:16 -05:00
Ehsan Akhgari
36fdeec59f
Backed out changeset 4c6024d6f725 (bug 830600) because of build failures
2013-01-15 19:29:50 -05:00
Ehsan Akhgari
968ff5bc09
Bug 830600 - Improve the performance of pasting into the location bar by rewriting the O(n^2) algorithm used there to be O(n); r=roc
2013-01-15 18:44:16 -05:00
Masayuki Nakano
2e17e4b4b7
Bug 825924 Input events which are dispatched by editor should be trusted always r=smaug+ehsan
2013-01-12 10:49:29 +09:00
Neil Rashbrook
ab013277d7
Bug 826479 Assertion failure: mInitialized when using Ctrl+Middle-click paste r=ehsan
2013-01-04 20:33:09 +00:00
William Chen
8f2a3385ae
Bug 617532 - Implement UndoManager. r=ehsan
2013-01-03 22:54:26 -08:00
Olli Pettay
27e586ed4c
Bug 803853, make sure to not leak mRules, r=ehsan
2012-12-07 01:31:48 +02:00
Benoit Jacob
5a8b82a1cb
Bug 807437 - Eliminate redundant Traverse/Unlink CC macros - part 1: automatic changes - r=mccr8
2012-11-15 02:32:40 -05:00
Chris Peterson
7ff53c9300
Bug 806142 - Only hide password characters if the text editor is (still) a password editor. r=ehsan
2012-11-06 10:45:58 -08:00
Olli Pettay
efe22ceaf9
Bug 802985, PreDestroy editor, r=ehsan
2012-10-20 21:48:34 +03:00
Peter Van der Beken
e86cd8818c
Fix for bug 801083 (Remove old proxy-based list bindings). r=bz.
2012-10-13 14:50:24 +02:00
Peter Van der Beken
12024180f9
Fix for bug 799464 (Make Element.getElementsBy* return HTMLCollection). r=bz.
...
--HG--
extra : rebase_source : fe059b8ad3b98df9e611899832584cc866db0479
2012-09-26 16:17:47 +02:00
Bobby Holley
c64d31c5e0
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
70ba385729
Bug 792502 - Kill the FunctionTimer code; r=vlad
2012-09-19 16:59:38 -04:00
Ehsan Akhgari
b5e6628199
Bug 791907 - Remove prtypes.h #includes in editor/; r=jrmuizel
...
--HG--
extra : rebase_source : 93c2e11edeaa2f7275302a2c7499aa09c330da14
2012-09-17 22:58:51 -04:00
Randell Jesup
29ac5c0b8c
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
2012-09-01 22:35:17 -04:00
Ehsan Akhgari
8c296bbcd4
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
Neil Deakin
d75704590a
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
f9b558f81c
Bug 751554 part 5 - Rename OperationID to EditAction; r=ehsan
2012-08-12 21:28:26 +03:00
Aryeh Gregor
d4bd5ae8f9
Bug 751554 part 4 - Make nsEditor::OperationID an enum class; r=ehsan
2012-08-01 15:22:07 +03:00
Mike Hommey
c1b35e7b2a
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted
2012-08-04 20:26:44 +02:00
Ehsan Akhgari
c80897316e
Merge the nullptr conversion from mozilla-central into mozilla-inbound
2012-07-30 10:28:15 -04:00
Aryeh Gregor
57c0ad57fb
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Aryeh Gregor
8e459312df
Bug 777292 - editor/: Remove conversions to nsresult that will always result in NS_SUCCEEDED; r=ehsan
2012-07-27 16:46:48 +03:00
Aryeh Gregor
0c8f5adf50
Bug 626472 part 1 - Define nsnull as nullptr where available; r=ehsan
2012-07-20 14:16:17 +03:00
Masayuki Nakano
e947c93f9f
Bug 751749 part.3 Editor should handle Win key as a modifier key r=ehsan
2012-07-19 10:28:17 +09:00
Aryeh Gregor
eb15649aa5
Bug 772807 - Clean up editor/ includes with include-what-you-use; r=ehsan
2012-07-13 09:33:42 +03:00
Makoto Kato
35bbe30c30
Bug 772327 - Password mask timer is too short on Android. r=blassy
2012-07-13 11:26:20 +09:00
Nathan Froyd
5b30baa4c3
Bug 370750 - consolidate mochitest files installation; r=glandium
...
With assistance on the patch from Ms2ger, Waldo, and Mossop.
2012-07-03 16:49:02 -04:00
Luqman Aden
591dff9c8a
Bug 770814 - Make nsEditor::GetNodeLocation return already_AddRefed<nsIDOMNode> instead of having it as an out param; r=ehsan
2012-07-08 20:45:12 -04:00
Makoto Kato
70a261905e
Bug 769533 - Part 1. Replace AppendWithConversion with others. r=jlebar
2012-07-06 18:43:28 +09:00
Aryeh Gregor
383608c823
Bug 765595 part 2 - De-COMtaminate nsEditor::mTxnMgr; r=ehsan
2012-06-19 16:23:36 +03:00
Aryeh Gregor
34bda3a6b6
Bug 769967 part 2 - Clean up nsEditor::GetNodeLocation; r=ehsan
2012-07-02 15:07:57 +03:00
Ehsan Akhgari
a95b6edeea
Bug 722872 - Part 1: Add nsITransferable::Init(nsILoadContext*), enforce that it's called in debug builds, and add nsIDOMDocument* arguments to nsIClipboardHelper methods; r=roc
...
This patch does the following:
* It adds nsITransferable::Init(nsILoadContext*). The load context
might be null, which means that the transferable is non-private, but
if it's non-null, we extract the boolean value for the privacy mode
and store it in the transferable.
* It adds checks in debug builds to make sure that Init is always
called, in form of fatal assertions.
* It adds nsIDOMDocument* agruments to nsIClipboardHelper methods which
represent the document that the string is coming from.
nsIClipboardHelper implementation internally gets the nsILoadContext
from that and passes it on to the transferable upon creation. The
reason that I did this was that nsIClipboardHelper is supposed to be a
high-level helper, and in most of its call sites, we have easy access
to a document object.
* It modifies all of the call sites of the above interfaces according to
this change.
* It adds a GetLoadContext helper to nsIDocument to help with changing
the call sites.
2012-04-16 22:14:01 -04:00
Ryan VanderMeulen
b74e4a29db
Revert c39d36167b99 due to a horribly munged backout.
2012-06-10 19:44:50 -04:00
Ryan VanderMeulen
061d4c2616
Backout the bug 754202 backout due to orange.
2012-06-10 19:37:47 -04:00
Ryan VanderMeulen
1241b67c63
Merge the last PGO-green inbound changeset to m-c
2012-06-10 18:21:22 -04:00
Olli Pettay
94414ed431
Bug 761613 - Merge nsIPrivateDOMEvent to nsIDOMEvent, r=jst
2012-06-10 21:14:30 +03:00
Aryeh Gregor
8e7de01930
Bug 762862 - Rename nsTypedSelection to mozilla::Selection; r=ehsan
...
--HG--
rename : layout/generic/nsTypedSelection.h => layout/generic/Selection.h
2012-06-08 17:20:55 +03:00
Aryeh Gregor
a9cd8feaa1
Bug 757771 part 4 - Create new nsContentUtils::GetSelectionInTextControl method; r=ehsan
2012-06-07 18:00:58 +03:00
Aryeh Gregor
67efb6709f
Bug 757771 part 2 - Change various callers to use nsTypedSelection; r=ehsan
2012-06-05 11:10:26 +03:00
Ms2ger
b263aba754
Bug 756754 - Part a: Return dom::Element* from CreateHTMLContent; r=ehsan
2012-06-06 09:35:47 +02:00
Aryeh Gregor
358c88c0cb
Bug 760143 - Get rid of useless nsresult in editor/; r=ehsan
2012-06-01 14:03:17 +03:00
Mats Palmgren
2c294337da
Bug 760080 - Use info() for log messages that aren't tests. Move SimpleTest.finish() last. r=ehsan
2012-06-01 20:52:37 +02:00
Aryeh Gregor
b35fbf4f3f
Bug 748307 part 3 - Clean up WillDoAction; r=ehsan
2012-05-22 12:37:17 +03:00
Aryeh Gregor
8137ef02b0
Bug 748307 part 2 - Make WillDoAction take an nsTypedSelection; r=ehsan
2012-05-22 12:37:17 +03:00
Aryeh Gregor
1adb36eedc
Bug 748307 part 1 - Make TypedText's second argument a named enum; r=ehsan
2012-05-22 12:37:17 +03:00
Gervase Markham
87620f5676
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Ms2ger
faa0b8ae7d
Merge m-c to m-i.
2012-05-18 13:32:20 +02:00
Ms2ger
d06c354b02
Bug 750053 - Part b: Stop using nsISelection::GetIsCollapsed in editor/libeditor; r=ehsan
2012-05-18 10:29:39 +02:00
Aryeh Gregor
1fffe1dc4d
Bug 590640 part 5 - Delete empty wrappers when we delete the selection; r=ehsan
2012-05-10 17:54:33 +03:00
Aryeh Gregor
223ee82a41
Bug 590640 part 3 - Remove unnecessary use of NodeIsTypeString; r=ehsan
2012-05-09 12:45:23 +03:00
Aryeh Gregor
cb28d967ce
Bug 751547 - Unify action enums in editor/; r=ehsan
2012-05-05 21:52:29 +03:00
Ms2ger
a015bced9a
Bug 750063 - Allow passing null to nsTextEditRules::CreateMozBR's outparam; r=ehsan
2012-05-05 11:00:05 +02:00
Ms2ger
ccd3cd30f5
Bug 747346 - Cleanup nsTextEditRules::CreateTrailingBRIfNeeded(); r=ehsan
2012-05-05 11:00:05 +02:00
Aryeh Gregor
00a49bb9eb
Bug 748303 part 3 - Convert (Tag)CanContain(Tag) to nsIAtom*; r=ehsan
2012-05-01 09:34:52 +03:00
Graeme McCutcheon
1738fc96e1
Followup nit for bug 740784. r=ehsan
2012-04-26 09:16:51 +01:00
Masayuki Nakano
e089b336f8
Bug 630811 part.2 Replace nsInputEvent::isShift, nsInputEvent::isControl, nsInputEvent::isAlt and nsInputEvent::isMeta r=smaug
2012-04-25 12:00:02 +09:00
Graeme McCutcheon
7b5618d5c3
Bug 740784 - Don't allow old bogus nodes to trail textarea content. r=ehsan a=lsblakk
2012-04-12 21:55:48 +01:00
Kyle Huey
ade7c58314
No bug: Followups to my previous two commits.
2012-03-31 07:54:12 -07:00
Kyle Huey
40e991f2d5
Bug 718316: Disable failing tests.
2012-03-31 07:22:31 -07:00
Masayuki Nakano
941d39a6a6
Bug 722961 Add tests for autocomplete with composition r=m_kato
2012-03-27 23:22:56 +09:00
Masayuki Nakano
acf546c04a
Bug 668606 input event should be fired on all editors r=ehsan+smaug, sr=smaug
2012-03-27 10:36:44 +09:00
Ms2ger
e090679772
Bug 738771 - Outparamdel nsEditor::GetDocument(); r=ehsan
2012-03-24 09:19:14 +01:00
Neil Deakin
6c9d8bc0e7
Bug 605991, prevent drops on a parent content page from a child frame from a different domain, r=smaug
2012-03-20 11:21:41 -04:00
Neil Deakin
3e33a45b3f
Bug 728652, null check return value of MozGetDataAt, r=ehsan
2012-02-23 15:59:45 -05:00
Neil Deakin
96524d644a
Bug 499008, part 7, merge html drag type constants into one place, r=ehsan
2012-02-17 09:17:00 -05:00
Neil Deakin
13c593e55b
Bug 499008, part 5, merge the text and html implementations of InsertFromDrop, r=ehsan
2012-02-17 09:16:59 -05:00
Neil Deakin
1d18d254ce
Bug 499008, part 4, convert editor drop handling to use datatransfers instead of the drag service, r=ehsan
2012-02-17 09:16:59 -05:00
Neil Deakin
bb01abe388
Bug 499008, part 2, move editor dragstart handling to ContentAreaDragDrop, r=ehsan
2012-02-17 09:16:59 -05:00
Neil Deakin
a8a864c0d2
Bug 499008, part 1, remove spurious event checks drop editor drag handling, r=ehsan
2012-02-17 09:16:59 -05:00
Masayuki Nakano
9b28752e68
Bug 622247 Remove hack for bug 23558 and bug 271815, and add tests for them r=ehsan
2012-02-15 10:38:07 +09:00
Panagiotis Koutsourakis
583eb38038
Bug 702388 - Convert Makefiles to use |TEST_DIRS += foo| r=khuey
...
Files named Makefile.in containing the expression
DIRS += <foo>
or
DIRS = <foo>
inside the conditional expression
ifdef ENABLE_TESTS
...
endif
are changed to
TEST_DIRS += tests
outside any conditional expression.
The files
./layout/Makefile.in
./layout/Makefile.in
./layout/style/Makefile.in
./rdf/Makefile.in
./security/manager/Makefile.in
./content/Makefile.in
./content/smil/Makefile.in
./content/xul/templates/Makefile.in
./content/xul/content/Makefile.in
./content/base/Makefile.in
./content/media/Makefile.in
./parser/htmlparser/Makefile.in
./dom/sms/Makefile.in
./js/jsd/Makefile.in
./js/xpconnect/Makefile.in
./widget/Makefile.in
./widget/windows/Makefile.in
./Makefile.in
./startupcache/Makefile.in
./storage/Makefile.in
./gfx/Makefile.in
./intl/strres/Makefile.in
./intl/uconv/Makefile.in
./intl/unicharutil/Makefile.in
./intl/lwbrk/Makefile.in
./embedding/Makefile.in
./modules/libjar/Makefile.in
./modules/libpref/Makefile.in
./build/Makefile.in
./build/win32/Makefile.in
./xpcom/Makefile.in
./extensions/spellcheck/hunspell/Makefile.in
./extensions/cookie/Makefile.in
./netwerk/Makefile.in
./netwerk/streamconv/Makefile.in
./editor/txmgr/Makefile.in
./toolkit/mozapps/shared/Makefile.in
./toolkit/mozapps/update/Makefile.in
./toolkit/library/Makefile.in
./toolkit/library/Makefile.in
./toolkit/crashreporter/Makefile.in
./toolkit/components/perf/Makefile.in
./toolkit/components/perf/Makefile.in
./toolkit/components/feeds/Makefile.in
./toolkit/components/url-classifier/Makefile.in
contain the string
ifdef ENABLE_TESTS
but have some other statement inside (e.g. TOOL_DIRS += <foo> etc) and
they remain unchanged by this patch.
2012-02-04 17:32:24 +00:00
Ms2ger
c81e3a7323
Bug 720974 - Remove IsMozEditorBogusNode(nsIDOMNode*); r=ehsan
2012-02-01 11:54:22 +01:00
Ms2ger
0eaa39270a
Bug 722412 - Cleanup nsPlaintextEditor::SetDocumentCharacterSet; r=ehsan
2012-02-01 11:54:22 +01:00
Ms2ger
bee22468f5
Bug 722411 - Cleanup nsPlaintextEditor::GetAndInitDocEncoder; r=ehsan
2012-02-01 11:54:22 +01:00
Ms2ger
853c6e26ed
Bug 720982 - Part b: Remove nsHTMLEditor::InsertBR; r=ehsan
2012-02-01 11:54:21 +01:00
Ms2ger
2e6a1cac96
Bug 720982 - Part a: Remove nsHTMLEditor::CreateBRImpl; r=ehsan
2012-02-01 11:54:21 +01:00
Matthew Schranz
75edd6c796
Bug 698384 - Make document.createNodeIterator's 2nd and 3rd parameters optional. r=smaug
2012-01-25 13:47:50 +01:00
Ehsan Akhgari
7ed714fe6f
Bug 718316 - Try to fix the intermittent orange introduced after the landing of bug 598482 by flushing before capturing the screenshot; r=bzbarsky
2012-01-16 14:41:54 -05:00
Masayuki Nakano
a620faaa8d
Bug 717560 input events during composition should be fired after auto batch is gone r=ehsan
2012-01-13 15:19:22 +09:00
Masayuki Nakano
7de3aa99c7
Bug 717147 part.2 Don't do autocomplete during composition r=dolske
2012-01-13 15:19:22 +09:00
Ms2ger
03f1927241
Bug 716207 - Part b: Cleanup nsTextEditRules::RemoveRedundantTrailingBR; r=ehsan
2012-01-11 09:23:07 +01:00
Ms2ger
b36f3f9abc
Bug 716207 - Part a: Cleanup nsTextEditRules::DidUndo; r=ehsan
2012-01-11 09:23:07 +01:00