David Zbarsky
8f972ed5b4
Bug 862118 - Remove GetAttributeToModifyOnNode r=ehsan
2013-04-17 00:35:39 -04:00
Aryeh Gregor
f54fae9f98
Bug 857102 part 5 - Make NS_NewDocumentFragment etc. infallible; r=bz
2013-04-10 17:15:54 +03:00
matekm
e7ca3bab1f
Bug 784739 - Switch from NULL to nullptr in editor/; r=ehsan
2013-04-02 20:13:10 -04:00
Boris Zbarsky
342f7d2389
Bug 848895 part 1. Always hold an on-stack strong reference to mRules when calling into it. r=ehsan
2013-03-22 23:47:57 -04:00
Trevor Saunders
f0513dc537
bug 846487 - remove remaining usage of some nsIDOMFooElement r=Ms2Ger
2013-02-14 10:33:16 -05:00
Trevor Saunders
d2b0ddcb07
bug 798599 - remove prmem from editor r=ehsan
2012-10-04 02:45:16 -04:00
Isaac Aggrey
990e90e88a
Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan
2012-09-28 01:57:33 -05:00
Ehsan Akhgari
92719c116c
Bug 791907 - Remove prtypes.h #includes in editor/; r=jrmuizel
2012-09-17 22:58:51 -04:00
Aryeh Gregor
0d6869c6ea
Bug 788950 - Prevent mRules from dying in DoInsertHTMLWithContext; r=ehsan
2012-09-16 13:13:31 +03:00
Neil Deakin
d18aea10a0
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
3b4961b603
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
2012-09-01 22:35:17 -04:00
Ehsan Akhgari
243c878d26
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
1e4caf64a8
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
691ef24b2a
Bug 780618 - Move all error codes to nsError.h; r=ehsan
2012-07-27 17:03:27 +03:00
Aryeh Gregor
360ca4ef29
Bug 751554 part 5 - Rename OperationID to EditAction; r=ehsan
2012-08-12 21:28:26 +03:00
Aryeh Gregor
01462d7631
Bug 751554 part 4 - Make nsEditor::OperationID an enum class; r=ehsan
2012-08-01 15:22:07 +03:00
Aryeh Gregor
6b3ee254ff
Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan
2012-07-27 16:59:29 +03:00
Aryeh Gregor
8b4a23fc4c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Aryeh Gregor
270c8896f8
Bug 772332 part 1 - Make nsWSRunObject's type enum type-safe; r=ehsan
2012-07-13 09:33:43 +03:00
Aryeh Gregor
318c755d1f
Bug 772807 - Clean up editor/ includes with include-what-you-use; r=ehsan
2012-07-13 09:33:42 +03:00
Luqman Aden
c671b49a3f
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
5db48a8f85
Bug 769967 part 2 - Clean up nsEditor::GetNodeLocation; r=ehsan
2012-07-02 15:07:57 +03:00
Ehsan Akhgari
a1caaeb2f4
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
99d7bb772d
Backed out changeset 0f1a8f17bfdf because the patch was not reviewed!
2012-07-03 18:04:35 -04:00
Ehsan Akhgari
decaa2038a
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
Ehsan Akhgari
f4bd388765
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
Aryeh Gregor
bbf24a0340
Bug 766360 - Rewrite nsEditor::DeleteSelectionAndPrepareToCreateNode; r=ehsan
2012-06-21 15:54:26 +03:00
Aryeh Gregor
16a3a22853
Back out 66b3801292a0 for test failures
2012-06-24 10:30:13 +03:00
Aryeh Gregor
e0dddc6286
Bug 766360 - Rewrite nsEditor::DeleteSelectionAndPrepareToCreateNode; r=ehsan
2012-06-21 15:54:26 +03:00
Henri Sivonen
ddb3e40159
Bug 750096. r=bzbarsky.
2012-06-14 09:14:47 +03:00
Ryan VanderMeulen
7243a68652
Merge m-c to inbound
2012-06-10 17:59:00 -04:00
Olli Pettay
2146ee62af
Bug 761613 - Merge nsIPrivateDOMEvent to nsIDOMEvent, r=jst
2012-06-10 21:14:30 +03:00
Aryeh Gregor
463121ea8c
Bug 762862 - Rename nsTypedSelection to mozilla::Selection; r=ehsan
2012-06-08 17:20:55 +03:00
Ehsan Akhgari
775dd99486
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
4d63a17cbe
Backout changeset 125438dda903 (bug 761051) because of Bq bustage
2012-06-07 19:49:37 -04:00
Ehsan Akhgari
d66a66049e
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
1a424ce536
Bug 760143 - Get rid of useless nsresult in editor/; r=ehsan
2012-06-01 14:03:17 +03:00
Aryeh Gregor
2eb22e0397
Bug 748307 part 2 - Make WillDoAction take an nsTypedSelection; r=ehsan
2012-05-22 12:37:17 +03:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Ms2ger
f427a3c823
Merge m-c to m-i.
2012-05-18 13:32:20 +02:00
Ms2ger
39a759ea47
Bug 750053 - Part b: Stop using nsISelection::GetIsCollapsed in editor/libeditor; r=ehsan
2012-05-18 10:29:39 +02:00
Aryeh Gregor
67422ef709
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
6a21137769
Bug 590640 part 5 - Delete empty wrappers when we delete the selection; r=ehsan
2012-05-10 17:54:33 +03:00
Ehsan Akhgari
a2b048ce24
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
7fd0a44e4e
Bug 751547 - Unify action enums in editor/; r=ehsan
2012-05-05 21:52:29 +03:00
Ehsan Akhgari
66c4d55490
Bug 741734 - Fire the paste event when pasting without formatting; r=roc
2012-04-03 13:41:04 -04:00
Ehsan Akhgari
6137e75807
Backed out changeset afff429aaf9a because of bad commit message
2012-04-03 17:47:34 -04:00
Ehsan Akhgari
2cd41bf391
commit cf0f05533cc23ba918e81ac3669449813799fe9f
...
Author: Ehsan Akhgari <[email protected] >
Bug 741734 - Fire the paste event when pasting without formatting; r=roc
2012-04-03 13:41:04 -04:00
aceman
77072a23f3
Bug 732691 - Further cleanups in /mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp found in bug 368758. r=ehsan
2012-03-26 14:58:43 -07:00
Ehsan Akhgari
acd8a0c496
Bug 732585 - Drag and drop images into message window is broken; r=roc
2012-03-26 09:04:06 -07:00