Commit Graph
207 Commits
Author SHA1 Message Date
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
Jeff Walden 7d613942b0 Bug 693469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. (Exceptions: assigning to static initializers, use in static assertions, as template parameters, etc. These will go away when the relevant compilers have C++11 constexpr support.) r=cjones 2011-10-10 22:50:08 -07:00
Henri Sivonen 4c43b849bd Bug 677050 - Return NS_ERROR_DOM_INVALID_STATE_ERR if fragment parsing is invoked re-entrantly. r=bzbarsky. 2011-10-14 13:39:19 +03:00
Jeff Walden c5e5f873d1 Back out everything since 5435ee09cf7b. Tinderbox compilers hate me. r=epic-fail 2011-10-12 12:21:53 -07:00
Jeff Walden 946f2ae0e3 Bug 639469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. r=cjones 2011-10-10 22:50:08 -07: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
Ehsan Akhgari 655e146ad3 Backout changeset a72195ce0eaa (bug 612128) becasue of Fennec regressions 2011-09-22 18:09:44 -04:00
Brian R. Bondy 065844a717 Bug 598289 - Unable to paste CF_HTML from clipboard if StartHTML/EndHTML is -1. r=ehsan 2011-09-21 13:22:53 -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
Ms2ger 717aa1d9e1 Bug 672054 - Part a: Remove nsIDOMNSUIEvent; r=smaug 2011-08-26 09:43:49 +02:00
Marco Castelluccio 09cdbdd268 Bug 612839 - Removed nsAHtml5FragmentParser. r=hsivonen 2011-08-14 10:39:26 -07:00
Ms2ger 2cecbb3535 Bug 677101, part c - Reduce nsIDOMText.h inclusions; r=volkmar 2011-08-11 15:29:58 +02:00
Ms2ger a700090ecc Bug 677101, part b - Remove nsContentUtils.h includes from headers; r=volkmar 2011-08-11 15:29:50 +02:00
Jonas Sicking aed52c6d27 Bug 661297 Part 1: Remove Add/RemoveEventListenerByIID API. r=smaug 2011-08-08 11:26:26 -07:00
Henri Sivonen 2fa0fb46af Bug 596182 - Make fragment parsers global. Remove resulting dead code. r=Olli.Pettay, r=bzbarsky. 2011-08-01 10:48:24 +03:00
Henri Sivonen 56831e4005 Bug 482909 part 2 - Implement an HTML/SVG/MathML sanitizer independently of parsers or serializers. r=bzbarsky. 2011-07-29 14:48:04 +03:00
Jonathan Kamens ab84cd30ca Bug 489202 - selection moves to top when html containing meta, link, or style elements is pasted or inserted; r=ehsan 2011-07-26 13:59:50 -04:00
Masayuki Nakano 354cc7faf5 Bug 664437 editor should use mozilla::Preferences r=ehsan 2011-06-17 09:59:29 +09:00
Ms2ger f2d033de5b Bug 655514 - Remove nsIDOMDocumentTraversal; f=ehsan r=jonas 2011-05-15 12:07:30 +02:00
Ed Morley 5939100a93 Bug 655756 - Remove final XP_MAC remnants; r=josh 2011-05-10 20:24:48 +02:00
Neil Rashbrook 4543d5958c Bug 647682 Can't copy and paste local links in <editor> documents r=ehsan f=bz 2011-04-28 20:59:45 +01:00
6577f6eca4 Bug 620423 - nsHTMLEditor::ParseCFHTML foolishly checks aStuffToPaste instead of *aStuffToPaste; r=neil a=roc 2011-01-11 10:20:31 -05:00
Ehsan Akhgari 5718c1084d Bug 609632 followup: Make dropping arbitrary image files on editable areas actually work; r=roc a=blocking-beta8+ 2010-11-16 13:54:31 -05:00
Ehsan Akhgari b6e8a9dce9 Bug 609632 - More embarrassments, shame on me; a=shameful-ehsan 2010-11-15 18:13:25 -05:00
Ehsan Akhgari a25b5b8d23 Bug 609632 - Build bustage fix; a=bustage 2010-11-15 18:01:45 -05:00
Ehsan Akhgari 1b1ea278cf Bug 609632 - Insert image files dropped onto editable areas as data: URI images; r=roc a=blocking-beta8+ 2010-11-06 18:49:26 -04:00
Ehsan Akhgari b1c895c961 Bug 512717 - Don't handle files being dropped in an editable area; r=peterv f=sicking a=bsmedberg 2010-11-02 22:57:17 -04:00
Ehsan Akhgari 7a443fcb1b Bug 599322 - Base href ignored for drag/drop or copy/paste in designMode; r=roc a=blocking-final,1.9.2.11,1.9.1.14 2010-09-24 15:02:21 -04:00
Ehsan Akhgari 616df803cc Bug 596300 - Element Attributes dropped when dragging and dropping in DesignMode/ContentEditable sections; r=bzbarsky a=blocking-betaN,1.9.2.11,1.9.1.14 2010-09-27 13:28:54 -04:00
Ehsan Akhgari 9503e214a0 Bug 597784 - The inserthtml command should not use a sanitizing fragment content sink; r=bzbarsky a=blocking-betaN,1.9.2.11,1.9.1.14 2010-09-27 13:21:34 -04:00
Antti Jarvelin 3fe41153b3 Bug 582912 - Extend copy paste support of Fennec Qt port. r=dougt 2010-07-30 12:46:30 -07:00
Ehsan Akhgari ab9c9f7436 Bug 490879 - Pasting images into rich text editors creates temporary moz-screenshot.jpg; r+sr=roc 2009-05-15 13:14:16 +04:30
Ehsan Akhgari c24fe1ce5b Bug 572642 - Part 1: Allow comments, and disallow styles when pasting CF_HTML content; r=roc 2010-06-23 14:40:08 -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
Ehsan Akhgari d4ce369fca Bug 572618 - Make debugging the editor easier - Part 1: Replace all if(NS_FAILED) checks with NS_ENSURE_SUCCESS; r=roc 2010-06-17 15:27:24 -04:00
Ehsan Akhgari c59136bda6 Bug 520189 - Fix copy and test for the HTML editor; f=bzbarsky,dbaron r=sayrer,peterv,bzbarsky sr=roc 2010-04-09 17:06:09 -04:00
Ehsan Akhgari a2c09efe5b Bug 569523 - GetStartNodeAndOffset should take an nsIDOMNode** parameter, instead of nsCOMPtr<nsIDOMNode>*; r=roc 2010-06-10 22:46:51 -04:00
Craig Topper 5ec7efbb3a Remove nsICSSStyleSheet and replace all uses with nsCSSStyleSheet. (Bug 239008) r=dbaron 2010-05-11 13:41:47 -07:00
Masayuki Nakano db6dea9dfe Bug 552914 nsEditor::mFlags is never modified by SetFlags() r=smaug 2010-04-12 11:35:18 +09:00
Neil Deakin 7392f40101 Bug 501154, consolidate places where clipboard events are fired from, r=smaug,sr=neil 2010-03-19 14:32:13 -04:00
Masayuki Nakano 352495f292 Bug 545602 Unify the event listeners for editor r=smaug 2010-03-06 13:01:28 +09:00
Zack Weinberg 09642046d8 Bug 544112 part 2: DeCOMtaminate and devirtualize nsCSSLoader. r=bzbarsky sr=dbaron 2010-03-02 13:00:53 -08: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
Hashem Masoud ae914487ea Bug 489502 - Replace NS_ASSERTION(0, ...) by NS_ERROR(...) in mozilla-central; r=benjamin 2009-08-14 16:09:00 +02:00