Commit Graph
281 Commits
Author SHA1 Message Date
Aryeh Gregor 7fd0a44e4e Bug 751547 - Unify action enums in editor/; r=ehsan 2012-05-05 21:52:29 +03:00
Ms2ger f75e1d31b9 Bug 750063 - Allow passing null to nsTextEditRules::CreateMozBR's outparam; r=ehsan 2012-05-05 11:00:05 +02:00
Ms2ger c54ec51e94 Bug 747346 - Cleanup nsTextEditRules::CreateTrailingBRIfNeeded(); r=ehsan 2012-05-05 11:00:05 +02:00
Aryeh Gregor 7a56dec01e Bug 748303 part 3 - Convert (Tag)CanContain(Tag) to nsIAtom*; r=ehsan 2012-05-01 09:34:52 +03:00
Graeme McCutcheon 6fb4f5a9b8 Bug 740784 - Don't allow old bogus nodes to trail textarea content. r=ehsan a=lsblakk 2012-04-12 21:55:48 +01:00
Ms2ger 606df6e7a8 Bug 738771 - Outparamdel nsEditor::GetDocument(); r=ehsan 2012-03-24 09:19:14 +01:00
Ms2ger 81e85b7f3f Bug 720974 - Remove IsMozEditorBogusNode(nsIDOMNode*); r=ehsan 2012-02-01 11:54:22 +01:00
Matthew Schranz 4d803cd2bb Bug 698384 - Make document.createNodeIterator's 2nd and 3rd parameters optional. r=smaug 2012-01-25 13:47:50 +01:00
Ms2ger 7764b1598c Bug 716207 - Part b: Cleanup nsTextEditRules::RemoveRedundantTrailingBR; r=ehsan 2012-01-11 09:23:07 +01:00
Ms2ger a6c58ff118 Bug 716207 - Part a: Cleanup nsTextEditRules::DidUndo; r=ehsan 2012-01-11 09:23:07 +01:00
David Zbarsky b5b429da23 Bug 682611 - Part 1: Merge nsIDOMRange and nsIDOMNSRange; r=Ms2ger r=smaug 2012-01-10 15:19:54 +01:00
Graeme McCutcheon ce95f4b0db Bug 471319 - Don't make incorrect assumptions about the bogus node after undo/redo. r=ehsan 2012-01-04 15:15:09 +00:00
Fabien Cazenave d2a934b834 Bug 684187 - Use dom::Element instead of nsIDOMElement for nsEditor::mRootElement; r=ehsan 2011-12-03 22:50:15 +01: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
Masayuki Nakano cb1d445f5e Bug 669028 part.9 editor should use mozilla::LookAndFeel rather than nsILookAndFeel r=ehsan 2011-09-09 11:27:12 +09:00
Graeme McCutcheon 5564f41ccb Bug 318065 - Don't notify editor observers until bogus node state is reset. r=ehsan 2011-08-16 13:55:23 +01:00
Graeme McCutcheon b8b1f5f371 Bug 483651 - Trailing <br> node not removed when it should be; r=ehsan 2011-08-12 15:53:10 -04:00
Simon Montagu ea16744457 Undefine caret bidi level during reflow instead of on text entry. Bug 664087, r=roc 2011-07-05 08:42:32 +03:00
Masayuki Nakano 354cc7faf5 Bug 664437 editor should use mozilla::Preferences r=ehsan 2011-06-17 09:59:29 +09:00
Craig Topper 2d3a050e8b Bug 658143 - Part 1: Changes nsCOMPtr<nsFrameSelection> to nsRefPtr. r=roc 2011-05-18 20:10:49 -07:00
Ms2ger d602ca3275 Bug 657160 - Remove NS_NewTextEditRules; r=ehsan 2011-05-15 12:16:45 +02:00
Masayuki Nakano 2d29a95ccf Bug 655918 Clean up the composition string when whole characters of it are refused due to maxlength r=ehsan 2011-05-11 13:52:45 +09:00
Ehsan Akhgari bdf0434f77 Bug 611182 - Part 6: Actually allow the bogus node to be deleted from the document, and check if the parent is modifiable when inserting an element to prevent a bogus node being inserted under a contenteditable="false" element; r=bzbarsky a=blocking-beta8+
This fixes a failure in layout/reftests/bugs/579985-1.html, and is tested by it.
2010-11-12 10:38:14 -05:00
Ehsan Akhgari 25572b17c3 Bug 611182 - Part 3: Handle dynamic changes to the editable documents and create/remove the bogus node if needed; r=bzbarsky a=blocking-beta8+ 2010-11-11 16:40:52 -05:00
Ehsan Akhgari f940e69416 Bug 551704 - Part 2: Don't replace newline characters with BR nodes in preformatted editable fields; r=roc a=blocking-betaN+ 2010-11-06 18:49:26 -04:00
Ms2ger a29f637495 Bug 606717 - Comparison between signed and unsigned integers in nsTextEditRules::CollapseSelectionToTrailingBRIfNeeded; r=ehsan a=bsmedberg 2010-11-04 16:45:39 -04:00
Ehsan Akhgari 848780b3c0 Bug 603556 - pasting into text that is longer than maxlength of text control fails; r=roc a=blocking-final+ 2010-10-12 18:30:41 -04:00
Ehsan Akhgari f83aff6c8d Bug 600570 - textarea: cut and paste broken, pastes more than cut, leaves selectionEnd with wrong value; r=bzbarsky a=blocking-betaN+ 2010-10-06 18:42:21 -04:00
Ehsan Akhgari f4b7bdf0a1 Bug 597519 - Attempting to add characters to a textarea filled to its maxlength with a trailing newline results in the caret to jump to the previous line; r=roc a=blocking-final+ 2010-09-24 15:10:53 -04:00
Ehsan Akhgari 1c88813873 Bug 590554 - maxlength in textarea does not prevent newline characters from being inserted; r,a=roc 2010-08-27 01:36:09 -04:00
Ehsan Akhgari e9aa83b57c Bug 240933 - Part 7: Collapse the selection in textarea's to the trailing BR if needed after every edit operation; r,a=roc 2010-09-01 18:06:52 -04:00
Ehsan Akhgari 58b84521cd Bug 240933 - Part 6: Put the selection on the moz BR element if the user presses Enter at the end of a textarea; r=roc a=dbaron 2010-07-19 16:19:27 -04:00
Ehsan Akhgari 9f8a55084a Bug 240933 - Part 4: Remove the code responsible for handling non-preformatted text in WillInsertText; r=roc a=dbaron 2010-07-16 17:34:59 -04:00
Ehsan Akhgari d68ae07615 Bug 240933 - Part 1: Do not split multiline text into textframes separated by BR elements; r=roc a=dbaron 2010-07-11 16:26:26 -04:00
Ehsan Akhgari 0aac46c65b Back out bug 240933 and bug 590554 because of reftest failure on Win7 and also bug 593211 2010-09-02 19:54:23 -04:00
Ehsan Akhgari b49c7e6f46 Bug 590554 - maxlength in textarea does not prevent newline characters from being inserted; r,a=roc 2010-08-27 01:36:09 -04:00
Ehsan Akhgari 603b573806 Bug 240933 - Part 7: Collapse the selection in textarea's to the trailing BR if needed after every edit operation; r,a=roc 2010-09-01 18:06:52 -04:00
Ehsan Akhgari dd26a87229 Bug 240933 - Part 6: Put the selection on the moz BR element if the user presses Enter at the end of a textarea; r=roc a=dbaron 2010-07-19 16:19:27 -04:00
Ehsan Akhgari 12af96e37b Bug 240933 - Part 4: Remove the code responsible for handling non-preformatted text in WillInsertText; r=roc a=dbaron 2010-07-16 17:34:59 -04:00
Ehsan Akhgari 8a989dc7c9 Bug 240933 - Part 1: Do not split multiline text into textframes separated by BR elements; r=roc a=dbaron 2010-07-11 16:26:26 -04:00
Ehsan Akhgari 08d2f815ec Bug 580151 - Part 1: Move the increment up in case the call to nsIEditor::GetSelection fails and we bail out early; r=roc 2010-07-20 09:04:14 -04:00
Daniel Holbert 8417a9f955 Bug 581166, part 1: Quiet a spammy NS_ENSURE_TRUE() in nsTextEditRules::WillDeleteSelection that fires on every tab-switch. r=ehsan a=bsmedberg 2010-07-26 12:11:08 -07: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 a2c09efe5b Bug 569523 - GetStartNodeAndOffset should take an nsIDOMNode** parameter, instead of nsCOMPtr<nsIDOMNode>*; r=roc 2010-06-10 22:46:51 -04:00
Josh Matthews d5ca5355ed Bug 566414 - Signed/unsigned comparison warnings in editor; r=ehsan 2010-05-17 15:30:15 -04:00
Jonas Sicking fb38b1cb38 Bug 429175: Make sure to only set aNotify to true when we should. r=peterv 2010-05-03 06:23:36 -07:00