Commit Graph

705 Commits

Author SHA1 Message Date
Mike Shal
9680b82df6 Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps 2013-03-19 11:47:00 -07:00
Trevor Saunders
43728598df bug 825341 - convert range to webidl r=bz, smaug 2013-02-07 07:09:41 -05:00
Phil Ringnalda
7fbba09df0 Back out fee79a593fd3 and 2c8930343985 (bug 825341) for having probably needed-clobber 2013-03-11 20:10:18 -07:00
Trevor Saunders
3de595d32e bug 825341 - convert range to webidl r=bz, smaug 2013-02-07 07:09:41 -05:00
Ms2ger
2cf07efa15 Bug 847195 - Make NamedNodeMap only deal with Attrs; r=khuey
--HG--
rename : dom/interfaces/core/nsIDOMNamedNodeMap.idl => dom/interfaces/core/nsIDOMMozNamedAttrMap.idl
2013-03-10 09:00:33 +01:00
Chris Lord
1ddba876be Bug 716403 - Fix intermittent failure of Bug 795785 test. r=ehsan
This test is prone to race conditions, up the timeout wait from 20ms to 100ms.
2013-03-07 10:17:34 +00:00
Ehsan Akhgari
ebd69dc043 Bug 848644 - Do not flush when determining if a node is preformatted or not; r=bzbarsky 2013-03-07 01:12:41 -05:00
Ryan VanderMeulen
893d8d351a Backed out 9 changesets (bug 716403) for Android 4.0 robocop bustage on a CLOSED TREE. 2013-03-06 16:11:05 -05:00
Chris Lord
3555e9bd0b Bug 716403 - Fix intermittent failure of Bug 795785 test. r=ehsan
This test is prone to race conditions, up the timeout wait from 20ms to 100ms.
2013-03-06 16:56:00 +00:00
Trevor Saunders
60678a2f23 bug 845562 - remove GetFrameSelection() from nsISelectionPrivate r=smaug 2013-02-15 15:09:28 -05:00
Gregory Szorc
f0b7e3972c 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
cd9c6150fe Merge m-c to b-s. 2013-02-26 19:09:25 +01:00
Gregory Szorc
25aa94aa13 Bug 784841 - Part 18l: Convert /editor; r=glandium f=Ms2ger 2013-02-25 12:47:20 -08:00
David Humphrey (:humph)
520543aa7f Bug 839371 - Implement HTML5 <data> element. r=smaug 2013-02-26 15:19:05 -05:00
David Humphrey (:humph)
5773fc1f37 Bug 629801 Implement HTML5 <time> element. r=smaug, peterv, hsivonen 2013-02-22 10:07:42 -05:00
L. David Baron
57d19fbb86 Bug 404077: Annotate known assertions in mochitests. 2013-02-25 18:39:21 -08:00
Ryan VanderMeulen
858de2ee46 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
David Humphrey (:humph)
019ece73e5 Bug 629801 Implement HTML5 <time> element. r=smaug, peterv, hsivonen 2013-02-22 10:07:42 -05:00
Trevor Saunders
70d157e13c bug 825341 - convert range to webidl r=bz, smaug 2013-02-07 07:09:41 -05:00
Olli Pettay
dc2243899a Bug 842132 - Crash with contentEditable, selection.deleteFromDocument with overlapping selection ranges, r=tbsaunde 2013-02-18 18:32:32 +02:00
Ryan VanderMeulen
10bb153b4f Backed out changeset 645cb4fbf390 (bug 842132) for build bustage. 2013-02-18 11:12:16 -05:00
Olli Pettay
7da38b2a1a Bug 842132 - Crash with contentEditable, selection.deleteFromDocument with overlapping selection ranges, r=tbsaunde 2013-02-18 17:33:49 +02:00
L. David Baron
822b2ca3bc Bug 781360 patch 3: Rename {nsIFrame,nsStyleContext,nsComputedDOMStyle}::GetStyle* to Style*, since they can never return null. r=dholbert
Except for the changes in:
  layout/generic/nsIFrame.h (part)
  layout/style/nsComputedDOMStyle.h (all)
  layout/style/nsRuleNode.cpp (part)
  layout/style/nsStyleContext.cpp (part)
  layout/style/nsStyleContext.h (part)
(see patch 3b in the bug), this patch was written with the sed script:
s/\<GetStyle\(Font\|Color\|List\|Text\|Visibility\|Quotes\|UserInterface\|TableBorder\|SVG\|Background\|Position\|TextReset\|Display\|Content\|UIReset\|Table\|Margin\|Padding\|Border\|Outline\|XUL\|SVGReset\|Column\)\>/Style\1/g
2013-02-16 13:51:02 -08:00
Peter Van der Beken
490e9a4afd Fix for bug 839529 (Remove various CC participants that don't do anything). r=smaug.
--HG--
extra : rebase_source : 8a272905c79396e7ae08aaaf83566ac450c45be0
2013-02-07 10:19:08 +00:00
Trevor Saunders
4bc29b1b63 bug 841706 - remove nsSelectionIterator r=smaug 2013-02-15 05:52:57 -05:00
Trevor Saunders
31e42ed09f bug 839051 - remove usage of nsISelectionPrivate::GetEnumerator() r=smaug 2013-02-07 09:17:47 -05:00
Jeff Walden
582b2e961d Bug 835648 - Move typed enum support to a new header. r=Ms2ger 2013-01-28 16:33:17 -08:00
Ryan VanderMeulen
18cfd86d7e Backed out changeset 3eb633a97c1f (bug 835648) for suspected Windows orange on a CLOSED TREE. 2013-01-29 19:01:45 -05:00
Jeff Walden
129a025dee Bug 835648 - Move typed enum support to a new header. r=Ms2ger
--HG--
extra : rebase_source : 8c912fba889c1c5435e3619714071502fbfb30a3
2013-01-28 16:33:17 -08:00
Henri Sivonen
ebd208d6e6 Bug 820508 part 4 - Make <main> have the HTMLElement DOM interface. r=smaug. 2013-01-29 14:31:45 +02:00
Trevor Saunders
9f0ad48b28 bug 822289 - remove NS_IMPL_CYCLE_COLLECTION_CLASS and friends r=mccr8 2013-01-12 07:40:33 -05:00
Mats Palmgren
6c53161814 Bug 786533 - Replace NS_MIN/NS_MAX with std::min/std::max and #include <algorithm> where needed. r=ehsan 2013-01-15 13:22:03 +01:00
David Zbarsky
cae582f47e Bug 830132 r=ehsan 2013-01-14 21:06:19 -05:00
Masayuki Nakano
3f208a21f2 Bug 825924 Input events which are dispatched by editor should be trusted always r=smaug+ehsan 2013-01-12 10:49:29 +09:00
David Zbarsky
228efdd220 fix bustage from Bug 828169 on a CLOSED TREE 2013-01-09 19:09:34 -05:00
David Zbarsky
3ee6a12d3f Bug 828169 - Don't use nsIDOMNode in editor transactions r=ehsan 2013-01-09 18:05:08 -05:00
Masatoshi Kimura
a1f5549a30 Bug 826983 - Enable FAIL_ON_WARNINGS on MSVC in editor/. r=ehsan 2013-01-07 04:41:46 +09:00
William Chen
7cd5470029 Bug 617532 - Implement UndoManager. r=ehsan 2013-01-03 22:54:26 -08:00
Ehsan Akhgari
2cf729e283 Backed out changeset 66a7359f9be2 (bug 791546) because it broke the build 2013-01-03 18:36:16 -05:00
Shriram Kunchanapalli
bbed330a6b Bug 791546: Removes nsCRT::strcmp(const PRUnichar* s) from nsCRT.h and replaces it occurrences with NS_strcmp; r=bsmedberg 2012-12-24 08:47:18 +05:30
Masatoshi Kimura
b5e27745c8 Bug 824247 - Part 3: Disable FAIL_ON_WARNINGS on not-yet-warning-free directories on MSVC. r=ted 2013-01-03 00:56:38 +09:00
Masayuki Nakano
2455263ab2 Bug 813445 part.14 Make dom::EventListenerFlags for nsEventListenerManager r=smaug 2012-12-16 10:26:05 +09:00
Masayuki Nakano
792137f340 Bug 813445 part.3 Remove NS_EVENT_FLAG_CANT_CANCEL and NS_EVENT_FLAG_CANT_BUBBLE r=smaug 2012-12-16 10:26:03 +09:00
Jeff Walden
7146c23e80 Bug 820570 - Move mozilla::DebugOnly into DebugOnly.h to pare down the grab-baggish Util.h. r=Ms2ger 2012-12-14 18:58:45 -05:00
Ms2ger
cf85be986f Bug 812891 - Remove duplicated code from nsEditor::Get{Left,Right}mostChild; r=ehsan 2012-12-02 09:59:45 +01:00
Benoit Jacob
a1d7e0f511 Bug 807437 - Eliminate redundant Traverse/Unlink CC macros - part 1: automatic changes - r=mccr8 2012-11-15 02:32:40 -05:00
Daniel Glazman
ec5abc800c Bug 811679 - Add nsIEditorObserver back; r=ehsan 2012-11-14 11:23:35 -08:00
Masayuki Nakano
189313a6bf Bug 806996 part.5 nsEditor::PostCreate() should call nsIMEStateManager::UpdateIMEState() rather than nsIMEStateManager::OnChangeFocus() when it already has focus r=ehsan 2012-11-09 17:40:39 +09:00
Robert O'Callahan
5b94df5bb2 Bug 805697. Remove StCaretHider since it's not needed anymore. r=mats
--HG--
extra : rebase_source : c2c8652585958ddaeb9e01ed1fe47a391339c2ec
2012-10-29 17:31:26 +13:00
Masayuki Nakano
072949e794 Bug 805306 Get rid of nsIMEStateManager::OnTextStateBlur() and nsIMEStateManager::OnTextStateFocus() r=smaug 2012-10-26 09:49:13 +09:00
Ehsan Akhgari
1f78e9ca0c Merge mozilla-central into mozilla-inbound 2012-10-22 17:05:46 -04:00
Olli Pettay
5edd829335 Bug 798677, make sure events are fully handled in editor, r=ehsan 2012-10-21 15:35:47 +03:00
Aryeh Gregor
2b7a1092b2 Bug 795708 - Use more nsCOMPtr; r=ehsan 2012-10-11 12:26:15 +02:00
Peter Van der Beken
57adeb4354 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
Masayuki Nakano
d03c724521 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
Masayuki Nakano
89534dc748 Bug 795785 part.3 Add horizontal scroll test r=smaug 2012-10-15 09:32:53 +09:00
Olli Pettay
69e091e8e4 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
Masayuki Nakano
a4e119b5dc 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
cbffcf6ade 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
Vladimir Vukicevic
52a04c8b93 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
e630637a1d 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
b5c39afb4e Bug 792502 - Kill the FunctionTimer code; r=vlad 2012-09-19 16:59:38 -04:00
Ehsan Akhgari
ff1c5bbcf7 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
8d39310f18 Bug 788242: Implement and make use of void versions of NS_ENSURE_* macros; r=ehsan,bsmedberg 2012-09-14 14:30:31 +04:30
Mark Capella
5a5ba0a45c Bug 785091 - Remove nsIEditorObserver, r=ehsan 2012-09-17 11:14:56 -04:00
Neil Deakin
7276ffca3a 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
Randell Jesup
eedf93a21d Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Ehsan Akhgari
0fd9123eac 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
Aryeh Gregor
0923bf00ef Bug 780618 - Move all error codes to nsError.h; r=ehsan 2012-07-27 17:03:27 +03:00
Aryeh Gregor
30201a72e9 Bug 751554 part 5 - Rename OperationID to EditAction; r=ehsan 2012-08-12 21:28:26 +03:00
Aryeh Gregor
07e11d5e7d Bug 751554 part 4 - Make nsEditor::OperationID an enum class; r=ehsan 2012-08-01 15:22:07 +03:00
Aryeh Gregor
13b54b385e Bug 751554 part 3 - Fix OperationID type errors; r=ehsan 2012-08-01 15:20:59 +03:00
Ms2ger
c7a5b33778 Bug 716822 - Move attributes and methods on nsIDOMNSEvent to nsIDOMEvent; r=smaug 2012-08-04 09:44:00 +02:00
Mike Hommey
6173fa297f Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Ed Morley
bba173e66e 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
babf67cce2 Bug 716822 - Move attributes and methods on nsIDOMNSEvent to nsIDOMEvent; r=smaug 2012-08-04 09:44:00 +02:00
Aryeh Gregor
903f6c9c84 Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan 2012-07-27 16:59:29 +03:00
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Aryeh Gregor
a9370a8066 Bug 776323 part 2 - Clean up nsSelectionState::SaveSelection; r=ehsan 2012-07-23 13:27:22 +03:00
Aryeh Gregor
a80cb9b3a2 Bug 776323 part 1 - Fix crash due to silly logic error in nsSelectionState::SaveSelection; r=ehsan 2012-07-23 13:27:22 +03:00
Masayuki Nakano
d628388400 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
5733f277d8 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
b0041eadcc Bug 772807 - Clean up editor/ includes with include-what-you-use; r=ehsan 2012-07-13 09:33:42 +03:00
Aryeh Gregor
0f9c1ead04 Bug 771994 - Make nsRangeStore refcounted; r=ehsan 2012-07-13 09:31:15 +03:00
Sankha Narayan Guria
47ed501a26 Bug 770812 - Remove nsIEditorSupport; r=ehsan 2012-07-11 18:06:02 -04:00
Aryeh Gregor
11df0cc2ad Bug 772282 - Hold on to nodes when we delete them in nsEditor::MoveNode; r=ehsan 2012-07-11 10:51:13 +03:00
Aryeh Gregor
bbf508b17b Bug 771983 - Re-add non-debug null check to nsEditor::GetNodeLocation; r=ehsan 2012-07-10 09:53:59 +03:00
Aryeh Gregor
a33c083752 Bug 771435 - Fix nsEditor::DoTransaction to use transaction interfaces sanely; r=ehsan 2012-07-09 11:41:47 +03:00
Aryeh Gregor
552206e532 Bug 771749 - Fix dangling pointer in nsEditor::RemoveContainer; r=ehsan 2012-07-09 11:41:47 +03:00
Ryan VanderMeulen
959e0d6234 Merge m-c to inbound. 2012-07-09 20:53:11 -04:00
Olli Pettay
bf724401ab Bug 771961, fix a regression from Bug 756750, r=ehsan 2012-07-09 23:52:31 +03:00
Luqman Aden
f04474c3b4 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
Nathan Froyd
a7eb97f896 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
Aryeh Gregor
195ee54544 Bug 765595 part 4 - Make nsEditor::DoAfter*Transaction infallible; r=ehsan 2012-07-05 10:45:09 +03:00
Aryeh Gregor
c91fcaf3b7 Bug 765595 part 3 - Make PeekUndoStack/PeekRedoStack infallible; r=ehsan 2012-06-19 16:23:36 +03:00
Aryeh Gregor
09a0d8a8a6 Bug 765595 part 2 - De-COMtaminate nsEditor::mTxnMgr; r=ehsan 2012-06-19 16:23:36 +03:00
Aryeh Gregor
8bc8a569ed Bug 765595 part 1 - Clean up nsEditor::DoTransaction; r=ehsan 2012-06-19 16:23:36 +03:00
Aryeh Gregor
e89f0d1d6d Bug 766025 - Remove incorrect assert in DeleteTextTxn::Init; r=ehsan 2012-06-19 16:21:48 +03:00
Aryeh Gregor
05ec8ced0c Bug 768765 - Fix assert in nsEditor::DeleteSelectionAndPrepareToCreateNode; r=ehsan 2012-07-02 16:31:49 +03:00
Aryeh Gregor
41444ebe91 Bug 769967 part 4 - Rename DeleteElementTxn to DeleteNodeTxn; r=ehsan
--HG--
rename : editor/libeditor/base/DeleteElementTxn.cpp => editor/libeditor/base/DeleteNodeTxn.cpp
rename : editor/libeditor/base/DeleteElementTxn.h => editor/libeditor/base/DeleteNodeTxn.h
2012-06-19 16:23:36 +03:00
Aryeh Gregor
9e45933575 Bug 769967 part 3 - Clean up DeleteElementTxn and nsEditor::DeleteNode; r=ehsan 2012-06-19 16:23:36 +03:00
Aryeh Gregor
ddc08396b9 Bug 769967 part 2 - Clean up nsEditor::GetNodeLocation; r=ehsan 2012-07-02 15:07:57 +03:00
Aryeh Gregor
e44ac36034 Bug 769967 part 1 - Clean up nsEditor::GetChildOffset; r=ehsan 2012-07-02 14:42:19 +03:00
Aryeh Gregor
596a599bd8 Bug 768748 part 1 - Clean up nsHTMLEditor::IsNext/PrevCharWhitespace; r=ehsan 2012-07-01 14:07:16 +03:00
Ed Morley
bb3f6c2bad Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-07-02 10:03:16 +01:00
Ms2ger
6529faea6d Bug 770013 - Cleanup NodeIsBlockStatic/IsBlockNode a bit; r=ehsan 2012-07-01 21:53:16 +02:00
David Zbarsky
ae718ee1c0 Bug 763350 - Clean up some includes in content/ and dom/ r=smaug 2012-07-01 16:45:59 -07:00
Aryeh Gregor
3e9c8587b9 Bug 766845 part 3 - Fix assertion in DeleteRangeTxn; r=ehsan,surkov 2012-06-25 14:44:40 +03:00
Aryeh Gregor
9ef585c26d Bug 766845 part 1 - Clean up DeleteRangeTxn; r=ehsan 2012-06-25 13:22:49 +03:00
Jonathan Watt
6380335603 Bug 767388 - Kill NS_DEBUG. r=bz.
--HG--
extra : rebase_source : d045208a26345712dbb4628c973c616cd9504f28
2012-06-25 20:59:42 +01:00
Aryeh Gregor
8de5177c67 Bug 766360 - Rewrite nsEditor::DeleteSelectionAndPrepareToCreateNode; r=ehsan 2012-06-21 15:54:26 +03:00
Aryeh Gregor
daea0d4fbf Bug 760052 - execCommand() should abort and return false for disabled commands; r=ehsan 2012-06-21 15:05:24 +03:00
Aryeh Gregor
f4aa9bb43b Back out 66b3801292a0 for test failures 2012-06-24 10:30:13 +03:00
Aryeh Gregor
718762dae4 Bug 766360 - Rewrite nsEditor::DeleteSelectionAndPrepareToCreateNode; r=ehsan 2012-06-21 15:54:26 +03:00
Aryeh Gregor
e8463207f1 Bug 766305 - WSFragment should use PRInt32 for offsets, not PRInt16; r=ehsan 2012-06-24 09:54:42 +03:00
Aryeh Gregor
78c9af52bc Bug 766413 - Fix crash in nsEditor::CreateTxnForDeleteInsertionPoint; r=ehsan on a CLOSED TREE 2012-06-20 15:48:02 +01:00
Aryeh Gregor
b1c8f77493 Bug 762183 part 5 - Fix misleading comments/variable names; r=ehsan 2012-06-13 18:38:05 +03:00
Aryeh Gregor
9395a049ae Bug 762183 part 4 - Fix assertion in DeleteTextTxn::Init; r=ehsan 2012-06-12 19:05:27 +03:00
Aryeh Gregor
d99bb584ed Bug 762183 part 3 - Clean up some nsEditor methods; r=ehsan 2012-06-12 18:44:44 +03:00
Aryeh Gregor
2879091bf6 Bug 762183 part 1 - Clean up DeleteTextTxn; r=ehsan 2012-06-08 12:58:29 +03:00
Aryeh Gregor
7005254f4f Bug 763283 part 2 - Use nsINode::AsContent() in editor/; r=ehsan 2012-06-10 15:39:21 +03:00
Ryan VanderMeulen
bf2b50270d Merge m-c to inbound 2012-06-10 17:59:00 -04:00
Olli Pettay
ac6b89bfdb Bug 761613 - Merge nsIPrivateDOMEvent to nsIDOMEvent, r=jst 2012-06-10 21:14:30 +03:00
Aryeh Gregor
6865bb0c16 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
43b3bdf8ac Bug 757771 part 3 - Include nsRange.h from nsTypedSelection.h 2012-06-07 18:00:58 +03:00
Ehsan Akhgari
c6218431ee Merge mozilla-central into mozilla-inbound 2012-06-06 12:46:50 -04:00
Ms2ger
1405bb4441 Bug 761297 - Followup: Fix build warning in opt builds. 2012-06-06 12:34:46 +02:00
Ms2ger
3018b53a7f Bug 761308 - Part b: Cleanup CreateElementTxn::DoTransaction(); r=ehsan 2012-06-06 09:41:51 +02:00
Ms2ger
0760b4100e Bug 761308 - Part a: Remove unnecessary assertion from CreateElementTxn::Init(); r=ehsan 2012-06-06 09:41:46 +02:00
Ms2ger
a8a4d62100 Bug 761299 - Cleanup DeleteRangeTxn::CreateTxnsToDeleteBetween; r=ehsan 2012-06-06 09:41:41 +02:00
Ms2ger
31d4a8943a Bug 761297 - Simplify debug code in DeleteRangeTxn::Init; r=ehsan 2012-06-06 09:41:35 +02:00
Ms2ger
ea3c39ba87 Bug 761296 - Cleanup InsertElementTxn::DoTransaction; r=ehsan 2012-06-06 09:41:30 +02:00
Ms2ger
251dc7b180 Bug 761288 - Cleanup JoinElementTxn::DoTransaction; r=ehsan 2012-06-06 09:41:22 +02:00
Ms2ger
4f0c76c829 Bug 756748 - Use nsIAtom and nsINode in nsHTMLEditRules::ConvertListType; r=ehsan 2012-06-06 09:36:46 +02:00
Ms2ger
30a9860b7d Bug 756758 - Use nsINode in nsEditor::ReplaceContainer; r=ehsan 2012-06-06 09:36:33 +02:00
Ms2ger
7a7a94f9d6 Bug 756754 - Part b: Use nsINode in nsEditor::InsertContainerAbove; r=ehsan 2012-06-06 09:36:12 +02:00
Ms2ger
b4027a20e9 Bug 756753 - Simplify nsHTMLEditRules::LookInsideDivBQandList, nsEditor::CountEditableChildren; r=ehsan 2012-06-06 09:36:07 +02:00
Ms2ger
45110b50cf Bug 756750 - Cleanup nsEditor::RemoveContainer; r=ehsan 2012-06-06 09:35:54 +02:00
Ms2ger
24cef0b1ea Bug 756754 - Part a: Return dom::Element* from CreateHTMLContent; r=ehsan 2012-06-06 09:35:47 +02:00
Aryeh Gregor
12c360bc6f Bug 760143 - Get rid of useless nsresult in editor/; r=ehsan 2012-06-01 14:03:17 +03:00
Aryeh Gregor
c986ade870 Bug 757371 part 3 - Reuse existing style elements more aggressively; r=ehsan 2012-05-29 10:12:51 +03:00
Aryeh Gregor
c1e77a8721 Bug 748307 part 5 - Support insertText, forwardDelete, insertParagraph per spec; r=ehsan 2012-05-22 12:37:17 +03:00
Aryeh Gregor
eb75258d5c Bug 748307 part 2 - Make WillDoAction take an nsTypedSelection; r=ehsan 2012-05-22 12:37:17 +03:00
Ehsan Akhgari
92fba010e4 Bug 741216 - Allow dropping files into the file picker control; r=bzbarsky 2012-04-02 16:25:09 -04:00
Laurent Dulary
09cc80dcb7 Bug 657938 (1/2) - Implement the content part of the meter element. f=mounir r=smaug,mrbkap 2012-05-16 13:18:33 +02:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Aryeh Gregor
e4cafc9e8b Bug 742240 - Handle unsupported commands per spec in execCommand/queryCommand*; r=ehsan 2012-04-15 15:57:20 +03:00
Ms2ger
cf59f6497e Merge m-c to m-i. 2012-05-18 13:32:20 +02:00
Ms2ger
f43fe0ad08 Bug 755311 - Simplify SetDocTitleTxn::SetDomTitle; r=ehsan 2012-05-18 10:29:40 +02:00
Ms2ger
63c3854253 Bug 755310 - Use nsINode::Length() in nsEditor::CreateTxnForDeleteInsertionPoint; r=ehsan 2012-05-18 10:29:40 +02:00
Ms2ger
982faa9b00 Bug 752253 - Remove nsEditor::GetIndexOf; r=ehsan 2012-05-18 10:29:39 +02:00
Ms2ger
72e09057b5 Bug 750053 - Part b: Stop using nsISelection::GetIsCollapsed in editor/libeditor; r=ehsan 2012-05-18 10:29:39 +02:00
Ms2ger
9e0530fc9a Bug 752203 - Cleanup nsEditor::NodesSameType; r=ehsan 2012-05-18 10:29:38 +02:00
Ms2ger
4d1dcb2be8 Bug 752045 - Handle document fragments correctly in *CanContain* methods; r=ehsan 2012-05-18 10:29:38 +02:00
Aryeh Gregor
794a3e5f1b Bug 590640 part 5 - Delete empty wrappers when we delete the selection; r=ehsan 2012-05-10 17:54:33 +03:00
Aryeh Gregor
81df634941 Bug 756045 - Turn "ASSERTION: anonymous nodes should not be in child lists" into an NS_WARNING; r=bz 2012-05-18 09:20:49 +03:00
Ehsan Akhgari
d50878a182 Bug 612128 - Prevent the editor from modifying nodes which are not under an editing host; r=roc,bzbarsky
This patch ensures that the NODE_IS_EDITABLE flag is only set on nodes living
under an editing host.  Things like text controls which used to have that flag
previously will not have it any more.  The flag would be set on their anonymous
div node instead.  Note that if text controls actually fall under an editing
host, they will get the NODE_IS_EDITABLE flag.

This patch also makes nsHTMLEditor::IsEditable return sane results (text nodes
are always considered to be editable).
2010-11-16 15:45:49 -05:00
Aryeh Gregor
ba69aaa763 Bug 700538 part 4 - Remove now-redundant nsHTMLEditor::IsNodeInActiveEditor; r=ehsan 2012-05-06 10:53:11 +03:00
Aryeh Gregor
c2fb29a4a2 Bug 700538 part 3 - Add and use new EditorRoot methods in nsEditor; r=ehsan 2012-05-06 10:53:11 +03:00
Aryeh Gregor
3af9ba928a Bug 700538 part 1 - Name some nsEditor methods more consistently; r=ehsan 2012-05-01 13:01:28 +03:00
Aryeh Gregor
80c985d67f Bug 751547 - Unify action enums in editor/; r=ehsan 2012-05-05 21:52:29 +03:00
Ms2ger
125c939be4 Bug 750103 - Cleanup nsEditor::EndOfDocument(); r=ehsan 2012-05-05 11:00:06 +02:00
Ms2ger
4df91dc293 Bug 750062 - Assert preconditions in IsVisTextNode; r=ehsan 2012-05-05 11:00:06 +02:00
Ms2ger
552a17939d Bug 750064 - Add some GetPriorNode/GetNextNode overloads that take nsINode; r=ehsan 2012-05-05 11:00:05 +02:00
Aryeh Gregor
e61ab6cba6 Bug 748313 part 2 - Always try to use CSS values, even for collapsed selections; r=ehsan 2012-05-03 10:09:44 +03:00
Aryeh Gregor
a685451510 Bug 746915 part 1 - Move editing-related tests to editor/ directories; r=ehsan
--HG--
rename : content/html/content/test/test_bug408231.html => editor/libeditor/base/tests/test_bug408231.html
rename : content/html/document/test/test_bug742261.html => editor/libeditor/base/tests/test_bug742261.html
rename : content/html/document/test/test_bug404320.html => editor/libeditor/html/tests/test_bug404320.html
rename : content/html/document/test/test_bug468353.html => editor/libeditor/html/tests/test_bug468353.html
rename : layout/reftests/bugs/388980-1-ref.html => layout/reftests/editor/388980-1-ref.html
rename : layout/reftests/bugs/388980-1.html => layout/reftests/editor/388980-1.html
2012-05-03 10:09:44 +03:00
Aryeh Gregor
01a3e98230 Bug 748303 part 3 - Convert (Tag)CanContain(Tag) to nsIAtom*; r=ehsan 2012-05-01 09:34:52 +03:00
Aryeh Gregor
a949fda3e3 Bug 748303 part 2 - Handle non-text/elements correctly when calling (Tag)CanContain(Tag); r=ehsan 2012-05-01 09:34:52 +03:00
Jared Wein
1504e6e3d5 Bug 702463 - Increasing the timeout of the tests due to the presence of multiple refresh drivers. r=ehsan 2012-04-30 13:44:55 -04:00
Graeme McCutcheon
09036b4c86 No bug - annoying comment typo in nsEditorEventListener.cpp DONTBUILD 2012-04-26 08:51:10 +01:00
Masayuki Nakano
ba56663cd3 Bug 630811 part.2 Replace nsInputEvent::isShift, nsInputEvent::isControl, nsInputEvent::isAlt and nsInputEvent::isMeta r=smaug 2012-04-25 12:00:02 +09:00
Ehsan Akhgari
9780e4893b Bug 748223 - Pack nsEditor better; r=roc 2012-04-24 00:54:11 -04:00
Ehsan Akhgari
5cd881d802 Backed out changeset 3e6ca2158274 because of build bustage 2012-04-24 12:16:34 -04:00
Ehsan Akhgari
bd4140a99d Bug 748223 - Pack nsEditor better; r=roc 2012-04-24 00:54:11 -04:00
Aryeh Gregor
6ed928a21d Bug 599983 part 2 - Don't emit or process _moz_dirty more than necessary; r=ehsan,bz 2012-04-24 09:06:11 +03:00
Aryeh Gregor
fc86041529 Bug 599983 part 1 - Clean up nsEditor::MarkNodeDirty; r=ehsan 2012-04-24 09:06:11 +03:00
Veeraya Pupatwibul
1bdf9d9923 Bug 741333 - Remove PRBool/PR_TRUE/PR_FALSE that crept in r=Ms2ger 2012-04-04 11:15:10 +02:00
Aryeh Gregor
2c1ee92a02 Bug 738366 - Default styleWithCSS to false; r=ehsan 2012-04-03 17:16:05 +03:00
Ms2ger
9427a8db0d Bug 738608 - Introduce nsINode::Length(); r=smaug 2012-03-29 23:09:04 +02:00
Masayuki Nakano
2ab8e3fb4a Bug 668606 input event should be fired on all editors r=ehsan+smaug, sr=smaug 2012-03-27 10:36:44 +09:00
Matt Brubeck
f83a9ab93e Merge mozilla-central and mozilla-inbound 2012-03-24 09:05:27 -07:00
Ms2ger
a033505149 Bug 738771 - Outparamdel nsEditor::GetDocument(); r=ehsan 2012-03-24 09:19:14 +01:00
Ehsan Akhgari
90f09f9955 Bug 737889 - Part 2: Stop the propagarion of drag/drop events over non-editable content; r=roc 2012-03-23 11:35:40 -04:00
Ehsan Akhgari
5f3425b10d Bug 734530 - Spell check textareas if they're reframed when focused; r=roc
--HG--
rename : layout/reftests/editor/spellcheck-textarea-focused.html => layout/reftests/editor/spellcheck-textarea-focused-reframe.html
2012-03-19 12:21:56 -04:00
Richard Newman
f8f9fa6f5d Merge m-c to m-i. 2012-02-23 18:37:12 -08:00
Richard Newman
85840c2035 Merge last win pgo-green changeset from m-i to m-c. 2012-02-23 18:35:17 -08:00
Matthew Schranz
7e8fb26c1e Bug 698381 - Make Node.cloneNode aDeep argument optional, default to true. r=smaug 2012-02-23 14:23:30 +01:00
Olli Pettay
6139688226 Bug 730013 - don't addref/release nsTransactionManager so much to prevent it to end up to the purple buffer, r=ehsan 2012-02-23 22:47:37 +02:00
Neil Deakin
0f1521a84c Bug 499008, part 6, editor drag drop tests, r=ehsan 2012-02-17 09:16:59 -05:00
Neil Deakin
3a318c367e Bug 499008, part 5, merge the text and html implementations of InsertFromDrop, r=ehsan 2012-02-17 09:16:59 -05:00
Neil Deakin
ed4ec92cee 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
de5e8ee45b Bug 499008, part 2, move editor dragstart handling to ContentAreaDragDrop, r=ehsan 2012-02-17 09:16:59 -05:00
Neil Deakin
ede7023feb Bug 728652, null check return value of MozGetDataAt, r=ehsan 2012-02-23 15:59:45 -05:00
Daniel Holbert
706eb31699 Bug 458167 patch 6: s/it's/its/ in comments within editor. r=ehsan 2012-02-15 01:18:24 -08:00
Ehsan Akhgari
370cc1fde8 Bug 725069 - Part 2: Only accept text and element nodes for the editability check; r=roc 2012-02-08 18:09:51 -05:00
Ehsan Akhgari
a802e7dffa Bug 725069 - Never mark the comment nodes as editable; r=roc 2012-02-07 18:39:05 -05:00
Neil Deakin
cb7c3c2729 Bug 707382, merge nsIDOMDataTransfer and nsIDOMNSDataTransfer, r=jonas 2012-02-07 13:02:32 -05:00
Panagiotis Koutsourakis
791aa57b19 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
1c2ff7f87b Bug 720974 - Remove IsMozEditorBogusNode(nsIDOMNode*); r=ehsan 2012-02-01 11:54:22 +01:00
Ms2ger
cc91aec3cf Bug 722419 - Part b: BeginningOfDocument / GetFirstEditableNode; r=ehsan 2012-02-01 11:54:22 +01:00