Bobby Holley
5af5a73d3d
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
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
b5e6628199
Bug 791907 - Remove prtypes.h #includes in editor/; r=jrmuizel
...
--HG--
extra : rebase_source : 93c2e11edeaa2f7275302a2c7499aa09c330da14
2012-09-17 22:58:51 -04:00
Aryeh Gregor
1abd4f03af
Bug 788950 - Prevent mRules from dying in DoInsertHTMLWithContext; r=ehsan
2012-09-16 13:13:31 +03:00
Andrew McCreight
1c528bccf1
Bug 775868 - fix more tests. r=bholley
2012-09-10 12:44:29 -07:00
Neil Deakin
59e5916a21
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
d06a20d381
Bug 785131 - Don't process any node when aChildrenOnly is set; r=ehsan
2012-08-23 12:17:43 -05:00
Abhishek Potnis
699ad0df14
Bug 777925 : Removes HTML editor logging support; r=ehsan
2012-09-04 21:18:59 +05:30
Randell Jesup
29ac5c0b8c
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
2012-09-01 22:35:17 -04:00
Ehsan Akhgari
50220bae33
Bug 785574 - Add a script blocker in nsHTMLEditor::SetAttributeOrEquivalent; r=bzbarsky
2012-08-29 16:43:32 -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
Isaac Aggrey
2538067979
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
Kent James
d99d32e97c
Bug 780908 - Fix crash in editor with head after body. r=ehsan
2012-08-17 08:39:52 -07: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
3304e571cb
Bug 782252 - Cast NS_ENUMERATOR_FALSE to nsresult; r=ehsan
2012-08-07 17:54:44 +03:00
Aryeh Gregor
982100775b
Bug 780618 - Move all error codes to nsError.h; r=ehsan
2012-07-27 17:03:27 +03:00
Aryeh Gregor
f3f6d013cb
Bug 780035 - Don't cache font-style as CSS; r=ehsan
2012-08-14 12:10:43 +03:00
Aryeh Gregor
f9b558f81c
Bug 751554 part 5 - Rename OperationID to EditAction; r=ehsan
2012-08-12 21:28:26 +03:00
Ed Morley
6f3226343f
Merge mozilla-central to mozilla-inbound
2012-08-09 12:51:21 +01:00
Ed Morley
991653b152
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-08-09 12:46:05 +01:00
Ms2ger
de02017227
Bug 780502 - Remove unsound assertion; r=ehsan
2012-08-09 09:20:11 +02:00
Ms2ger
47bb1e7649
Bug 179956 - Remove unsound assertion; r=ehsan
2012-08-09 09:20:06 +02:00
Ms2ger
def458727b
Bug 461440 - Remove unsound assertion; r=ehsan
2012-08-09 09:20:01 +02:00
Aryeh Gregor
4606a0dcdd
Bug 778428 - Refcount arrays of nodes in editor/; r=ehsan
2012-08-01 11:17:51 +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
Bobby Holley
943789da00
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
60fc0f1ee6
Bug 778420 - Initial stab at the tests. v2 r=bholley
...
--HG--
extra : rebase_source : c24abc031c82a87f2f669e4b708f8ee364a9682b
2012-08-06 22:15:49 +02:00
Ms2ger
cb4d106015
Bug 716822 - Move attributes and methods on nsIDOMNSEvent to nsIDOMEvent; r=smaug
2012-08-04 09:44:00 +02:00
Mike Hommey
c1b35e7b2a
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted
2012-08-04 20:26:44 +02:00
Ed Morley
4eb11bee72
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
b927c10310
Bug 716822 - Move attributes and methods on nsIDOMNSEvent to nsIDOMEvent; r=smaug
2012-08-04 09:44:00 +02:00
Aryeh Gregor
2e7996f8d1
Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan
2012-07-27 16:59:29 +03:00
Aryeh Gregor
15948adb1f
Bug 291789 part 3 - Try not to ever delete across table boundaries; r=ehsan
2012-07-27 17:03:28 +03:00
Aryeh Gregor
50c71e5430
Bug 291789 part 2 - Clean up nsHTMLEditRules::InDifferentTableElements; r=ehsan
2012-07-27 17:03:28 +03:00
Aryeh Gregor
bcae4447b0
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
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
43d640b048
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
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
4e600e3af2
Bug 776323 part 2 - Clean up nsSelectionState::SaveSelection; r=ehsan
2012-07-23 13:27:22 +03:00
Aryeh Gregor
918b41fe77
Bug 772332 part 1 - Make nsWSRunObject's type enum type-safe; r=ehsan
2012-07-13 09:33:43 +03:00
Aryeh Gregor
6ac2e9b0e4
Bug 775552 - Don't access siblings of nodes that might be deleted; r=ehsan
2012-07-13 09:33:42 +03:00
Aryeh Gregor
6afedf732a
Bug 768756 part 4 - Clean up nsHTMLCSSUtils::GetCSSInlinePropertyBase; r=ehsan
2012-07-08 13:31:53 +03:00
Aryeh Gregor
3f9e983ef3
Bug 768756 part 3 - Get rid of nsHTMLCSSUtils::GetDefaultViewCSS; r=ehsan
2012-07-08 12:50:31 +03:00
Aryeh Gregor
7a72ed38f8
Bug 768756 part 1 - Use enum in nsHTMLCSSUtils for computed/specified style; r=ehsan
2012-07-06 14:50:07 +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
Jared Wein
c186c238d0
Bug 754169 - Fix intermittent orange related to imprecise scrolling positions in test. r=ehsan
2012-07-17 11:40:49 -04:00
Ed Morley
ab974a862e
Backout 6ceeca8b4b73 (bug 772332), ce5629b973e4, 1dcff1db63b4, 108d06ef7755 & 7bf6519b3f43 (bug 768756) for bustage
2012-07-15 11:42:31 +01:00
Aryeh Gregor
2c4293c357
Bug 772332 part 1 - Don't access siblings of nodes that might be deleted; r=ehsan
2012-07-13 09:33:42 +03:00
Aryeh Gregor
883c09e141
Bug 768756 part 4 - Clean up nsHTMLCSSUtils::GetCSSInlinePropertyBase; r=ehsan
2012-07-08 13:31:53 +03:00
Aryeh Gregor
ad632e6bc8
Bug 768756 part 3 - Get rid of nsHTMLCSSUtils::GetDefaultViewCSS; r=ehsan
2012-07-08 12:50:31 +03:00
Aryeh Gregor
bc3c05c246
Bug 768756 part 1 - Use enum in nsHTMLCSSUtils for computed/specified style; r=ehsan
2012-07-06 14:50:07 +03: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
Aryeh Gregor
4fe4e6539d
Bug 771994 - Make nsRangeStore refcounted; r=ehsan
2012-07-13 09:31:15 +03:00
Ehsan Akhgari
3591cf9669
Bug 772346 - Hold a strong ref to the child node in nsHTMLEditRules::DeleteNonTableElements; r=roc
...
--HG--
extra : rebase_source : 45e35f3c2ce9513a3e48fb801403ff59c0562412
2012-07-10 16:06:48 -04: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
Aryeh Gregor
66e50b4b82
Bug 767169 part 3 - Use script runner for nsHTMLEditor::ResetRootElementAndEventTarget; r=ehsan,bz
2012-07-05 10:45:08 +03:00
Aryeh Gregor
383608c823
Bug 765595 part 2 - De-COMtaminate nsEditor::mTxnMgr; r=ehsan
2012-06-19 16:23:36 +03:00
Aryeh Gregor
cd62d0322c
Bug 769967 part 5 - Don't special-case -moz-user-select: all elements for deletion; r=ehsan
2012-07-02 16:25:33 +03:00
Aryeh Gregor
18fa0731af
Bug 767684 Test to prevent regression from bug 752210 happening again r=ehsan
2012-07-05 21:35:10 +01:00
Neil Rashbrook
15d0c6dd6c
Bug 767684 Fix regression from bug 752210 r=ehsan
2012-07-05 21:33:10 +01:00
Aryeh Gregor
158c6a92b5
Backed out changeset f49e52ee86f3, insufficient review
2012-07-05 11:51:18 +03:00
Aryeh Gregor
a718fdad44
Bug 767169 part 3 - Use script runner for nsHTMLEditor::ResetRootElementAndEventTarget; r=ehsan
2012-07-05 10:45:08 +03:00
Aryeh Gregor
34bda3a6b6
Bug 769967 part 2 - Clean up nsEditor::GetNodeLocation; r=ehsan
2012-07-02 15:07:57 +03:00
Aryeh Gregor
59797949ac
Bug 769967 part 1 - Clean up nsEditor::GetChildOffset; r=ehsan
2012-07-02 14:42:19 +03:00
Aryeh Gregor
5dc7614205
Bug 768748 part 2 - Rewrite nsHTMLEditRules::GetPromotedPoint; r=ehsan
2012-07-01 14:53:45 +03:00
Aryeh Gregor
6ddc2a97b5
Bug 768748 part 1 - Clean up nsHTMLEditor::IsNext/PrevCharWhitespace; r=ehsan
2012-07-01 14:07:16 +03:00
Ehsan Akhgari
2e13064d3a
Merge backout of DLBI from mozilla-central
2012-07-03 20:53:08 -04:00
Ehsan Akhgari
52053459a3
Bug 330868 - Fall back to assuming that we have retrieved HTML data from the clipboard if it lies to us saying that it has returned CF_HTML; r=roc
2012-07-03 20:44:46 -04:00
Ehsan Akhgari
729030ee5b
Backout changeset e04abde1b323 (bug 539356) because of performance and correctness regressions
2012-07-03 20:21:03 -04:00
Ehsan Akhgari
7cfd589dca
Backed out changeset 0f1a8f17bfdf because the patch was not reviewed!
2012-07-03 18:04:35 -04:00
Ehsan Akhgari
0897eb962f
Bug 330868 - Fall back to assuming that we have retrieved HTML data from the clipboard if it lies to us saying that it has returned CF_HTML; r=roc
2012-07-03 18:03:22 -04:00
Ed Morley
b0cc4dae44
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-07-02 10:03:16 +01:00
Ms2ger
26b13a6a2d
Bug 770013 - Cleanup NodeIsBlockStatic/IsBlockNode a bit; r=ehsan
2012-07-01 21:53:16 +02:00
David Zbarsky
cd3c58ee76
Bug 763350 - Clean up some includes in content/ and dom/ r=smaug
2012-07-01 16:45:59 -07:00
Aryeh Gregor
fe8e98a3f0
Bug 767169 part 2 - Handle lastCandidate being null in nsContentSubtreeIterator::Init; r=bz
2012-06-28 14:29:56 +03:00
Ehsan Akhgari
2df811342b
Bug 769008 - Don't pass a null node to GetBlockNodeParent; r=roc
2012-06-29 18:43:08 -04:00
Matt Woodrow
4b10a2b53c
Bug 539356 - Part 10 - Test changes required for DLBI. r=roc
2012-06-30 15:06:11 +12: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
Jonathan Watt
9ac7bb2267
Bug 767388 - Kill NS_DEBUG. r=bz.
...
--HG--
extra : rebase_source : d045208a26345712dbb4628c973c616cd9504f28
2012-06-25 20:59:42 +01:00
Aryeh Gregor
b89be6ee43
Bug 766387 - Make editing commands disabled in more cases; r=ehsan
2012-06-24 17:39:11 +03:00
Aryeh Gregor
c3c04b9ab7
Bug 766360 - Rewrite nsEditor::DeleteSelectionAndPrepareToCreateNode; r=ehsan
2012-06-21 15:54:26 +03:00
Aryeh Gregor
746e74a592
Bug 760052 - execCommand() should abort and return false for disabled commands; r=ehsan
2012-06-21 15:05:24 +03:00
Aryeh Gregor
b1a4eb7966
Back out bac4434b31d2 for test failures
2012-06-24 10:30:34 +03:00
Aryeh Gregor
da0b199401
Back out 66b3801292a0 for test failures
2012-06-24 10:30:13 +03:00
Aryeh Gregor
e6e1d6b4e8
Bug 766795 - Fix asserts when placing cursor in editable detached content; r=roc,ehsan
2012-06-24 09:54:43 +03:00
Aryeh Gregor
915bf0a509
Bug 766387 - Make editing commands disabled in more cases; r=ehsan
2012-06-24 09:54:43 +03:00
Aryeh Gregor
719b1e1343
Bug 766360 - Rewrite nsEditor::DeleteSelectionAndPrepareToCreateNode; r=ehsan
2012-06-21 15:54:26 +03:00
Aryeh Gregor
d6b1883aab
Bug 766305 - WSFragment should use PRInt32 for offsets, not PRInt16; r=ehsan
2012-06-24 09:54:42 +03:00
Ms2ger
5d70833a3d
Bug 761997 - Cleanup nsHTMLEditRules::GetListItemState / nsHTMLEditRules::GetDefinitionListItemTypes; r=ehsan
2012-06-17 10:11:16 +02:00
Henri Sivonen
3800ba18ca
Bug 750096. r=bzbarsky.
2012-06-14 09:14:47 +03:00
Aryeh Gregor
24223d582e
Bug 763283 part 2 - Use nsINode::AsContent() in editor/; r=ehsan
2012-06-10 15:39:21 +03:00
Ed Morley
7d13aab294
Backout 61fd66629c4f, 7c8121f8d3af & 2a2e9cf8fd41 (bug 539356), e31a5e6545d3 (bug 761884), 85fa80bd9792, a284ccb25b83, 2865904db9fc, 34e07b09c426, e9b3d41e0360, cef00ebcd6c8, f943b729ac14 & 783f298401b6 (bug 539356), 330a086f1570 (bug 741682), d80219c8842c (bug 739671), e8c96b4fd4da, 313af486e68d, 0adc41ff56dc, 0cd288a38085, f1d43208825c, 4859876972f3, eec8ef3ebe48, f7f29fcd1845, 6079b229d306, f23c3a7e7ce0, 9824458a41e2 & 6748b5496059 (bug 539356) for mochitest-4 orange & talos regressions on multiple platforms
2012-06-11 10:08:32 +01:00
Matt Woodrow
aee92f1d56
Bug 539356 - Part 10 - Test changes required for DLBI. r=roc
2012-06-11 16:45:38 +12:00
Ryan VanderMeulen
846a6a41bf
Merge m-c to inbound
2012-06-10 17:59:00 -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
Ehsan Akhgari
d8e8691a41
Bug 761051 - Use image/jpeg as the standard internal transferable image type, but continue respecting image/jpg as well; r=roc
2012-06-07 19:27:07 -04:00
Ehsan Akhgari
cc9274685a
Backout changeset 125438dda903 (bug 761051) because of Bq bustage
2012-06-07 19:49:37 -04:00
Ehsan Akhgari
56d6ff421f
Bug 761051 - Use image/jpeg as the standard internal transferable image type, but continue respecting image/jpg as well; r=roc
2012-06-07 19:27:07 -04:00
Aryeh Gregor
83c8a8199f
Bug 762430 - Fix uninitialized nsresult in nsHTMLEditor::AbsolutelyPositionElement; r=ehsan
2012-06-07 18:00:58 +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
Aryeh Gregor
d8b4f737c1
Bug 761861 - Fix crash in nsHTMLEditor::DeleteSelectionImpl; r=ehsan
2012-06-06 14:19:16 +03:00
Laurent Dulary
7b00eb233d
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
Ms2ger
35add823ec
Bug 761313 - Simplify nsHTMLEditRules::RemoveBlockStyle; r=ehsan
2012-06-06 09:41:56 +02:00
Ms2ger
a64b2fedd6
Bug 756819 - Use dom::Element for the result of GetElementParent; r=ehsan
2012-06-06 09:36:52 +02:00
Ms2ger
a9fb7b8118
Bug 756748 - Use nsIAtom and nsINode in nsHTMLEditRules::ConvertListType; r=ehsan
2012-06-06 09:36:46 +02:00
Ms2ger
56fd08f678
Bug 756757 - Use nsINode in nsHTMLEditor::MergeCells; r=ehsan
2012-06-06 09:36:28 +02:00
Ms2ger
b70ade720f
Bug 756755 - Cleanup nsHTMLEditor::SetInlinePropertyOnNodeImpl; r=ehsan
2012-06-06 09:36:17 +02:00
Ms2ger
fade6304fe
Bug 756753 - Simplify nsHTMLEditRules::LookInsideDivBQandList, nsEditor::CountEditableChildren; r=ehsan
2012-06-06 09:36:07 +02:00
Ms2ger
00749cb54a
Bug 756752 - Remove nsHTMLEditor::IsContainer(nsINode*); r=ehsan
2012-06-06 09:36:00 +02: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
Aryeh Gregor
fee4e249e2
Bug 757371 part 4 - Do not insert style tags if the style is already applied; r=ehsan
2012-05-23 10:49:29 +03:00
Aryeh Gregor
0366e557db
Bug 757371 part 3 - Reuse existing style elements more aggressively; r=ehsan
2012-05-29 10:12:51 +03:00
Aryeh Gregor
72c58a01c7
Bug 757371 part 2 - Improve correctness of nsHTMLCSSUtils::IsCSSEquivalentToHTMLInlineStyleSet; r=ehsan
2012-05-28 14:20:27 +03:00
Aryeh Gregor
045e52b132
Bug 757371 part 1 - Clean up nsHTMLEditRules::ReapplyCachedStyles; r=ehsan
2012-05-22 13:15:09 +03:00
Ehsan Akhgari
1c696ea975
Bug 760583 - Null check the selection parameter passed to WillDoAction properly; rs=mconley
2012-06-01 16:36:09 -04:00
Aryeh Gregor
00a3b3b99b
Bug 759748 - Crash in nsHTMLEditRules::WillDoAction; r=ehsan
2012-05-31 21:23:07 +03:00
Aryeh Gregor
626faeaf0f
Bug 748307 part 5 - Support insertText, forwardDelete, insertParagraph per spec; r=ehsan
2012-05-22 12:37:17 +03: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
Aryeh Gregor
1a3922499a
Bug 742240 - Handle unsupported commands per spec in execCommand/queryCommand*; r=ehsan
2012-04-15 15:57:20 +03:00
Ms2ger
faa0b8ae7d
Merge m-c to m-i.
2012-05-18 13:32:20 +02:00
Ms2ger
9f7812a906
Bug 755264 - Use nsINode in nsHTMLEditRules::DeleteNonTableElements; r=ehsan
2012-05-18 10:29:39 +02:00
Ms2ger
198ce62511
Bug 755243 - Use nsINode in nsHTMLEditRules::AppendInnerFormatNodes; r=ehsan
2012-05-18 10:29:39 +02:00
Ms2ger
77b8172abf
Bug 755204 - Use nsINode::GetChildCount() in nsHTMLEditRules::MakeSureElemStartsOrEndsOnCR; r=ehsan
2012-05-18 10:29:39 +02:00
Ms2ger
8ec42fbe0b
Bug 755202 - Simplify GetChildNodesForOperation; r=ehsan
2012-05-18 10:29:39 +02:00
Ms2ger
3b577015ad
Bug 755200 - Simplify SetSelectionAroundHeadChildren; r=ehsan
2012-05-18 10:29:39 +02:00
Ms2ger
96284cb920
Bug 752210 - Part c: Use nsIContent in nsHTMLEditor::RelativeFontChange; r=ehsan
2012-05-18 10:29:39 +02:00
Ms2ger
23cb3a297e
Bug 752210 - Part b: Use nsIContent in nsHTMLEditor::RelativeFontChangeOnNode; r=ehsan
2012-05-18 10:29:39 +02:00
Ms2ger
97914fe9d1
Bug 752210 - Part a: Use nsIContent in nsHTMLEditor::RelativeFontChangeHelper; r=ehsan
2012-05-18 10:29:39 +02:00
Ms2ger
a0a34e3718
Bug 752209 - Use nsINode::GetChildCount() in nsHTMLEditor::AbsolutelyPositionElement; r=ehsan
2012-05-18 10:29:39 +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
Ms2ger
0d5cf8fa45
Bug 752203 - Cleanup nsEditor::NodesSameType; r=ehsan
2012-05-18 10:29:38 +02:00
Aryeh Gregor
4dc711d954
Bug 590640 part 7 - Preserve type-in state when performing block commands; r=ehsan
2012-05-06 10:53:11 +03:00
Aryeh Gregor
697c7ef005
Bug 590640 part 6 - Don't create empty style tags unless we're about to insert text in them; r=ehsan
2012-05-10 15:00:14 +03: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
67fa5ae00d
Bug 590640 part 2 - Remove dead code; r=ehsan
2012-05-09 12:45:21 +03:00
Aryeh Gregor
4a1d01b6a6
Bug 590640 part 1 - Clean up some nsHTMLEditRules methods; r=ehsan
2012-05-09 08:24:07 +03:00
Aryeh Gregor
7cb03d1868
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
2be6b796b2
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
4eab9ca44b
Bug 752304 - Logic error in nsHTMLEditor::SetInlinePropertyOnNodeImpl; r=ehsan
2012-05-07 08:54:54 +03:00
Aryeh Gregor
eb33f59b5f
Bug 700538 part 4 - Remove now-redundant nsHTMLEditor::IsNodeInActiveEditor; r=ehsan
2012-05-06 10:53:11 +03:00
Aryeh Gregor
2ce277835c
Bug 700538 part 3 - Add and use new EditorRoot methods in nsEditor; r=ehsan
2012-05-06 10:53:11 +03:00
Aryeh Gregor
3c77c5664c
Bug 700538 part 2 - Make methods that return editing hosts return dom::Element* instead of nsIContent*; r=ehsan
2012-05-06 10:53:11 +03:00
Aryeh Gregor
e17949e50b
Bug 700538 part 1 - Name some nsEditor methods more consistently; r=ehsan
2012-05-01 13:01:28 +03:00
Aryeh Gregor
cb28d967ce
Bug 751547 - Unify action enums in editor/; r=ehsan
2012-05-05 21:52:29 +03:00
Ms2ger
9f3641f0f6
Bug 751323 - Cleanup nsHTMLEditRules::RemoveEmptyNodes(); r=ehsan
2012-05-05 11:00:06 +02:00
Ms2ger
f27bb86c9a
Bug 750062 - Assert preconditions in IsVisTextNode; r=ehsan
2012-05-05 11:00:06 +02:00
Ms2ger
8d98196bf0
Bug 750085 - Pass nsIContent to SetInlinePropertyOnNodeImpl and use nsINode APIs to iterate over children; r=ehsan
2012-05-05 11:00:06 +02:00
Ms2ger
168e65323f
Bug 750079 - Part c: Pass nsIContent to nsHTMLEditor::HasAttrVal; r=ehsan
2012-05-05 11:00:06 +02:00
Ms2ger
b6b5f01a68
Bug 750079 - Part b: Return nsIContent from GetPriorHTMLSibling/GetNextHTMLSibling; r=ehsan
2012-05-05 11:00:06 +02:00
Ms2ger
93937bfab0
Bug 750079 - Part a: Add IsOnlyAttribute(nsIContent*, const nsAString&); r=ehsan
2012-05-05 11:00:06 +02:00
Ms2ger
94020e23a5
Bug 749329 - Cleanup TypeInState; r=ehsan
2012-05-05 11:00:06 +02:00
Ms2ger
a015bced9a
Bug 750063 - Allow passing null to nsTextEditRules::CreateMozBR's outparam; r=ehsan
2012-05-05 11:00:05 +02:00
Aryeh Gregor
4f8b1fc26d
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
33e66eaeff
Bug 748313 part 1 - Remove unused argument to nsHTMLEditor::IsTextPropertySetByContent; r=ehsan
2012-05-03 10:09:44 +03:00
Aryeh Gregor
a6483f6245
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
00a49bb9eb
Bug 748303 part 3 - Convert (Tag)CanContain(Tag) to nsIAtom*; r=ehsan
2012-05-01 09:34:52 +03:00
Aryeh Gregor
edf98a6601
Bug 748303 part 2 - Handle non-text/elements correctly when calling (Tag)CanContain(Tag); r=ehsan
2012-05-01 09:34:52 +03:00
Aryeh Gregor
0585cf802b
Bug 748303 part 1 - Clean up various nsHTMLEditRules methods; r=ehsan
2012-05-01 09:34:52 +03:00
Jared Wein
0152ba6f95
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
c39d9570bd
Followup nit for bug 686203 - comment change. r=ehsan DONTBUILD
2012-04-26 08:54:20 +01:00
Aryeh Gregor
8ef0db5648
Bug 743819 - Only re-spellcheck new nodes on insertions, not everything; r=ehsan
2012-04-25 08:56:32 +03: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
Aryeh Gregor
51d3c28a67
Bug 480647 part 6 - Handle CSS in execCommand("fontSize"); r=ehsan
2012-04-24 13:57:49 +03:00
Aryeh Gregor
6a59021f84
Bug 480647 part 5 - Reject invalid values from execCommand("fontSize"); r=ehsan
2012-04-24 13:57:46 +03:00
Aryeh Gregor
e04f4100c1
Bug 480647 part 3 - Clean up nsHTMLCSSUtils::GenerateCSSDeclarationsFromHTMLStyle; r=ehsan
2012-04-24 13:57:23 +03:00
Ehsan Akhgari
fec480dc6c
Merge mozilla-central into birch
2012-04-22 16:10:35 -04:00
Ehsan Akhgari
545bb7a0b1
Merge mozilla-central into birch
2012-04-20 13:50:08 -04:00
Aryeh Gregor
785ec48d50
Bug 746515 part 5 - Only add style="" to empty <span>s; r=ehsan
2012-04-20 09:33:21 +03:00
Aryeh Gregor
ab16a793f7
Bug 746515 part 4 - Remove styles more aggressively in execCommand(); r=ehsan
2012-04-20 09:33:21 +03:00
Aryeh Gregor
eb310d0315
Bug 746515 part 3 - Remove empty <font> as well as <span>; r=ehsan
2012-04-20 09:33:21 +03:00
Aryeh Gregor
8f1e01e99c
Bug 746515 part 2 - Clean up nsHTMLEditor::SetInlinePropertyOnNode; r=ehsan
2012-04-20 09:33:21 +03:00
Aryeh Gregor
30275f2a2f
Bug 746515 part 1 - Clean up nsHTMLEditor::SetInlineProperty; r=ehsan
2012-04-20 09:33:21 +03:00
Ehsan Akhgari
731cf9d3bd
Merge mozilla-central into birch
2012-04-19 10:03:36 -04:00
Ehsan Akhgari
3c7006508c
Bug 745494 - Hide the anonymous editing UI before its too late; r=roc a=blocking
2012-04-18 20:10:49 -04:00
Aryeh Gregor
9934ea9340
Bug 745723 - Only store known fails in currentStatus.js for richtext2, like for richtext; r=ehsan
2012-04-18 17:26:03 +03:00
Aryeh Gregor
7bf2c8a9b0
Bug 317093 part 4 - Use computed style for command state even if styleWithCSS is false; r=ehsan
2012-04-18 17:26:02 +03:00
Aryeh Gregor
63a1b91dc4
Bug 317093 part 3 - Clean up nsHTMLEditor::GetInlinePropertyBase; r=ehsan
2012-04-18 17:26:02 +03:00
Aryeh Gregor
0eba053047
Bug 480647 part 1 - Clean up nsHTMLCSSUtils::IsCSSEquivalentToHTMLInlineStyleSet; r=ehsan
2012-04-17 20:50:19 +03:00
Aryeh Gregor
abb362a74e
Bug 745701 part 2 - Strip existing styles more aggressively in execCommand(); r=ehsan
2012-04-17 20:50:19 +03:00
Aryeh Gregor
da3e9a4a14
Bug 745701 part 1 - Clean up nsHTMLEditor::RemoveStyleInside; r=ehsan
2012-04-17 20:50:19 +03:00
Aryeh Gregor
b2aeb24653
Bug 745528 - execCommand() should apply style="" to only inline elements, not blocks; r=ehsan
2012-04-17 20:50:19 +03:00
Aryeh Gregor
61eb102268
Bug 205485 - execCommand("backcolor") should work the same as execCommand("hilitecolor"); r=ehsan
2012-04-17 18:37:40 +03:00
Graeme McCutcheon
50f4305256
Bug 686203 - nsHTMLEditorEventListener's MouseDown listener should disregard events outwith its editor. Also fixes bug 578771. r=ehsan a=blassey
2012-04-13 13:52:12 +01:00
Aryeh Gregor
d12d659db6
Bug 738385 part 2 - queryCommand*() should not throw for commands that don't support them; r=ehsan
2012-04-06 10:42:54 +03:00
Aryeh Gregor
2a90e237d9
Bug 279330 part 2 - execCommand("hilitecolor") should work even in non-CSS mode; r=ehsan
2012-04-17 13:18:08 +03:00
Ms2ger
24f9541252
Bug 744507 - Part b: Add nsINode versions in GetPriorHTMLSibling/GetNextHTMLSibling; r=ehsan
2012-04-14 15:09:38 +02:00
Ms2ger
5411102ccb
Bug 744507 - Part a: Preparatory cleanup in GetPriorHTMLSibling/GetNextHTMLSibling; r=ehsan
2012-04-14 15:09:21 +02:00
Ms2ger
64506705b8
Bug 742884 - Part c: Cleanup nsHTMLEditRules::GetListState; r=ehsan
2012-04-14 15:08:26 +02:00
Ms2ger
b8ae2456b2
Backing out bf0a78471e5e:dc7022e2d807 for inexplicable windows crashes.
2012-04-14 17:52:34 +02:00
Ms2ger
2b65d1cf8d
Bug 744507 - Part b: Add nsINode versions in GetPriorHTMLSibling/GetNextHTMLSibling; r=ehsan
2012-04-14 15:09:38 +02:00
Ms2ger
b8f9cbba39
Bug 744507 - Part a: Preparatory cleanup in GetPriorHTMLSibling/GetNextHTMLSibling; r=ehsan
2012-04-14 15:09:21 +02:00
Ms2ger
621d875821
Bug 742884 - Part c: Cleanup nsHTMLEditRules::GetListState; r=ehsan
2012-04-14 15:08:26 +02:00