Commit Graph

1933 Commits

Author SHA1 Message Date
Aryeh Gregor
552612f5c6 Bug 1154701 part 11 - Switch nsEditor::mEditorObservers to nsTArray; r=ehsan 2015-04-22 14:27:18 +03:00
Aryeh Gregor
684a463a42 Bug 1154701 part 10 - Switch nsEditor::mActionListeners to nsTArray; r=ehsan 2015-04-22 14:27:18 +03:00
Aryeh Gregor
94c26bc4a1 Bug 1154701 part 9 - Clean up nsHTMLEditor::RelativeFontChange; r=ehsan 2015-04-22 14:27:18 +03:00
Aryeh Gregor
35a414be5d Bug 1154701 part 8 - Clean up nsHTMLEditor::SetInlinePropertyOnNode; r=ehsan 2015-04-22 14:27:18 +03:00
Aryeh Gregor
f37726f499 Bug 1154701 part 7 - Clean up nsHTMLEditor::SetInlineProperty; r=ehsan 2015-04-22 14:27:18 +03:00
Aryeh Gregor
8eb4a393ec Bug 1154701 part 6 - Clean up nsHTMLEditor::SetInlinePropertyOnNodeImpl; r=ehsan 2015-04-22 14:27:17 +03:00
Aryeh Gregor
4332c85967 Bug 1154701 part 5 - Switch nsHTMLEditor::objectResizeEventListeners to nsTArray; r=ehsan 2015-04-22 14:27:17 +03:00
Aryeh Gregor
2934763ac1 Bug 1154701 part 4 - Switch nsHTMLEditor::mContentFilters to nsTArray; r=ehsan 2015-04-22 14:27:17 +03:00
Aryeh Gregor
5c2749c5d1 Bug 1154701 part 3 - Clean up nsHTMLEditor::GetListAndTableParents, DiscoverPartialListsAndTables, ScanForListAndTableStructure, ReplaceOrphanedStructure; r=ehsan 2015-04-22 14:27:17 +03:00
Aryeh Gregor
a8118ac388 Bug 1154701 part 2 - Use more OwningNonNull in editor; r=ehsan 2015-04-22 14:27:17 +03:00
Aryeh Gregor
61811e4e58 Bug 1154701 part 1 - Clean up nsHTMLEditor::CreateListOfNodesToPaste; r=ehsan 2015-04-22 14:27:13 +03:00
Aryeh Gregor
aebab5f815 Bug 1153629 part 12 - Clean up nsHTMLEditRules::RemoveEmptyNodes; r=ehsan 2015-04-22 14:26:58 +03:00
Aryeh Gregor
6252f04fb9 Bug 1153629 part 11 - Clean up nsHTMLEditRules::AdjustSpecialBreaks; r=ehsan 2015-04-22 14:26:58 +03:00
Aryeh Gregor
22185c8983 Bug 1153629 part 10 - Clean up nsHTMLEditRules::AlignInnerBlocks; r=ehsan 2015-04-22 14:26:58 +03:00
Aryeh Gregor
5ac1c4870e Bug 1153629 part 9 - Clean up nsHTMLEditRules::MakeTransitionList; r=ehsan 2015-04-22 14:26:58 +03:00
Aryeh Gregor
e3be4daa07 Bug 1153629 part 8 - Clean up nsHTMLEditRules::ApplyBlockStyle; r=ehsan 2015-04-22 14:26:58 +03:00
Aryeh Gregor
52f84a89c7 Bug 1153629 part 7 - Clean up nsHTMLEditRules::RemoveBlockStyle, RemovePartOfBlock; r=ehsan 2015-04-22 14:26:58 +03:00
Aryeh Gregor
5f32951386 Bug 1153629 part 6 - Clean up nsHTMLEditRules::MakeBlockquote; r=ehsan 2015-04-22 14:26:58 +03:00
Aryeh Gregor
d2f5ecbed0 Bug 1153629 part 5 - Clean up nsHTMLEditRules::GetChildNodesForOperation; r=ehsan 2015-04-22 14:26:58 +03:00
Aryeh Gregor
6fba5b0696 Bug 1153629 part 4 - Clean up nsHTMLEditRules::ListIsEmptyLine; r=ehsan 2015-04-22 14:26:57 +03:00
Aryeh Gregor
f07fc450a2 Bug 1153629 part 3 - Clean up nsHTMLEditRules::GetNodesFromPoint; r=ehsan 2015-04-22 14:26:57 +03:00
Aryeh Gregor
f856418f87 Bug 1153629 part 2 - Clean up nsHTMLEditRules::GetParagraphFormatNodes; r=ehsan 2015-04-22 14:26:57 +03:00
Aryeh Gregor
4cd6fd3b8e Bug 1153629 part 1 - Clean up nsHTMLEditRules::GetListActionNodes; r=ehsan 2015-04-22 14:26:57 +03:00
Aryeh Gregor
aff9949b14 Bug 1149163 part 9 - Clean up nsHTMLEditRules::GetNodesFromSelection; r=froydnj 2015-04-22 14:26:57 +03:00
Aryeh Gregor
2c9ddffad5 Bug 1149163 part 8 - Clean up nsHTMLEditRules::GetPromotedRanges; r=froydnj 2015-04-22 14:26:57 +03:00
Aryeh Gregor
acd79057c7 Bug 1149163 part 7 - Clean up nsHTMLEditRules::PromoteRange; r=froydnj 2015-04-22 14:26:57 +03:00
Aryeh Gregor
1522c79dfb Bug 1149163 part 6 - Clean up nsHTMLEditRules::LookInsideDivBQandList; r=froydnj 2015-04-22 14:26:57 +03:00
Aryeh Gregor
3cbce7b050 Bug 1149163 part 5 - Clean up nsHTMLEditRules::GetNodesForOperation; r=froydnj 2015-04-22 14:26:57 +03:00
Aryeh Gregor
5db27d89d8 Bug 1149163 part 4 - Allow use of temporary nsBoolDomIterFunctor; r=froydnj 2015-04-22 14:26:57 +03:00
Aryeh Gregor
971e182b8e Bug 1149163 part 3 - Clean up nsHTMLEditRules::BustUpInlinesAtBRs; r=froydnj 2015-04-22 14:26:57 +03:00
Aryeh Gregor
383ea4d52b Bug 1149163 part 2 - Make nsDOMIterator infallible; r=froydnj 2015-04-22 14:26:57 +03:00
Aryeh Gregor
458032e3c2 Bug 1149163 part 1 - Clean up nsHTMLEditRules::GetInnerContent; r=froydnj 2015-04-22 14:26:57 +03:00
Andrea Marchesini
b75af49c46 Bug 1156632 - Remove unused forward class declarations - patch 5 - rdf, parser, layout and something else, r=ehsan 2015-04-22 08:29:22 +02:00
Ehsan Akhgari
d12ca71815 Bug 102663 - Add a test case for pressing space when an image map is focused; r=roc 2015-04-21 22:08:25 -04:00
Ehsan Akhgari
be10e8df64 Bug 915962 - Part 3: Do not crash when pressing the space bar without having an element focused; r=roc 2015-04-21 22:08:21 -04:00
Ehsan Akhgari
9a2b100be9 Bug 915962 - Part 2: Add a test case for pressing space when a tabindex=-1 and a button element is focused; r=roc
This is based on test_bug549262.html.
2015-04-21 22:07:43 -04:00
Kyle Huey
eb37bb1d21 Backed out 3 changesets (bug 102663, bug 915962) for crashing constantly. a=me
Backed out changeset 984018eae04a (bug 102663)
Backed out changeset ec40bfefa08d (bug 915962)
Backed out changeset 79aeff6684f6 (bug 915962)
2015-04-21 09:19:01 -07:00
Carsten "Tomcat" Book
e1c2057b11 Backed out changeset 76d12a766103 (bug 1154791) for m-oth test bustage on a CLOSED TREE 2015-04-21 11:03:34 +02:00
Jorg K
53e93a2848 Bug 1154791 - Remember all ranges for all selections when splitting nodes in the editor transactions; r=ehsan 2015-04-17 14:47:00 +02:00
Masayuki Nakano
5dfcaa9cf5 Bug 1128787 part.1 Add test r=ehsan 2015-04-21 15:27:09 +09:00
Denis Volk
4ad62045e8 Bug 1095098 - move do_QueryObject templates into their own header; r=froydnj 2015-04-15 12:47:03 -04:00
Ehsan Akhgari
312137cf56 Bug 102663 - Add a test case for pressing space when an image map is focused; r=roc 2015-04-19 18:57:53 -04:00
Ehsan Akhgari
c778906b41 Bug 915962 - Part 2: Add a test case for pressing space when a tabindex=-1 and a button element is focused; r=roc
This is based on test_bug549262.html.
2015-04-19 18:57:52 -04:00
Aryeh Gregor
5028cd21a1 Bug 1147412 part 10 - Clean up nsHTMLCSSUtils::Get*Property, GetCSSInlinePropertyBase; r=ehsan 2015-04-19 15:28:50 +03:00
Aryeh Gregor
cd0831c08e Bug 1147412 part 9 - Convert some nsHTMLEditor members to Element; r=ehsan 2015-04-19 15:28:50 +03:00
Aryeh Gregor
76b65ea3a3 Bug 1147412 part 8 - Clean up nsHTMLCSSUtils::IsCSSInvertible; r=ehsan 2015-04-19 15:28:50 +03:00
Aryeh Gregor
4db65dda7b Bug 1147412 part 7 - Remove nsHTMLCSSUtils::GetComputedStyle(nsIDOMElement*); r=ehsan 2015-04-19 15:28:50 +03:00
Aryeh Gregor
9d4f9cb3fc Bug 1147412 part 6 - Remove nsHTMLCSSUtils::IsCSSEditableProperty(nsIDOMNode*,...); r=ehsan 2015-04-19 15:28:50 +03:00
Aryeh Gregor
58a2dceec4 Bug 1147412 part 5 - Clean up nsHTMLEditor::RemoveInlinePropertyImpl; r=ehsan 2015-04-19 15:28:50 +03:00
Aryeh Gregor
691ca7eee8 Bug 1147412 part 4 - Clean up nsHTMLEditor::GetInlinePropertyBase; r=ehsan 2015-04-19 15:28:50 +03:00
Aryeh Gregor
1ddf149cd6 Bug 1147412 part 3 - Fix completely broken nsHTMLCSSUtils::IsCSSEquivalentToHTMLInlineStyleSet implementation; r=ehsan 2015-04-19 15:28:50 +03:00
Aryeh Gregor
d0c3449307 Bug 1147412 part 2 - Clean up nsHTMLEditor::SetInlinePropertyOnTextNode; r=ehsan 2015-04-19 15:28:50 +03:00
Aryeh Gregor
8c2ee13ffa Bug 1147412 part 1 - Make methods take nsINode*, not just nsIContent*; r=ehsan 2015-04-19 15:28:50 +03:00
Aryeh Gregor
278cd0e05a Bug 1153649 part 2 - Use some OwningNonNull in editor; r=ehsan 2015-04-19 15:28:49 +03:00
Ms2ger
82c2faeae3 Bug 949614 - Use === for SimpleTest.is; r=Waldo
This is more likely to be correct, and a necessary step in case we ever want
to move to Object.is.

This keeps ise as an alias for is, and introduces is_loosely for the old
behaviour.
2015-04-14 15:28:13 +02:00
Ms2ger
9198e306f0 Bug 949614 - Consolidate some spellchecking test code; r=ehsan 2015-04-14 15:26:14 +02:00
Olli Pettay
a369ea3eeb Bug 936092, initial DnD support for e10s, r=enndeakin,karlt 2015-04-08 21:48:11 +03:00
Masayuki Nakano
ed38b0607f Bug 1151186 part.2 nsHTMLEditor should accept composition events even while there is no active editing host but it has composition r=ehsan 2015-04-08 11:50:13 +09:00
Jorg K
5e8ad3fa14 Bug 1141017 - resurrect serif and monospace. r=ehsan 2015-03-30 11:58:00 +02:00
Jorg K
30a668694f Bug 756984 - Collapse the selection on the last text node on the line, skipping br and inline frames when clicking past the end of line; r=roc,ehsan 2015-03-27 20:04:29 -04:00
Andrea Marchesini
b212600c95 Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Geoff Brown
cf739e07e8 Bug 1140148 - Update mochitest manifests for Android 4.3 emulator; r=dminor 2015-03-26 20:35:35 -06:00
Ehsan Akhgari
8178d2066f Bug 1148228 - Stop checking ul twice 2015-03-26 20:58:22 -04:00
Jeremy Chen
1f18232fbb Bug 1140625 - Part 3: Fix a bug in bug414526 so we can reopen the test. r=roc 2015-03-24 01:17:00 -04:00
Aryeh Gregor
b7456adaf5 Bug 1134545 - Insufficient null check. r=ehsan 2015-03-25 13:52:56 -04:00
Ryan VanderMeulen
83f066020e Backed out changeset e7688fa5ba48 (bug 1134545) for browser_vimemacs.js crashes.
CLOSED TREE
2015-03-25 13:19:29 -04:00
Aryeh Gregor
4d051f003d Bug 1134545 - Insufficient null check; r=ehsan 2015-03-25 17:37:52 +02:00
Ehsan Akhgari
b5eb2121f9 Bug 1146883 - Null check the node passed to GetGoodSelPointForNode; r=smaug
Landed on a CLOSED TREE so that we can uplift to Firefox 37 soon.
2015-03-24 16:38:44 -04:00
Ehsan Akhgari
33bb32f549 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -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 MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Nathan Froyd
8ddefeed54 Bug 1142503 - don't use QueryInterface when the compiler can do the cast for us; r=ehsan
Calling QueryInterface with a statically known IID should typically not
be necessary.  In those cases where it's not, the compiler can do the
cast for us, though we have to supply the reference-counting that
QueryInterface would do.

In passing, several redundant null-checks for the result of |new T| have
been deleted.
2015-03-12 09:43:50 -04:00
Ehsan Akhgari
e4649243cc Bug 1100966 - Remember all ranges for all selections when joining nodes in the editor transactions; r=roc
This patch fixes some symptoms, the most common of which misspelling
ranges disappearing when performing some editor operations.
2015-03-12 19:42:26 -04:00
Jonathan Griffin
84011a87cc Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown 2015-02-06 16:30:37 -08:00
Carsten "Tomcat" Book
cfd2d20260 Backed out changeset 4b7febba9c14 (bug 1140105) for m2 test failures 2015-03-12 11:42:40 +01:00
Carsten "Tomcat" Book
2514c00e67 Backed out changeset dc155e427213 (bug 1141017) 2015-03-12 11:41:52 +01:00
Neil Rashbrook
76c7c43617 Bug 1141017 Querying for the current font sometimes returns "sans-serif" r=ehsan 2015-03-12 08:42:16 +00:00
Neil Rashbrook
18be6061b4 Bug 1140105 Can't query for a specific font face when the selection is collapsed r=ehsan 2015-03-12 08:40:29 +00:00
Andrea Marchesini
c01342eee9 Bug 1134280 - Get rid of Tag() - patch 2.2 - /editor - Fix all the occurrences, m=smaug, r=surkov 2015-03-03 11:08:59 +00:00
Andrea Marchesini
454d9140a2 Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug 2015-03-03 11:08:59 +00:00
Ting-Yu Lin
c4db413d6a Bug 1136065 - Remove GetRangeCount() in Selection.h. r=ehsan
We replace GetRangeCount() with the identical function RangeCount() to
avoid any confusion.
2015-02-25 17:08:00 +01:00
Ekanan Ketunuti
c63833039b Bug 1133363 - Part 3 - Fix tests. r=ehsan 2015-02-25 20:24:58 +07:00
Chris Peterson
4a8efb3a10 Bug 1133288 - Remove nonstandard expression closures from editor. r=ehsan 2015-01-24 23:53:32 -08:00
Anish
48094b2951 Bug 1056851 - Change existing callers of SpecialPowers.setBoolPref/setIntPref/setCharPref to SpecialPowers.pushPrefEnv. r=jmaher,mwargers 2015-02-19 11:53:01 -05:00
Carsten "Tomcat" Book
b6ef20bdf0 Backed out changeset 6885e993936a (bug 1056851) for crashtest failures 2015-02-19 15:02:05 +01:00
Anish
bbc6a8a249 Bug 1056851 - Change existing callers of SpecialPowers.setBoolPref/setIntPref/setCharPref to SpecialPowers.pushPrefEnv. r=jmaher 2015-02-19 07:26:41 -05:00
Masayuki Nakano
f1fce37659 Bug 1119609 part.14 Reimplement/redesign EventUtils.synthesizeKey() with nsITextInputProcessor r=smaug 2015-02-19 15:50:20 +09:00
Nicholas Nethercote
6ee3666899 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
--HG--
extra : rebase_source : 488e401ff87e31a2074c4108c4df0572d9536667
2015-02-09 14:34:50 -08:00
Joel Maher
33d8eaf66d Bug 1110982 - Disabled tests for oth chunk and leaks (run-by-dir). r=RyanVM 2014-12-27 00:44:52 +05:30
Andrew McCreight
8413cc973c Back out Bug 1127201 (part 2) for various problems. 2015-02-06 15:04:32 -08:00
Nicholas Nethercote
3629781b69 Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
--HG--
extra : rebase_source : 99182e70335d2b5ff95f8c528ae992d37294be3a
2015-02-04 20:05:36 -08:00
Morris Tseng
f1acad6c90 Bug 1120316 - Part 2: Batch changes for select all so we don't get selection change with no reason. r=roc
--HG--
extra : rebase_source : f585b16a7221c341376ad6aff3a451bc4a157d82
2015-02-04 21:35:00 +01:00
Morris Tseng
11faad9e79 Bug 1120316 - Part 1: Move SelectionBatcher to Selection.h. r=roc
--HG--
extra : rebase_source : e17ae33bc017fa1d460b611d251d3dbf29de37b1
2015-02-04 21:34:00 +01:00
Mats Palmgren
ae2b41fdd2 Bug 1127835 - part 1, Add a null-check to avoid fatal assertion if the split results in no left part. r=smaug 2015-02-02 22:34:17 +00:00
Mike Hommey
824818ee98 Bug 1126593 - Add a global fallible instance, so that using fallible works directly, everywhere. r=njn
--HG--
rename : memory/mozalloc/fallible.h => memory/fallible/fallible.h
2015-02-02 09:56:13 +09:00
Masayuki Nakano
c2b3803f80 Bug 917322 part.16 Rename COMPOSITION_ATTR_* in EventUtils.js with new constants of nsITextInputProcessor r=smaug 2015-01-28 15:27:33 +09:00
Masayuki Nakano
9569996b4b Bug 917322 part.10 Remove unnecessary synthesizeComposition(compositionstart) from all tests r=smaug 2015-01-28 15:27:32 +09:00
Masatoshi Kimura
0676786e20 Bug 1111290 - Part 3: Remove TypedEnum.h and fold TypedEnumInternal.h into TypedEnumBits.h. r=waldo 2015-01-26 07:22:11 +09:00
Masatoshi Kimura
2490dcfe04 Bug 1111290 - Part 1: Remove MOZ_(BEGIN|END)_ENUM_CLASS. r=waldo 2015-01-26 07:22:07 +09:00
Ehsan Akhgari
966aabba4d Bug 1120233 - Ensure that the delete command will stay enabled for password fields; r=roc 2015-01-22 23:26:59 -05:00
Ehsan Akhgari
ca93eb9009 Bug 1119099 - Use fallible allocation in nsTextEditRules::TruncateInsertionIfNeeded; r=roc 2015-01-22 23:17:44 -05:00
Ehsan Akhgari
dea7f51f56 Bug 611103 - Don't depend on the editor in nsDocumentEncoder; r=bzbarsky 2015-01-22 17:54:55 -05:00
Christoph Kerschbaumer
943d34a148 Bug 1119006 - Remove files where code is still calling removed NS_OpenURI API (r=mcmanus) 2015-01-14 11:52:57 -08:00
Benjamin Peterson
402b576834 Bug 1113121 followup - fix assertion r=me 2015-01-12 23:48:15 -05:00
Ehsan Akhgari
dfa5fdf674 Bug 1113121 - Null check the parent node in nsHTMLEditRules::JoinNodesSmart() before passing it to MoveNode; r=roc 2015-01-12 23:34:05 -05:00
Christoph Kerschbaumer
e7043cc6be Bug 1110469 - Remove NS_OpenURI (r=sworkman) 2015-01-11 20:26:40 -08:00
Ehsan Akhgari
942269224b Bug 1117041 - Mark virtual overridden functions as MOZ_OVERRIDE in editor; r=roc
This patch also devirtualizes some of the methods that were not
overridden by any derived classes.
2015-01-02 08:45:41 -05:00
Ehsan Akhgari
35f9f75544 Bug 1109465 - Fix the interface maps of IMETextTxn and InsertTextTxn; r=smaug
The original change in bug 1056166 used NS_INTERFACE_MAP_ENTRY_AMBIGUOUS with
the wrong order for argument names.  But more importantly, we cannot use
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS here because the cast from the concrete
class to nsISupports* will remain ambiguous even when casting first through
nsITransaction, so we need to write the implementation without using any
macros.
2014-12-30 11:57:58 -05:00
Morris Tseng
8df054062f Bug 1101364 - Part 1: Apply AutoApplyUserSelectStyle to nsHTMLEditor::SelectAll(). r=mats 2014-12-12 01:15:00 -05:00
Ehsan Akhgari
309b4049b4 Bug 649012 - Fail mochitest-plains which use flaky timeouts (setTimeout(x) for x > 0); r=ted
We are white-listing the existing set of tests that use setTimeout
like this.  Hopefully these tests will be investigated and fixed
in the future, so that we can narrow down the white-list.

This check is only turned on for mochitest-plain for now.
2014-12-11 13:34:40 -05:00
Wes Kocher
c659ea6bce Backed out changeset bf25101e66cf (bug 1095098) for build bustage 2014-12-08 16:27:12 -08:00
Denis Volk
c3639f1324 Bug 1095098: move do_QueryObject templates into their own header r=froydnj 2014-11-20 12:20:10 +01:00
Daniel Holbert
9d62810fef Bug 1093191 part 3: Make .cpp files in libeditor #include their own .h file first. r=ehsan 2014-12-01 21:07:42 -08:00
Daniel Holbert
2984a58744 Bug 1093191 part 2: Add some missing includes & forward-decls in libeditor .h files. r=ehsan 2014-12-01 21:06:55 -08:00
Daniel Holbert
f5e527d605 Bug 1093191 part 1: Remove some unnecessary #includes of stdio.h "for printf" in some libeditor files that don't use printf. r=ehsan 2014-12-01 21:06:55 -08:00
Mats Palmgren
8e2e146845 Bug 1105184 - Setup the mCaret used for DND so that it displays the caret also when dragging a selection within the same shell. r=roc 2014-12-01 15:55:16 +00:00
Morris Tseng
eea2acbf16 Bug 1101392 - Part 4: Add mochitest. r=roc 2014-11-27 21:27:00 +01:00
Morris Tseng
6682e1351f Bug 1101392 - Part 2: Add a command that collapse selection to end after copying. r=roc 2014-11-26 23:06:00 +01:00
Morris Tseng
524e7c5152 Bug 1101392 - Part 1: Fix coding style in nsEditorCommands.cpp. r=roc 2014-11-24 22:08:00 +01:00
Ehsan Akhgari
77d8eb386f Bug 911201 - Do not create a bogus br node for editable areas containing non-editable block elements; r=roc
We no longer rely on the bogus br node for positioning the caret.
If an editable region has a non-editable block element, we can
probably rely on the block element to reserve the vertical
height, so in those cases we should be able to get away without
a bogus br node.
2014-11-27 21:06:44 -05:00
Ting-Yu Lin
4bdd821df7 Bug 1102906 - Fix immovable caret after drag-and-drop. r=roc
The deleted lines were added in bug 924692 part 4. It will incorrectly
disable the caret in PresShell so that the caret cannot be moved by
using keyboard in nsSelectMoveScrollCommand::DoCommand().
2014-11-26 20:36:00 +01:00
Milan Sreckovic
fa506d757d Bug 1093245 - Make sure the return values are never returned uninitialized. r=ehsan 2014-11-04 13:11:54 -05:00
Masayuki Nakano
6169af4b21 Bug 1077345 part.7 Use synthesizeComposition({"compositioncommit") in the tests r=smaug 2014-11-25 14:02:32 +09:00
Masayuki Nakano
fb530e9039 Bug 1077345 part.5 Use synthesizeComposition({"compositioncommitasis") in the tests r=smaug 2014-11-25 14:02:31 +09:00
Masayuki Nakano
15a6678731 Bug 1077345 part.4 Add NS_COMPOSITION_COMMIT_AS_IS event which automatically commits composition with the last data r=smaug 2014-11-25 14:02:31 +09:00
Jonathan Kew
910a201c88 Bug 1077515 - Followup to fix non-unified build bustage. r=me 2014-11-22 15:33:36 +00:00
Jonathan Kew
c0b38979ac Bug 1077515 - part 9 - Support physical caret movement and selection commands in Editor. r=roc 2014-11-22 14:39:04 +00:00
Jonathan Kew
95f1955871 Bug 1077515 - part 8 - Minor refactoring of editor's handling of selection-move commands. r=roc 2014-11-22 14:39:04 +00:00
Jonathan Kew
87b30bb2e0 Bug 1077515 - part 2 - Update currentStatus.js for browserscope richtext2 test to reflect newly-passing testcases. r=roc 2014-11-22 14:39:02 +00:00
Simon Montagu
19f27e666a Bug 1100071 patch 1: change uint8_t to nsBidiLevel in a few more places, r=dholbert 2014-11-20 12:45:22 +02:00
Olli Pettay
1789c8e1f6 Bug 1101595 - [shadow-dom] <input> doesn't emit 'input' event when inside shadow-root, r=wchen
--HG--
extra : rebase_source : 6b0698d0bb9af3d41d39d4aab7b64aa0a6e7131a
2014-11-20 02:23:50 +02:00
Boris Zbarsky
f1eec49cdd Bug 1090616. Don't assume that the nodes we just pasted are still in the DOM, because mutation listeners suck like that. r=smaug 2014-11-11 12:47:36 -05:00
Masayuki Nakano
810c426d81 Bug 1094000 part.2 Add tests of HTML editor inserting <br> node at removing a last character r=roc 2014-11-11 13:55:02 +09:00
Masayuki Nakano
04352f1e00 Bug 1094000 part.1 Ensure that nsHTMLEditRules::InsertBRIfNeeded() runs after a text node is removed at handling Backspace key r=roc 2014-11-11 13:55:02 +09:00
Masayuki Nakano
b80158ee9e Bug 1047588 - IMEContentObserver::Init() should take nsIEditor because nsDocShell sometimes hasn't been initialized and nsContentEditor::GetHTMLEditor() fails. r=smaug 2014-11-05 08:12:44 -05:00
Wes Kocher
aa88290d8d Backed out changeset f86dbba73d43 (bug 1047588) under suspicion of adding a hazard on a CLOSED TREE 2014-11-04 20:25:47 -08:00
Masayuki Nakano
1c6b557ffb Bug 1047588 IMEContentObserver::Init() should take nsIEditor because nsDocShell sometimes hasn't been initialized and nsContentEditor::GetHTMLEditor() fails r=smaug 2014-11-05 10:36:37 +09:00
Aryeh Gregor
ded7e6ed57 Bug 1088054 part 10 - Clean up nsHTMLEditRules::WillDeleteSelection; r=ehsan 2014-11-02 14:04:14 +02:00
Aryeh Gregor
e4f38e4ad1 Bug 1088054 part 9 - Clean up nsEditor::JoinNodeDeep; r=ehsan 2014-11-02 14:04:13 +02:00
Aryeh Gregor
9fe7e46891 Bug 1088054 part 8 - Clean up nsHTMLEditor::GetFirst/LastEditableLeaf; r=ehsan 2014-11-02 14:04:13 +02:00
Aryeh Gregor
9ac29614a9 Bug 1088054 part 7 - Clean up nsHTMLEditRules::JoinNodesSmart; r=ehsan 2014-11-02 14:04:13 +02:00
Aryeh Gregor
a65855cb26 Bug 1088054 part 6 - Clean up nsHTMLEditor::GetFirst/LastEditableChild; r=ehsan 2014-11-02 14:04:13 +02:00
Aryeh Gregor
cbeb43b675 Bug 1088054 part 5 - Clean up nsHTMLEditRules::GetTopEnclosingMailCite; r=ehsan 2014-11-02 14:04:13 +02:00
Aryeh Gregor
3f2ed4847b Bug 1088054 part 4 - Clean up nsHTMLEditRules::GetGoodSelPointForNode; r=ehsan 2014-11-02 14:04:13 +02:00
Aryeh Gregor
2fd28efae6 Bug 1088054 part 3 - Clean up nsHTMLEditRules::CheckForEmptyBlock; r=ehsan 2014-11-02 14:04:13 +02:00
Aryeh Gregor
e8b1092a6b Bug 1088054 part 2 - Reduce nsIDOMRange use in editor/; r=ehsan 2014-11-02 14:04:13 +02:00
Aryeh Gregor
5a798e4e1c Bug 1088054 part 1 - Reduce nsISelection use in editor/; r=ehsan 2014-11-02 14:04:13 +02:00
Aryeh Gregor
4c1b82e388 Bug 1086349 part 9 - Clean up nsHTMLEditor::BeginningOfDocument; r=ehsan 2014-11-02 14:04:13 +02:00
Aryeh Gregor
cad57ca05d Bug 1086349 part 8 - Clean up nsEditor::(Tag)CanContain(Tag); r=ehsan 2014-11-02 14:04:13 +02:00
Aryeh Gregor
c08de73b51 Bug 1086349 part 7 - Remove old nsEditor::GetRight/LeftmostChild overloads; r=ehsan 2014-11-02 14:04:13 +02:00
Aryeh Gregor
2e58c67e7f Bug 1086349 part 6 - Remove old nsEditor::GetNextNode/GetPriorNode overloads; r=ehsan 2014-11-02 14:04:13 +02:00
Aryeh Gregor
348d394e22 Bug 1086349 part 5 - Clean up nsEditor::SplitNodeImpl; r=ehsan 2014-11-02 14:04:13 +02:00