Ehsan Akhgari
92719c116c
Bug 791907 - Remove prtypes.h #includes in editor/; r=jrmuizel
2012-09-17 22:58:51 -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
Aryeh Gregor
8b4a23fc4c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +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
Aryeh Gregor
f2569d8548
Bug 760052 - execCommand() should abort and return false for disabled commands; r=ehsan
2012-06-21 15:05:24 +03:00
Aryeh Gregor
4582427f21
Bug 748307 part 5 - Support insertText, forwardDelete, insertParagraph per spec; 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
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
Neil Rashbrook
25e088034b
Bug 692153 Make Copy and Select All always work even when contenteditable areas are present r=ehsan
2011-12-30 17:42:04 +00:00
Ehsan Akhgari
42a9cf9745
Backout changeset be42bc18185a (bug 612128) because of bug 688423
2011-10-25 22:32:55 -04:00
Ehsan Akhgari
376668740e
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
Ehsan Akhgari
478ad1a412
Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
...
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu
0fe7772ece
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
2011-09-28 23:19:26 -07:00
Graeme McCutcheon
778a2b8cec
Bug 46555 - "Select All" should only be enabled when editor is non-empty. r=ehsan, gavin
2011-09-23 22:44:53 +01:00
Ehsan Akhgari
655e146ad3
Backout changeset a72195ce0eaa (bug 612128) becasue of Fennec regressions
2011-09-22 18:09:44 -04:00
Ehsan Akhgari
3aef5b99c4
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
Fabien Cazenave
b73d79c6d3
Bug 680060 - [queryCommandEnabled] check `GetIsSelectionEditable' results; r=ehsan
2011-08-18 11:34:52 -04:00
Fabien Cazenave
b6feda4bdf
Bug 676401 - The document.queryCommandEnabled API doesn't take the active editing host into account; r=ehsan
...
* adding an `isSelectionEditable' readonly attribute in <nsIEditor>;
* modified all ::IsCommandEnabled methods in editor/ to take it into account:
./libeditor/base/nsEditorCommands.cpp (15 commands)
nsUndoCommand 'undo'
nsRedoCommand 'redo'
nsClearUndoCommand 'clearUndo'
nsCutCommand 'cut'
nsCutOrDeleteCommand ?
nsCopyCommand 'copy'
nsCopyOrDeleteCommand ?
nsPasteCommand 'paste'
nsPasteTransferableCommand ?
nsSwitchTextDirectionCommand ?
nsDeleteCommand 'delete'
nsSelectAllCommand 'selectAll'
nsSelectionMoveCommands ?
nsInsertPlaintextCommand ?
nsPasteQuotationCommand ?
./composer/src/nsComposerCommands.cpp (15 commands)
nsBaseStateUpdatingCommand ?
nsPasteNoFormattingCommand ?
nsRemoveListCommand ?
nsIndentCommand 'indent'
nsOutdentCommand 'outdent'
nsMultiStateCommand ?
nsHighlightColorStateCommand 'hiliteColor'
nsAbsolutePositioningCommand ?
nsDecreaseZIndexCommand ?
nsIncreaseZIndexCommand ?
nsRemoveStylesCommand 'removeFormat'
nsIncreaseFontSizeCommand 'increaseFontSize'
nsDecreaseFontSizeCommand 'decreaseFontSize'
nsInsertHTMLCommand 'insertHTML'
nsInsertTagCommand ?
./composer/src/nsComposerDocumentCommands.cpp (3 commands)
nsSetDocumentOptionsCommand ?
nsSetDocumentStateCommand ?
nsDocumentStateCommand n/a (unpatched)
2011-08-17 13:28:03 -04:00
Ed Morley
5939100a93
Bug 655756 - Remove final XP_MAC remnants; r=josh
2011-05-10 20:24:48 +02:00
Boris Zbarsky
5a44005db5
Bug 575336 part 2. Make sure editor flushes layout before caret moves and scrolls that depend on layout information. r=roc,ehsan
2010-08-05 14:39:39 -04:00
Ehsan Akhgari
ebfec6da3d
Bug 572618 - Make debugging the editor easier - Part 4: multiline version of part 1; r=roc
2010-06-17 16:44:35 -04:00
Ehsan Akhgari
ea32707944
Bug 572618 - Make debugging the editor easier - Part 3: multiline version of part 2; r=roc
2010-06-17 16:40:48 -04:00
Ehsan Akhgari
f32700d4f7
Bug 572618 - Make debugging the editor easier - Part 2: Replace all if(!foo) return NS_ERROR_bar checks with NS_ENSURE_TRUE(foo, NS_ERROR_bar); r=roc
2010-06-17 15:41:16 -04:00
Tom Dyas
5d4dbbefac
Support receiving data from Mac OS X services into text and HTML editors. b=525389 r=josh r/sr=smaug
2010-01-10 20:45:45 -05:00
Josh Aas
450434347b
Backed out changeset bee6729280d8
2009-12-30 17:29:26 -05:00
Tom Dyas
87caa70f37
Support receiving data from Mac OS X services into text and HTML editors. b=525389 r=josh r/sr=smaug
2009-12-30 15:58:33 -05:00
[email protected]
ad0a590b86
Bug 279416 - Implement a controller for cmd_switchTextDirection. r=brade sr=neil (for editor/) r=smontagu sr=neil (for xpfe/) r=mconnor (for browser/)
2005-01-26 01:40:30 +00:00
[email protected]
c0cd46fc51
Bug 236613: change to MPL/LGPL/GPL tri-license.
2004-04-18 14:21:17 +00:00
[email protected]
41594cdca3
Bug 221719 Disable Composer's Paste As Quotation menuitem in the subject and address fields r=brade sr=alecf
2003-10-10 19:02:28 +00:00
[email protected]
4fb286d491
call GetIsDocumentEditable which will check CanModify for us; r=jfrancis, sr=blizzard, bug=209548
2003-07-18 14:06:21 +00:00
[email protected]
77d41631b3
code cleanup, r=timeless, sr=kin, bug=209548
2003-06-30 14:56:22 +00:00
[email protected]
3e722bb4d3
cmd_clearUndo implementation; r/sr=smfr a=sspitzer bug 195506
2003-05-09 18:21:00 +00:00
[email protected]
cf60916c5f
Fix bug 196704: implement commands to get the selected text, and insert text, to allow for embedders (like Camino) to use them, e.g. for the Mac OS X services menu. Also fix image copy. r=brade, sr=kin.
2003-04-22 18:11:12 +00:00
[email protected]
72b7ef89fc
Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
2003-01-08 19:35:36 +00:00
[email protected]
a03eeab461
162083: fix ctrl-delete to delete by words, not to end of line. r=brade sr=bzbarsky
2002-11-26 23:01:12 +00:00
[email protected]
08d3633884
Command Controller refactoring and cleanup, mostly by mjudge with help by cmanske, b=170353, r=brade, sr=sfraser. EditingSession cleanup and new commands in \editor, b=174439, r=mjudge, sr=sfraser
2002-11-12 23:30:29 +00:00
[email protected]
4e4830ddcd
api changes (bug 157097, r=cmanske, sr=sfraser)
2002-09-12 19:09:19 +00:00
[email protected]
46ce738546
166917. Clean up xpcom SDK includes. [email protected] , [email protected] , [email protected]
2002-09-07 17:13:19 +00:00
[email protected]
835013d291
r=akkana sr=sfrasier 125146 a=asa This patch will make the embedding API's a better friend to all. It eliminates the use of multibyte strings in command names and also allows for simple command to not require the nsICommandParams interface to be filled.
2002-07-15 22:04:13 +00:00
[email protected]
c32e8a18a4
Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa
2002-03-23 22:16:54 +00:00
[email protected]
b6e73974da
fix to use NS_LITERAL_STRING; bug 26384 r=cmanske sr=kin
2002-02-19 22:14:57 +00:00
[email protected]
1835c5373d
HPUX bustage
2002-02-02 14:30:00 +00:00
[email protected]
59cc5aac6b
115922 embedding work. no changes should be observed in current product this will only affect the embedded effort. This moves the command handler stuff from content xul to embedding/components/commandhandler. a=judd r=saari built on mac/windows/gmake with this we will be able to finish removing editorshell from the app and have a true embedded editor.akkana will pick this up after me and finish the embedding work.
2002-02-02 05:13:56 +00:00
[email protected]
040fdf5d4d
NS_LITERAL_STRING cleanup (bug 26384; r=akk, sr=kin)
2001-12-07 15:17:29 +00:00
[email protected]
4dd7506441
bug 103443 - remove the return rv?rv: NS_ERROR_FAILURE pattern from the editor files.
...
the editor/base remain untouched r=cmanske sr=kin
2001-10-17 14:33:50 +00:00
[email protected]
fb3016ac45
Make ctrl-delete delete to end of line on Unix when no text is
...
selected. Bug 102448, r=akkana, sr=kin
2001-10-02 00:01:26 +00:00
[email protected]
598067cb73
License changes, take 2. Bug 98089. mozilla/editor/.
2001-09-25 22:53:13 +00:00