Boris Zbarsky
934bc3d8e0
Bug 635618 part 4. Switch GetNextNode and GetPriorNode to working with nsINode. r=ehsan
2011-11-28 07:54:14 -05:00
Boris Zbarsky
a4cebc0963
Bug 635618 part 3. Switch GetPriorNodeImpl and GetNextNodeImpl to working with nsINode. r=ehsan
2011-11-28 07:54:03 -05:00
Boris Zbarsky
100a69dffc
Bug 635618 part 2. Add nsINode overloads of various editor helper methods. r=ehsan
2011-11-28 07:53:29 -05:00
Masayuki Nakano
1360b0f19b
Bug 685395 part.5 Reomve IME state in nsIContent r=roc, sr=matspal
2011-11-27 20:51:53 +09:00
Ehsan Akhgari
74d9b6f1fb
Backout changeset be42bc18185a (bug 612128) because of bug 688423
2011-10-25 22:32:55 -04:00
Ehsan Akhgari
8cfbed187e
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).
--HG--
extra : rebase_source : 37317b4d95c2ea957be81420583a98a24f0864ac
2010-11-16 15:45:49 -05:00
Ehsan Akhgari
2a602a5685
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
Quentin Headen
2fe3ac75d0
Bug 364914 - Do not spell check the contents of a textarea until it's focused for the first time; r=ehsan
2011-10-16 22:06:24 -04:00
Michael Wu
d8e503c38b
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
...
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Ehsan Akhgari
85e673bce7
Backout changeset a72195ce0eaa (bug 612128) becasue of Fennec regressions
2011-09-22 18:09:44 -04:00
Ehsan Akhgari
ec2d83e852
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
5512725a02
Bug 98160 - Add support for platform native text switching keyboard shortcuts in bidi UI on Windows; r=roc
2011-09-15 10:54:50 -04:00
Jesper Kristensen
90f5bdbe17
Bug 591780 - Part 1: Backend support for adding and removing spell checker dictionaries at runtime; r=ehsan
2011-09-13 14:58:54 -04:00
Ed Morley
4923d068c0
Backout a422b9ff0a9e (bug 591780 part 1) for causing 8% Ts regression on multiple platforms; a=khuey
2011-09-06 14:32:26 +01:00
Jesper Kristensen
ffe4248d12
Bug 591780 - Part 1: Backend support for adding and removing spell checker dictionaries at runtime; r=ehsan
2011-09-05 18:44:34 -04:00
arno renevier
2485241198
Bug 338427 - Spellchecker should respect the langi attribute; r=ehsan
2011-08-12 15:12:45 -04:00
Ms2ger
72dee98c7b
Bug 677340 - Return already_AddRefed instead of nsCOMPtr from various functions in editor/; r=ehsan
2011-08-11 15:29:59 +02:00
Ehsan Akhgari
4a9dec68d7
Bug 414526 - Backspace at the beginning of a contenteditable element or delete at the end of one should not affect the rest of the contenteditable elements on the page; r=roc
...
The main fix here involves the introduction of the nsHTMLEditor::IsNodeInActiveEditor
API. This API returns true if the current selection in the document falls
inside the active editable section. The patch adds a bunch of checks using
this API to various places in the code to make sure that editing operations do
not escape their editing host.
There are also some unrelated fixes to range promotion code which fix the
bugs that have existed in that code before, but because of the lack of this
check were not uncovered before.
This patch also removes the nsTextEditUtils::InBody API which only made sense
in designMode documents, and was insufficient for contenteditable elements.
2011-07-14 11:25:07 -04:00
Ms2ger
7a41ef9f3e
Bug 670499 - Make nsEditor::CreateEventListeners return void; r=ehsan
2011-07-15 12:18:35 +02:00
Jonas Sicking
6a04ff1d9f
Bug 658714 Part 6: Fixups after search'n'replace s/nsPIDOMEventTarget/nsIDOMEventTarget/. r=smaug
2011-06-23 19:18:01 -07:00
Jonas Sicking
e3f6b769a1
Bug 658714 Part 5: Search'n'replace nsPIDOMEventTarget to nsIDOMEventTarget. r=smaug
2011-06-23 19:18:00 -07:00
Ms2ger
c36c459144
Bug 657210 - Outparamdel nsEditor::GetPresShell; r=ehsan
2011-05-22 14:43:13 +02:00
Ehsan Akhgari
4153f12b55
Bug 617539 - Remove nsIEditor_MOZILLA_2_0_BRANCH; r=roc
2011-04-11 16:00:32 -04:00
Ehsan Akhgari
b528286d7e
Bug 639695 - Reconnect the HTML editor to the new presentation of a contenteditable document when it changes; r=roc
...
This fixes things such as the caret not showing up after the presshell for a
document containing a contenteditable element is recreated.
2011-03-11 18:45:20 -05:00
Ehsan Akhgari
c504ea4d07
Bug 407127 - Part 5: Fix the editor to not rely on cached presshells and selection controllers, because they may not always be valid; r=roc
2011-03-11 00:40:31 -05:00
Ehsan Akhgari
bde6418f39
Bug 625452 - Make sure all plaintext editor commands generate trusted input events; r=roc a=blocking-final+
2011-01-15 23:16:45 -05:00
Ehsan Akhgari
393e54e609
Bug 527935 - Fire the input event for text controls with the correct trusted-ness status; r=roc a=blocking-final+
2010-12-07 01:30:05 -05:00
Ehsan Akhgari
26b56e6566
Bug 542317 - Caret missing when an iframe is put into design mode when it already has focus; r=roc a=blocking-final+
2010-10-29 12:30:52 -04:00
Masayuki Nakano
e4a3280e2e
Bug 581576 hung up or too slow when press Enter key on Gmail editor which has a lot of misspelled words r=ehsan, a2.0=dbaron
2010-08-19 20:27:04 +09:00
Masayuki Nakano
660981e020
Bug 389372 - Contenteditable node is still editable without focus; r=ehsan,masayuki,roc sr=jst a=blocking-2.0:betaN+
2010-07-22 12:22:44 -04:00
Masayuki Nakano
d7540e477b
backout the previous my check-ins
2010-07-22 11:11:34 +09:00
Masayuki Nakano
742e98c291
Bug 389372 Contenteditable node is still editable without focus r=ehsan+roc, sr=jst
2010-07-22 08:46:52 +09:00
Masayuki Nakano
6a5b71a1ed
Bug 564412 Remove non-scriptable internal methods from nsIEditorIMESupport r=ehsan, sr=smaug
2010-06-30 13:05:12 +09:00
Masayuki Nakano
16f55c793b
Bug 545775 part.4 Move mutation observer to nsHTMLEditor r=ehsan
2010-06-17 14:31:15 +09:00
Masayuki Nakano
5f41263aaf
Bug 545775 part.3 Move selection initializer into nsEditor r=ehsan
2010-06-17 14:30:42 +09:00
Masayuki Nakano
ceaf9951b3
Bug 545775 part.2 Refactor GetPIDOMEventTarget() r=ehsan
2010-06-17 14:30:10 +09:00
Ehsan Akhgari
181e117cff
Bug 569523 - GetStartNodeAndOffset should take an nsIDOMNode** parameter, instead of nsCOMPtr<nsIDOMNode>*; r=roc
2010-06-10 22:46:51 -04:00
Masayuki Nakano
9d9e285291
Bug 564669 Remove nsIPlaintextEditor::handleKeyPress() r=smaug+ehsan, sr=roc
2010-06-10 10:16:58 +09:00
Ehsan Akhgari
a441c36681
Bug 567701 - Don't store a view manager pointer in nsEditor; retrieve it lazily; r=roc
...
(transplanted from 752f109a5d1157b0e6d024a5e5ccf484c6437304)
--HG--
extra : transplant_source : u/%10%9A%5D%11W%B0%E6%D0%24%A5%E5%CC%F4%84%C6Cs%04
2010-05-23 22:13:00 -04:00
Ehsan Akhgari
d051ffeaed
Bug 534785 - Move the ownership of editor and selection controller from the text frame to the content node; r=roc,jst sr=roc
...
(transplanted from 2437636244f39bbdc7d20b062e2c978b9d85c239)
--HG--
rename : layout/reftests/forms/placeholder/placeholder-14.html => layout/reftests/forms/placeholder/placeholder-18.html
extra : transplant_source : %247cbD%F3%9B%BD%C7%D2%0B%06.%2C%97%8B%9D%85%C29
2010-04-21 16:17:41 -04:00
Ehsan Akhgari
c0245df31d
Backed out changeset 634e1f2cf46c because it breaks the Esc key in XUL dialogs (possibly among others)
2010-06-03 21:28:03 -04:00
Masayuki Nakano
d075ac396c
Bug 564669 Remove nsIPlaintextEditor::handleKeyPress() r=smaug, sr=roc
2010-06-02 16:24:56 +09:00
Craig Topper
cb8187eff9
Remove nsICSSStyleSheet and replace all uses with nsCSSStyleSheet. (Bug 239008) r=dbaron
2010-05-11 13:41:47 -07:00
Masayuki Nakano
6aa99dc4be
Bug 488420 IME enabled state is not modified when a focused editor's readonly attribute is changed r=smaug
2010-05-05 02:40:39 +09:00
Jonas Sicking
6f9aebb70a
Bug 429175: Make sure to only set aNotify to true when we should. r=peterv
2010-05-03 06:23:36 -07:00
Masayuki Nakano
35cd0d8a5e
Bug 558970 nsEditorEventListener should store its owner as nsEditor rather than nsIEditor r=smaug
2010-04-19 21:20:42 +09:00
Masayuki Nakano
7d05909d39
Bug 552914 nsEditor::mFlags is never modified by SetFlags() r=smaug
2010-04-12 11:35:18 +09:00
Masayuki Nakano
2e04f8ba90
Bug 543398 Drop nsTextEventReply and nsIPrivateCompositionEvent r=smaug, sr=roc
2010-04-10 18:24:35 +09:00
Makoto Kato
9058c89126
Bug 553548 - nsEditor::GetWrapWidth() is unused. r=Olli.Pettay
2010-03-23 12:51:58 +09:00
Masayuki Nakano
8a42231835
Bug 545602 Unify the event listeners for editor r=smaug
...
--HG--
rename : editor/libeditor/text/nsEditorEventListeners.cpp => editor/libeditor/base/nsEditorEventListener.cpp
rename : editor/libeditor/text/nsEditorEventListeners.h => editor/libeditor/base/nsEditorEventListener.h
rename : editor/libeditor/html/nsHTMLEditorMouseListener.cpp => editor/libeditor/html/nsHTMLEditorEventListener.cpp
rename : editor/libeditor/html/nsHTMLEditorMouseListener.h => editor/libeditor/html/nsHTMLEditorEventListener.h
2010-03-06 13:01:28 +09:00
Masayuki Nakano
6aa4de4b64
Bug 537828 crash [@ nsAString_internal::Assign(nsAString_internal const&)] r=Olli
2010-01-13 11:35:50 +09:00
Masayuki Nakano
ab0f2e9ba1
Bug 528435 Drop NS_COMPOSITION_QUERY event r=roc, sr=neil
2009-11-16 22:13:02 +09:00
Serge Gautherie
19afaa3c11
Bug 444021 - Remove useless |#include "nsILocale[Service|].h"|; (Av1) Just remove them; r=smontagu
2009-08-06 20:00:41 +02:00
Robert Sayre ext:(%2C%20L.%20David%20Baron%20%3Cdbaron%40dbaron.org%3E)
0864915da4
Add the editor to cycle collection. (Bug 423233) r+sr=peterv
2009-05-08 21:59:25 -07:00
Jim Chen
e043b3bba2
Bug 444772. Merge nsIKBStateControl into nsIWidget. r+sr=roc
2008-07-14 14:56:18 +12:00
dbaron@dbaron.org
acbec26224
Fix bad reference counting of atoms so we don't manipulate garbage atom pointers. b=422546 r=timeless sr=roc a=damon
2008-03-13 11:54:01 -07:00
roc+@cs.cmu.edu
04ea5b16d9
Bug 413292. Make Begin/EndUpdateViewBatch be sure to remove the batch-count from the same viewmanager we added one to. r+sr=bzbarsky
2008-01-26 15:59:50 -08:00
peterv@propagandism.org
dfb5112e8c
Fix for bug 335856 (Can't easily put caret in this designmode iframe testcase (caret doesn't show up)), also fixes bug 393568 (blocking1.9+) and bug 386872. r/sr=jst.
2007-10-03 05:16:50 -07:00
sayrer@gmail.com
4ce92cc54c
Bug 386009. Fix a leak in nsEditor and delete some code we don't need anymore. r+sr=dbaron
2007-06-29 20:09:53 -07:00
sayrer@gmail.com
44e39c1e00
backout fix for bug 386009 to see if it causes orange.
2007-06-28 00:33:23 -07:00
sayrer@gmail.com
c6bdacfd93
Bug 386009. Fix a leak in nsEditor and delete some code we don't need anymore. r+sr=dbaron
2007-06-27 18:37:03 -07:00
Olli.Pettay@helsinki.fi
7ec10e025c
Bug 363089, Remove nsIDOMEventReceiver (this time passes mochitest), r+sr=jst
2007-05-14 02:11:38 -07:00
Olli.Pettay@helsinki.fi
f29b4e2b1b
backout Bug 363089
2007-05-11 06:34:05 -07:00
Olli.Pettay@helsinki.fi
91a5c67cd1
Bug 363089, Remove nsIDOMEventReceiver, r+sr=jst
2007-05-11 04:15:11 -07:00
hg@mozilla.com
465265d0d4
Free the (distributed) Lizard! Automatic merge from CVS: Module mozilla: tag HG_REPO_INITIAL_IMPORT at 22 Mar 2007 10:30 PDT,
2007-03-22 10:30:00 -07:00