Commit Graph
855 Commits
Author SHA1 Message Date
David Zbarsky 3dcd15b229 Bug 1015433: Backout bug 828169 for regressing text editing 2014-06-04 23:51:34 -04:00
Carsten "Tomcat" Book 4d4447e2b8 Backed out changeset e2a22ba1d1e4 (bug 1015433) for build bustages 2014-05-31 17:06:29 +02:00
David Zbarsky e08d5fba72 Bug 1015433: Backout bug 828169 for regressing text editing 2014-05-31 10:49:38 -04:00
Neil Rashbrook 7128b87313 Bug 1003894 Followup to switch from Text to nsIContent so that we can safely use do_QueryInterface r=ehsan 2014-05-10 21:16:03 +01:00
Aryeh Gregor d19ca4d05b Bug 1003894 part 2 - Clean up nsWSRunObject::CheckTrailingNBSPOfRun; r=ehsan 2014-05-02 14:11:26 +03:00
Aryeh Gregor 8bc513639d Bug 1003808 part 5 - Allow nsEditor::IsEditable to take nsINode*; r=ehsan 2014-04-28 19:03:12 +03:00
Aryeh Gregor 4aa353e5e9 Bug 1002429 part 7 - Clean up nsEditor::CreateHTMLContent; r=ehsan 2014-04-28 14:54:47 +03:00
Aryeh Gregor 8d79dede5a Bug 1002429 part 6 - Clean up nsHTMLEditor::ReplaceHeadContentsWithHTML; r=ehsan 2014-04-28 14:54:46 +03:00
Aryeh Gregor 73d824de05 Bug 1002429 part 3 - Clean up nsEditor::IsContainer; r=ehsan 2014-04-28 14:54:46 +03:00
Aryeh Gregor 366b23e568 Bug 950386 - Move mozilla::Selection to mozilla::dom::Selection; r=ehsan 2014-04-10 19:09:40 +03:00
Robert O'Callahan 21ef7274a2 Bug 821307. Ensure nsTextEditorState::SetValue does nothing when the new value equals the old value, even for password inputs. r=ehsan
If nsTextEditorState::SetValue is allowed to rebuild the editor DOM even when
the new value is the same as the old value, then during PrepareEditor we can
remove the content that's the current target of the event triggering the
PrepareEditor, which prevents important code from running such as the code that
focuses the text input. Normally this isn't a problem but
nsTextEditorState::SetValue's code for getting the current value is broken
for password controls when !mEditorInitialized. So we remove that broken code
path.

We have to make sure that the password text, if any, is set on the edit-rules
during their initialization so the regular path for getting the current
value returns the right thing.
2014-04-15 00:33:47 +12:00
Masayuki Nakano bf143f35db Bug 993253 Implement DOM InputEvent interface with isComposing attribute r=smaug+ehsan 2014-04-10 16:11:37 +09:00
Masayuki Nakano d79cb44b5f Bug 990855 part.1 Export TextComposition.h as mozilla/TextComposition.h r=smaug 2014-04-03 13:18:37 +09:00
Masayuki Nakano a209ef2689 Bug 978023 part.3 Rename nsIMEStateManager to mozilla::IMEStateManager r=smaug 2014-03-08 10:20:07 +09:00
Masayuki Nakano 1f45487404 Bug 974318 part.2 TextComposition should store TextRangeArray at editor handling text event and nsEditor should refer it r=smaug+ehsan 2014-03-04 22:48:26 +09:00
Reuben Morais 16c1e76108 Bug 458300 - Rename nsINameSpaceManager.h to nsNameSpaceManager.h. r=jst r=hsivonen 2014-02-27 20:04:46 -03:00
Masayuki Nakano ecff14ec4a Bug 960866 part.6 mozilla::TextComposition should holds a weak reference to composition handling editor during composition r=ehsan+smaug 2014-02-12 22:02:56 +09:00
Masayuki Nakano 10a0c05003 Bug 960866 part.5 nsEditor shouldn't allow composition and text events created by chrome JS r=smaug 2014-02-12 22:02:56 +09:00
Masayuki Nakano 6adda25e41 Bug 960866 part.4 Remove nsEditor::mIMEBufferLength r=ehsan+smaug 2014-02-12 22:02:56 +09:00
Masayuki Nakano ab605b19ca Bug 960866 part.3 Remove nsEditor::mIsIMEComposing r=ehsan+smaug 2014-02-12 22:02:56 +09:00
Masayuki Nakano 57a1d1e5fc Bug 960866 part.2 Remove nsEditor::mInIMEMode r=ehsan 2014-02-12 22:02:55 +09:00
Masayuki Nakano 46c9a40444 Bug 960866 part.1 nsEditor should store a pointer of TextComposition while composition r=ehsan 2014-02-12 22:02:55 +09:00
Ehsan Akhgari 1b0ca0d264 Bug 675579 - Part 2: Dispatch an input event when changing the direction of a plain text element; r=roc 2014-01-17 10:31:18 -05:00
Ehsan Akhgari 3adcf5021c Bug 675579 - Part 1: Set the dir attribute on the input/textarea element when switching the text direction; r=roc 2014-01-17 10:31:03 -05:00
Ed Morley 7485b943a9 Backed out changeset e9d82d8ad687 (bug 675579) for crashes on a CLOSED TREE 2014-01-17 15:07:23 +00:00
Ed Morley 76096646a7 Backed out changeset 54ddff6ebfa5 (bug 675579) 2014-01-17 15:07:01 +00:00
Ehsan Akhgari e9765f6f69 Bug 675579 - Part 2: Dispatch an input event when changing the direction of a plain text element; r=roc 2014-01-17 08:51:43 -05:00
Ehsan Akhgari 84e445d96e Bug 675579 - Part 1: Set the dir attribute on the input/textarea element when switching the text direction; r=roc 2014-01-17 08:51:20 -05:00
Ehsan Akhgari 68bfe70f09 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.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 PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Ehsan Akhgari 3dfc543079 Bug 949445 - Part 2: Move Selection to WebIDL; r=bzbarsky 2013-12-17 09:12:33 -05:00
Ehsan Akhgari e57e49cddb Bug 936913 - Part 1: Remove the unused editor noisy debug output code; r=roc 2013-11-12 08:55:43 -05:00
Masayuki Nakano 18b3e92af1 Bug 920425 part.18 Use mozilla::WidgetEvent::AsKeyboardEvent() r=smaug 2013-10-18 15:10:24 +09:00
Masayuki Nakano 5fb6570056 Bug 920377 part.31 Get rid of nsEvent r=roc 2013-10-02 12:46:04 +09:00
Masayuki Nakano 36c92a3fec Bug 920377 part.17 Get rid of nsKeyEvent r=roc 2013-10-01 16:22:58 +09:00
Masayuki Nakano c23797df63 Bug 912956 part.18 Remove nsGUIEvent.h r=roc 2013-09-25 20:21:22 +09:00
Masayuki Nakano 5256146045 Bug 912956 part.15 mozilla/TextEvents.h should be included directly r=roc 2013-09-25 20:21:19 +09:00
Masayuki Nakano c97e23707c Bug 912956 part.2 Rename nsEvent.h to mozilla/EventForwards.h and sort out it r=roc 2013-09-24 19:04:14 +09:00
Mike Hommey 0dc9c0ef85 Bug 881323 - Re-implement CycleCollectorParticipant with actual vtables, with constexpr to avoid static initializers. r=mccr8 2013-08-02 10:29:05 +09:00
Ms2ger 446cc27ede Bug 896283 - Part c: Use nsINode in nsEditor::JoinNodesImpl; r=ehsan 2013-07-24 09:39:08 +02:00
Ms2ger ef298e4d4e Bug 896283 - Part b: Reindent nsEditor::JoinNodesImpl; r=ehsan 2013-07-24 09:39:04 +02:00
Ms2ger f1c9c23c6e Bug 896283 - Part a: Remove a useless argument from nsEditor::JoinNodesImpl; r=ehsan 2013-07-24 09:39:01 +02:00
Ms2ger 8749ce19ff Bug 890833 - Cleanup nsEditor::MoveNode; r=ehsan 2013-07-10 12:03:38 +02:00
Aryeh Gregor e093282ae5 Bug 674927 - Part 3: Make the spellcheck attribute work correctly for contenteditable; r=ehsan 2013-06-19 16:54:53 -04:00
Masayuki Nakano f8005aa64c Bug 396542 nsFocusManager should restore caret browsing mode when an editor loses focus r=ehsan 2013-05-22 12:28:43 +09:00
Masayuki Nakano f2d1519fc7 Bug 824080 HTML editor shouldn't set selection state as inactive at losing focus but the document has focus r=ehsan 2013-05-18 09:07:46 +09:00
Aryeh Gregor 0feba8cea0 Bug 857617 - Clean up nsEditor::InsertTextImpl; r=ehsan 2013-04-04 15:02:24 +03:00
matekm e7ca3bab1f Bug 784739 - Switch from NULL to nullptr in editor/; r=ehsan 2013-04-02 20:13:10 -04:00
Ms2ger b8e501d12e Bug 847195 - Make NamedNodeMap only deal with Attrs; r=khuey 2013-03-10 09:00:33 +01:00
Ehsan Akhgari 1a8dcf87e2 Bug 848644 - Do not flush when determining if a node is preformatted or not; r=bzbarsky 2013-03-07 01:12:41 -05:00
Trevor Saunders 08fdf22a1b bug 845562 - remove GetFrameSelection() from nsISelectionPrivate r=smaug 2013-02-15 15:09:28 -05:00