Commit Graph

63 Commits

Author SHA1 Message Date
Ehsan Akhgari
22b6c29d5d Backout changeset be42bc18185a (bug 612128) because of bug 688423 2011-10-25 22:32:55 -04:00
Ehsan Akhgari
edc983c9e8 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
944bae7a2e 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
36e98e287e 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
e85f53bf15 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
67f6f1fcee Bug 691913 - Add some needs-focus annotations; r=roc
--HG--
extra : rebase_source : 71805cf58030824288021883884fa87e20b71fd2
2011-10-05 19:55:32 -04:00
Ehsan Akhgari
69ee1b11ba Backout changeset a72195ce0eaa (bug 612128) becasue of Fennec regressions 2011-09-22 18:09:44 -04:00
Ehsan Akhgari
c0e01ee34d 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
4df687ca99 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
2cb2e9f876 Backout changeset 2705abe8d3f2 (bug 686247) again because of the accessibility test failures 2011-09-13 17:42:43 -04:00
Ehsan Akhgari
2ee18355b9 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
23974947f6 Backed out changeset c9013399fa39 (bug 686247) because of mochitest-a11y failures on Linux 2011-09-13 13:29:30 -04:00
Ehsan Akhgari
4d7f2bb145 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
b49c47512d Mark the test for bug 462758 as failing on Android 2011-09-07 15:46:22 -04:00
Fabien Cazenave
3fd551dbdf 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
f96aaa3b4e Bug 674212 - Skip reftest on Android because of timeouts (test-only) 2011-08-17 16:35:35 -07:00
Fabien Cazenave
730fe59635 Bug 674212 - Modifying text of a contenteditable DOM Node removes spellcheck underlinings; r=ehsan 2011-08-17 17:12:46 -04:00
arno renevier
56a37f401e Bug 338427 - Spellchecker should respect the langi attribute; r=ehsan 2011-08-12 15:12:45 -04:00
Ehsan Akhgari
91118b2f26 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
a67d9bdc60 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
e422c276a8 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
99c5414e91 Mark spellcheck-hyphen-valid.html as passing on Android 2011-04-18 22:51:28 -04:00
Ehsan Akhgari
4d493e350a 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
91c2118d0c 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
e910197c98 Bug 642800 - Add a script blocker to avoid nested PrepareEditor calls. r=ehsan 2011-04-04 13:41:02 +02:00
Ehsan Akhgari
841f13f519 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
54176ab085 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
976abd515f 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
a61c5e796e 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
f32d4cdb18 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
daa6dd469a 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
6b6be66115 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
ab94ee5391 Bug 629878 - Part 3: Test case; r=roc a=blocking-final+ 2011-01-31 20:06:20 -05:00
Chris Jones
97685d6934 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
f15d2639f5 Bug 497869 - Future reserved words are syntax errors in strict mode. r=brendan 2011-01-22 17:46:22 -08:00
Jeff Walden
985dbafd23 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
e7b350156f More orange-fixing. r=yellowish-red 2011-01-22 22:52:02 -08:00
Ehsan Akhgari
de0b63694e 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
120ca76410 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
57625c6083 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
6e3ec66fd0 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
7e43b5d1ec 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
f474b789e2 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
ffa4ad5358 Backed out changeset a1ee6ca61426 (bug 602130) because of test failure 2010-10-14 16:53:43 -04:00
Ehsan Akhgari
8704706327 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
9ce097ba76 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
5a50bd2718 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)
8537cb241d 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
d84bc18024 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
f26d133589 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