Commit Graph

63 Commits

Author SHA1 Message Date
Ehsan Akhgari
74d9b6f1fb Backout changeset be42bc18185a (bug 612128) because of bug 688423 2011-10-25 22:32:55 -04:00
Ehsan Akhgari
f3be362757 Bug 694880 - The editable state is not updated correctly when designMode is turned off; r=bz,peterv 2011-10-20 12:27:48 -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
20e096470b Bug 364914 - Part 2: Disable some of the spellcheck reftests on Android because spellchecking is disabled there
Landing on a CLOSED TREE
2011-10-17 12:23:58 -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
Ehsan Akhgari
72d69a661c Bug 691913 - Add some needs-focus annotations; r=roc
--HG--
extra : rebase_source : 71805cf58030824288021883884fa87e20b71fd2
2011-10-05 19:55:32 -04: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
7b45893388 Bug 686247 - Text control frames should accept dynamic changes to the CSS overflow property; r=bzbarsky,surkov 2011-09-13 15:09:51 -04:00
Ehsan Akhgari
71ab4b195b Backout changeset 2705abe8d3f2 (bug 686247) again because of the accessibility test failures 2011-09-13 17:42:43 -04:00
Ehsan Akhgari
ba819d11ee Bug 686247 - Text control frames should accept dynamic changes to the CSS overflow property; r=bzbarsky,surkov 2011-09-13 15:09:51 -04:00
Ehsan Akhgari
6b8124559c Backed out changeset c9013399fa39 (bug 686247) because of mochitest-a11y failures on Linux 2011-09-13 13:29:30 -04:00
Ehsan Akhgari
5964c37a93 Bug 686247 - Text control frames should accept dynamic changes to the CSS overflow property; r=bzbarsky,surkov 2011-09-13 11:45:54 -04:00
Ehsan Akhgari
5d043817c9 Mark the test for bug 462758 as failing on Android 2011-09-07 15:46:22 -04:00
Fabien Cazenave
1867ac8ecd Bug 462758 - elements with contenteditable=true and position:absolute can be moved around the page; r=ehsan 2011-09-07 13:34:58 -04:00
Matt Brubeck
b9d2d21ec3 Bug 674212 - Skip reftest on Android because of timeouts (test-only) 2011-08-17 16:35:35 -07:00
Fabien Cazenave
17c25f96ca Bug 674212 - Modifying text of a contenteditable DOM Node removes spellcheck underlinings; r=ehsan 2011-08-17 17:12:46 -04:00
arno renevier
2485241198 Bug 338427 - Spellchecker should respect the langi attribute; r=ehsan 2011-08-12 15:12:45 -04:00
Ehsan Akhgari
473351faa5 Bug 674820 - input/textarea.selectionStart/selectionEnd/selectionDirection should not require the presence of a frame; r=bzbarsky
--HG--
rename : layout/reftests/editor/selection_visibility_after_reframe.html => layout/reftests/editor/selection_visibility_after_reframe-3.html
2011-07-29 17:31:57 -04:00
Ehsan Akhgari
aa9c0820e7 Bug 672709 - Update the intrinsic state for elements in designMode documents correctly; r=bzbarsky
This patch fixes two things:
 * The intrinsic state on elements inserted in a contenteditable section when the
   document is in designMode (the nsGenericElement::UpdateEditableState change).
 * The intrinsic state on elements existing in the document when the document first
   enters designMode (the nsHTMLDocument::EditingStateChanged change).

The reftest included tests both cases.
2011-07-20 15:58:25 -04:00
Ehsan Akhgari
15252ef290 Bug 612129 - Set the initial selection range to the beginning of the text field in order to be more compatible with other browsers; r=roc 2011-05-12 09:52:38 -04:00
Ehsan Akhgari
f8bf9b48d6 Mark spellcheck-hyphen-valid.html as passing on Android 2011-04-18 22:51:28 -04:00
Ehsan Akhgari
1265f61d81 Bug 355178 - Don't break words on hyphens before passing them to hunspell, as it can handle word breaking on hyphens on its own; r=smaug
--HG--
extra : rebase_source : 298f0832ac6f0b12497e9c883bbebea8e168284c
2011-04-14 17:16:40 -04:00
Ehsan Akhgari
21594f846d Bug 637671 - Don't display the selection for a non-focused text element when restoring the selection state after a reframe; r=bzbarsky 2011-04-11 22:03:50 -04:00
Mats Palmgren
7bc245e495 Bug 642800 - Add a script blocker to avoid nested PrepareEditor calls. r=ehsan 2011-04-04 13:41:02 +02: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
Joel Maher
a2a84ed8a8 Bug 636753 - annotate reftest manifests to note tests that fail on Android (1 of 2). r=dbaron a=test-only 2011-03-18 11:54:13 -04:00
Ehsan Akhgari
bf21e11e23 Bug 634153 - Back out the changes in bug 355178 because of known regressions and possible risk of not-yet-known regressions; r=sicking a=johnath
--HG--
extra : rebase_source : 4d77b7503991a3399cd6eecbcffb994b16fed43c
2011-02-15 17:04:44 -05:00
Ehsan Akhgari
d1ae4c4539 Bug 633210 - Single hyphens are marked as spelling mistakes; r=smaug a=beltzner
--HG--
extra : rebase_source : 76821671b08b0727c6131b10e45c9a24b1984509
2011-02-10 12:07:31 -05:00
Josh Aas
e2dffb6660 Bug 556873: Fix bugs in our secure input implementation for Mac OS X. More reliably enable and disable secure input mode. r=masayuki a=jst 2011-02-09 14:00:58 -05:00
Ehsan Akhgari
9ddb3f7785 Bug 355178 - Don't break words on hyphens before passing them to hunspell, as it can handle word breaking on hyphens on its own; r=smaug f=Pike a=beltzner 2011-02-08 21:50:51 -05:00
Ehsan Akhgari
a08aa31b93 Bug 629878 - Part 3: Test case; r=roc a=blocking-final+ 2011-01-31 20:06:20 -05:00
Chris Jones
8991442744 Rollup of bug 615386, parts 1-6. Teach the reftest harness about <browser remote>. r=dbaron,roc,ted a=a
--HG--
rename : layout/tools/reftest/reftest.js => layout/tools/reftest/reftest-content.js
2011-02-03 13:54:10 -06:00
Jeff Walden
15fda24aa9 Bug 497869 - Future reserved words are syntax errors in strict mode. r=brendan 2011-01-22 17:46:22 -08:00
Jeff Walden
882117c5e3 Back out everything from the last several hours for turning into a disaster zone finally ending in total orange. r=return-to-sanity 2011-01-23 03:12:28 -08:00
Jeff Walden
a04ed905d9 More orange-fixing. r=yellowish-red 2011-01-22 22:52:02 -08:00
Ehsan Akhgari
7a39c07c6e Bug 623423 - Fix the editor XUL reftests for Windows XP compatibility; r=roc a=NPOTB 2011-01-09 20:14:58 -05:00
Ehsan Akhgari
39339f0549 Bug 614161 - Add more comprehensive spellcheck reftests to make sure that it works correctly for input and textarea controls; r=roc a=test-only
--HG--
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-input-attr-after.html
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-input-attr-before.html
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-input-attr-dynamic-inherit.html
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-input-attr-dynamic-override-inherit.html
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-input-attr-dynamic-override.html
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-input-attr-dynamic.html
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-input-attr-inherit.html
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-input-disabled.html
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-input-property-dynamic-inherit.html
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-input-property-dynamic-override-inherit.html
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-input-property-dynamic-override.html
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-input-property-dynamic.html
rename : layout/reftests/editor/spellcheck-ref.html => layout/reftests/editor/spellcheck-input-ref.html
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-textarea-attr-dynamic-inherit.html
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-textarea-attr-dynamic-override-inherit.html
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-textarea-attr-dynamic-override.html
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-textarea-attr-dynamic.html
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-textarea-attr-inherit.html
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-textarea-attr.html
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-textarea-disabled.html
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-textarea-property-dynamic-inherit.html
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-textarea-property-dynamic-override-inherit.html
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-textarea-property-dynamic-override.html
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-textarea-property-dynamic.html
rename : layout/reftests/editor/spellcheck-1.html => layout/reftests/editor/spellcheck-textarea-ref.html
2010-11-23 00:09:51 -05:00
Ehsan Akhgari
81e5001ae0 Bug 611182 - Backspace key does not work without typing something first (test cases); r=bzbarsky a=blocking-beta8+ 2010-11-11 14:09:09 -05:00
Ehsan Akhgari
8c00ec8852 Bug 542116 - Part 2: Temporary assertion annotation for another reftest which is affected by bug 596901; r=roc a=blocking-final+ 2010-10-31 16:10:23 -04:00
Ehsan Akhgari
28e97f8723 Bug 389321 - Part 1: Don't choke on textnodes which don't have a primary frame; r=roc a=blocking-betaN+ 2010-08-17 15:25:53 -04:00
Ehsan Akhgari
cc3a98796c Bug 602130 - Caret positioned incorrectly in input[type=text] when hidden and redisplayed; r=bzbarsky a=blocking-final+
--HG--
extra : rebase_source : 673601ada34f5d1eefc61303f7420dd74363e2b3
2010-10-14 15:36:35 -04:00
Ehsan Akhgari
59f3ed2f55 Backed out changeset a1ee6ca61426 (bug 602130) because of test failure 2010-10-14 16:53:43 -04:00
Ehsan Akhgari
c7f1418903 Bug 602130 - Caret positioned incorrectly in input[type=text] when hidden and redisplayed; r=bzbarsky a=blocking-final+ 2010-10-14 15:36:35 -04:00
Mats Palmgren
d000a22403 Update the caret after creating a new frame, if the node has focus. b=536421 r=ehsan a=blocking2.0:final 2010-10-11 00:07:01 +02:00
Ehsan Akhgari
4085a00c0c Bug 240933 - Part 1: Do not split multiline text into textframes separated by BR elements; r=roc a=dbaron
--HG--
extra : rebase_source : bcaf760ad9d2e939a5d99f21cd8727ef71faea92
2010-07-11 16:26:26 -04:00
Zack Weinberg ext:(%2C%20L.%20David%20Baron%20%3Cdbaron%40dbaron.org%3E)
e4c76eccb0 Bug 451134 (1/2): switch to the official border-radius property names: purely mechanical changes. r=dbaron a2.0=blocking2.0:beta6
This was generated with the command:

LC_ALL=C grep -irlEZe '[-_]moz[-_]border[-_]radius([-_](top|bottom)(right|left))?' * | xargs -0 perl -pi -e \
    's/-moz-border-radius-(top|bottom)(left|right)/border-${1}-${2}-radius/gi;
     s/_moz_border_radius_(top|bottom)Right/border_${1}_right_radius/g;
     s/_moz_border_radius_(top|bottom)Left/border_${1}_left_radius/g;
     s/-moz-border-radius/border-radius/gi;
     s/_moz_border_radius/border_radius/g;'
2010-09-09 08:21:47 -07:00
Ehsan Akhgari
7b654288bf 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
b2d7d2f956 Bug 240933 - Part 1: Do not split multiline text into textframes separated by BR elements; r=roc a=dbaron
--HG--
extra : rebase_source : 45cbd49946c1577786a5bd141384d92f9daf27c4
2010-07-11 16:26:26 -04:00