Commit Graph

1884 Commits

Author SHA1 Message Date
Aryeh Gregor
afbd630b2a Bug 1004522 part 14 - Clean up nsWSRunObject::GetWSPointBefore/After; r=ehsan 2014-05-02 15:15:27 +03:00
Aryeh Gregor
8abc0c92d3 Bug 1004522 part 13 - Clean up nsWSRunObject::GetAsciiWSBounds; r=ehsan 2014-05-02 15:15:27 +03:00
Aryeh Gregor
862b04906e Bug 1004522 part 12 - Clean up nsWSRunObject::DeleteChars; r=ehsan 2014-05-02 15:15:27 +03:00
Aryeh Gregor
f2dc1775fd Bug 1004522 part 11 - Convert nsWSRunObject.mNodeArray to nsTArray<nsRefPtr<Text>>; r=ehsan 2014-05-02 15:15:27 +03:00
Aryeh Gregor
ab21b31130 Bug 1004522 part 10 - Clean up nsWSRunObject::CheckLeading/TrailingNBSP, ConvertToNBSP; r=ehsan 2014-05-02 15:15:27 +03:00
Aryeh Gregor
da07dd9376 Bug 1004522 part 9 - Clean up nsWSRunObject::FindRun; r=ehsan 2014-05-02 15:15:27 +03:00
Aryeh Gregor
0877e6d533 Bug 1004522 part 8 - Clean up nsWSRunObject::GetCharBefore/After; r=ehsan 2014-05-02 15:15:27 +03:00
Aryeh Gregor
d020c53b7c Bug 1004522 part 7 - Clean up nsWSRunObject::Prior/NextVisibleNode; r=ehsan 2014-05-02 15:15:27 +03:00
Aryeh Gregor
9ef2e9fe2f Bug 1004522 part 6 - Clean up nsWSRunObject::InsertText; r=ehsan 2014-05-02 15:15:27 +03:00
Aryeh Gregor
d9a04ad07e Bug 1004522 part 5 - Clean up nsWSRunObject::PrepareToSplitAcrossBlocks; r=ehsan 2014-05-02 15:15:26 +03:00
Aryeh Gregor
b80b8b9813 Bug 1004522 part 4 - Clean up nsWSRunObject::PrepareToDeleteNode; r=ehsan 2014-05-02 15:15:26 +03:00
Aryeh Gregor
e062918dd9 Bug 1004522 part 3 - Clean up nsWSRunObject::PrepareToDeleteRange; r=ehsan 2014-05-02 15:15:26 +03:00
Aryeh Gregor
258fa32a25 Bug 1004522 part 2 - Clean up nsWSRunObject::DeleteWSForward; r=ehsan 2014-05-02 15:15:26 +03:00
Aryeh Gregor
74ec19403a Bug 1004522 part 1 - Clean up nsWSRunObject::PrepareToJoinBlocks; r=ehsan 2014-05-02 15:15:26 +03:00
Carsten "Tomcat" Book
80a910c10b Backed out changeset 1bcdb4573884 (bug 1004522) for bustage on a CLOSED TREE 2014-05-12 14:13:17 +02:00
Carsten "Tomcat" Book
a894b15005 Backed out changeset 4b6e7f88a2ed (bug 1004522) 2014-05-12 14:12:56 +02:00
Carsten "Tomcat" Book
794832a22c Backed out changeset d50b5064f930 (bug 1004522) 2014-05-12 14:12:55 +02:00
Carsten "Tomcat" Book
aff4391392 Backed out changeset ae46dc18288d (bug 1004522) 2014-05-12 14:12:53 +02:00
Carsten "Tomcat" Book
4642e1625d Backed out changeset 6081479204a0 (bug 1004522) 2014-05-12 14:12:52 +02:00
Carsten "Tomcat" Book
b748e2c8e6 Backed out changeset 774ba83e548f (bug 1004522) 2014-05-12 14:12:50 +02:00
Carsten "Tomcat" Book
4e245e78d2 Backed out changeset 6cc778964f67 (bug 1004522) 2014-05-12 14:12:47 +02:00
Carsten "Tomcat" Book
eb53a61a86 Backed out changeset 59107353aa68 (bug 1004522) 2014-05-12 14:12:44 +02:00
Carsten "Tomcat" Book
e05ad48a71 Backed out changeset c5a647958511 (bug 1004522) 2014-05-12 14:12:42 +02:00
Carsten "Tomcat" Book
b570e0f798 Backed out changeset a30efac96e5e (bug 1004522) 2014-05-12 14:12:40 +02:00
Carsten "Tomcat" Book
d8d9426986 Backed out changeset e905f03505e3 (bug 1004522) 2014-05-12 14:12:39 +02:00
Carsten "Tomcat" Book
6a710fa66c Backed out changeset 79a84a415709 (bug 1004522) 2014-05-12 14:12:38 +02:00
Carsten "Tomcat" Book
82c9d5c766 Backed out changeset 9804226ea5cc (bug 1004522) 2014-05-12 14:12:36 +02:00
Carsten "Tomcat" Book
c6f09f6ef1 Backed out changeset 31c65c736f32 (bug 1004522) 2014-05-12 14:12:34 +02:00
Aryeh Gregor
37dafacbce Bug 1004522 part 14 - Clean up nsWSRunObject::GetWSPointBefore/After; r=ehsan 2014-05-02 15:15:27 +03:00
Aryeh Gregor
8f4df76be7 Bug 1004522 part 13 - Clean up nsWSRunObject::GetAsciiWSBounds; r=ehsan 2014-05-02 15:15:27 +03:00
Aryeh Gregor
787069fb7a Bug 1004522 part 12 - Clean up nsWSRunObject::DeleteChars; r=ehsan 2014-05-02 15:15:27 +03:00
Aryeh Gregor
c398a99d81 Bug 1004522 part 11 - Convert nsWSRunObject.mNodeArray to nsTArray<nsCOMPtr<Text>>; r=ehsan 2014-05-02 15:15:27 +03:00
Aryeh Gregor
49531e0a96 Bug 1004522 part 10 - Clean up nsWSRunObject::CheckLeading/TrailingNBSP, ConvertToNBSP; r=ehsan 2014-05-02 15:15:27 +03:00
Aryeh Gregor
55d937e932 Bug 1004522 part 9 - Clean up nsWSRunObject::FindRun; r=ehsan 2014-05-02 15:15:27 +03:00
Aryeh Gregor
ebb94c0ccf Bug 1004522 part 8 - Clean up nsWSRunObject::GetCharBefore/After; r=ehsan 2014-05-02 15:15:27 +03:00
Aryeh Gregor
ac1e93621b Bug 1004522 part 7 - Clean up nsWSRunObject::Prior/NextVisibleNode; r=ehsan 2014-05-02 15:15:27 +03:00
Aryeh Gregor
e20f3bff67 Bug 1004522 part 6 - Clean up nsWSRunObject::InsertText; r=ehsan 2014-05-02 15:15:27 +03:00
Aryeh Gregor
23ac26c701 Bug 1004522 part 5 - Clean up nsWSRunObject::PrepareToSplitAcrossBlocks; r=ehsan 2014-05-02 15:15:26 +03:00
Aryeh Gregor
0c5889a95f Bug 1004522 part 4 - Clean up nsWSRunObject::PrepareToDeleteNode; r=ehsan 2014-05-02 15:15:26 +03:00
Aryeh Gregor
1ec5f91a58 Bug 1004522 part 3 - Clean up nsWSRunObject::PrepareToDeleteRange; r=ehsan 2014-05-02 15:15:26 +03:00
Aryeh Gregor
b1430221e5 Bug 1004522 part 2 - Clean up nsWSRunObject::DeleteWSForward; r=ehsan 2014-05-02 15:15:26 +03:00
Aryeh Gregor
9e44202c7a Bug 1004522 part 1 - Clean up nsWSRunObject::PrepareToJoinBlocks; r=ehsan 2014-05-02 15:15:26 +03:00
Neil Rashbrook
e2c0b0860b 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
Ehsan Akhgari
52eb1d3e13 Bug 1007940 - Improve the performance of editor initialization; r=bzbarsky 2014-05-09 17:02:29 -04:00
Benoit Jacob
472e4472e0 Bug 1004098 - Make nsTArray use size_t in its interface (32bitness is fine as an internal detail) - r=froydnj, sr=bsmedberg 2014-05-08 21:03:35 -04:00
Chris Peterson
519ce62fb9 Bug 1006982 - Refactor anchor tag utility functions in nsHTMLEditor.cpp. r=ehsan 2014-05-06 21:29:20 -07:00
Chris Peterson
8d42f6a9d3 Bug 1006982 - Fix -Wuninitialized warning in libeditor. r=ehsan 2014-05-06 21:07:50 -07:00
Aryeh Gregor
947f4fcb3a Bug 1003894 part 5 - Clean up nsWSRunObject::ScrubBlockBoundary; r=ehsan 2014-05-02 14:11:26 +03:00
Aryeh Gregor
7e742b3ebe Bug 1003894 part 4 - Clean up nsWSRunObject::DeleteWSBackward; r=ehsan 2014-05-02 14:11:26 +03:00
Aryeh Gregor
e9e01fda8a Bug 1003894 part 3 - Clean up nsWSRunObject::InsertBreak; r=ehsan 2014-05-02 14:11:26 +03:00
Aryeh Gregor
48bbf8a27c Bug 1003894 part 2 - Clean up nsWSRunObject::CheckTrailingNBSPOfRun; r=ehsan 2014-05-02 14:11:26 +03:00
Aryeh Gregor
b7b3ce0b2c Bug 1003894 part 1 - Change WSPoint.mTextNode to Text; r=ehsan 2014-05-02 14:11:26 +03:00
Aryeh Gregor
8cf8ed9b5d Bug 1003808 part 10 - Clean up nsWSRunObject::GetPrevious/NextWSNode; r=ehsan 2014-05-02 14:11:26 +03:00
Aryeh Gregor
d8a7fc45ab Bug 1003808 part 9 - Clean up nsWSRunObject::GetRuns; r=ehsan 2014-05-02 14:11:26 +03:00
Aryeh Gregor
ea5532693a Bug 1003808 part 8 - Use some more nsINode in nsWSRunObject; r=ehsan 2014-05-02 14:11:26 +03:00
Aryeh Gregor
434783808a Bug 1003808 part 7 - Convert WSFragment members to nsINode; r=ehsan 2014-05-02 14:11:26 +03:00
Aryeh Gregor
9886b7ea25 Bug 1003808 part 6 - Convert nsWSRunObject members to nsINode; r=ehsan 2014-05-02 14:11:26 +03:00
Aryeh Gregor
d48aa32574 Bug 1003808 part 5 - Allow nsEditor::IsEditable to take nsINode*; r=ehsan 2014-04-28 19:03:12 +03:00
Aryeh Gregor
ba48c57163 Bug 1003808 part 4 - Clean up nsAutoTrackDOMPoint; r=ehsan 2014-04-28 18:40:28 +03:00
Aryeh Gregor
8d1b356925 Bug 1003808 part 3 - Clean up nsRangeStore; r=ehsan 2014-04-28 18:34:05 +03:00
Aryeh Gregor
22dae1beb5 Bug 1003808 part 2 - Clean up nsEditorUtils::IsDescendantOf; r=ehsan 2014-04-28 18:34:05 +03:00
Aryeh Gregor
1b1fb53eb9 Bug 1003808 part 1 - Clean up DOMPoint; r=ehsan 2014-04-28 18:34:05 +03:00
Aryeh Gregor
62b85e51b9 Bug 1002429 part 9 - Clean up nsHTMLEditor::RebuildDocumentFromSource; r=ehsan 2014-04-28 14:54:47 +03:00
Aryeh Gregor
7968de819d Bug 1002429 part 8 - Clean up nsHTMLEditor::CreateElementWithDefaults; r=ehsan 2014-04-28 14:54:47 +03:00
Aryeh Gregor
aaab3d158e Bug 1002429 part 7 - Clean up nsEditor::CreateHTMLContent; r=ehsan 2014-04-28 14:54:47 +03:00
Aryeh Gregor
1a41adda96 Bug 1002429 part 6 - Clean up nsHTMLEditor::ReplaceHeadContentsWithHTML; r=ehsan 2014-04-28 14:54:46 +03:00
Aryeh Gregor
c08efe28ef Bug 1002429 part 5 - Clean up nsHTMLEditor::TabInTable; r=ehsan 2014-04-28 14:54:46 +03:00
Aryeh Gregor
66a2731d0f Bug 1002429 part 4 - Clean up nsHTMLEditor::CollapseSelectionToDeepestNonTableFirstChild; r=ehsan 2014-04-28 14:54:46 +03:00
Aryeh Gregor
02bcb38d44 Bug 1002429 part 3 - Clean up nsEditor::IsContainer; r=ehsan 2014-04-28 14:54:46 +03:00
Aryeh Gregor
78ca193f10 Bug 1002429 part 2 - Clean up nsHTMLEditor::GetEnclosingTable; r=ehsan 2014-04-28 14:54:46 +03:00
Aryeh Gregor
260eded4ba Bug 1002429 part 1 - Clean up nsHTMLEditor::GetElementOrParentByTagName; r=ehsan 2014-04-28 14:54:46 +03:00
Aryeh Gregor
7881636ece Bug 1001351 - Allow null-safe conversion from nsINode to nsIDOMNode; r=smaug 2014-04-25 13:34:42 +03:00
Aryeh Gregor
4d42e4ced6 Bug 1000959 - nsHTMLEditor.cpp cleanup; r=ehsan 2014-04-25 13:34:42 +03:00
Ehsan Akhgari
bb1a0d063a Bug 992118 - Correctly handle the underscore in the LANG environment variable; r=smaug 2014-04-30 18:01:12 -04:00
Birunthan Mohanathas
504b581650 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Ehsan Akhgari
ce353a11c2 Bug 997805 - Correctly restore the placeholder text after the editor object is re-attached to a text control as a result of a reframe; r=bzbarsky
Recomputing the placeholder visibility does not require the placeholder div
itself to be present, as the only information required for that is the current
value of the text control which is present either way.  This patch fixes
nsTextEditorState::ValueWasChanged and nsTextEditorState::UpdatePlaceholderVisibility
to that effect.

But the real fix is in nsTextEditorState::UpdatePlaceholderText, where after
setting the placeholder text on the anonymous div, we redo the placeholder
visibility computation.  Since this function can be called from
HTMLTextAreaElement::CreatePlaceholderNode during frame construction, the
GetValue function may return the wrong value since the editor has not properly
been set up yet, resulting in this bug.  And this function call is useless
anyway, because changing the placeholder text does not really affect the
result of the visibility computation, so there is no need to do this work
in the first place.
2014-04-25 16:40:44 -04:00
Birunthan Mohanathas
c8c6722bb4 Bug 900903 - Part 2: Change uses of numbered macros in nsCycleCollectionParticipant.h to the variadic variants. r=smaug 2014-04-25 12:49:00 -04:00
Masayuki Nakano
44bfd22cce Bug 998188 part.1 Add test for this crash on debug build r=ehsan 2014-04-26 08:52:12 +09:00
Wes Kocher
5fb9a7146e Backed out changeset 669fdba2ceef (bug 997805) for reftest bustage on a CLOSED TREE 2014-04-25 15:12:22 -07:00
Ehsan Akhgari
baf2940c9a Bug 997805 - Correctly restore the placeholder text after the editor object is re-attached to a text control as a result of a reframe; r=bzbarsky
Recomputing the placeholder visibility does not require the placeholder div
itself to be present, as the only information required for that is the current
value of the text control which is present either way.  This patch fixes
nsTextEditorState::ValueWasChanged and nsTextEditorState::UpdatePlaceholderVisibility
to that effect.

But the real fix is in nsTextEditorState::UpdatePlaceholderText, where after
setting the placeholder text on the anonymous div, we redo the placeholder
visibility computation.  Since this function can be called from
HTMLTextAreaElement::CreatePlaceholderNode during frame construction, the
GetValue function may return the wrong value since the editor has not properly
been set up yet, resulting in this bug.  And this function call is useless
anyway, because changing the placeholder text does not really affect the
result of the visibility computation, so there is no need to do this work
in the first place.
2014-04-25 16:40:44 -04:00
Aryeh Gregor
57e61e9d15 Bug 950386 - Move mozilla::Selection to mozilla::dom::Selection; r=ehsan 2014-04-10 19:09:40 +03:00
Aryeh Gregor
e229b75b12 Bug 923376 - Spellcheck all appended nodes, not just the first; r=ehsan 2014-04-06 17:56:08 +03:00
Robert O'Callahan
299ea95ae7 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.

--HG--
extra : rebase_source : 81a01a957b4b1e0cf868505a1b23c9110a2f4b3a
2014-04-15 00:33:47 +12:00
Ehsan Akhgari
1c908f18d3 Bug 996009 - Ensure that the richtext2 browserscope tests do not attempt to contact the external network; r=roc 2014-04-15 09:32:36 -04:00
Carsten "Tomcat" Book
65d5144bd3 Backed out changeset 5a50c5065173 (bug 992944) for spellcheck mochitest test failures on a CLOSED TREE 2014-04-10 11:28:23 +02:00
Jan Horak
4d1a5e7ca6 Bug 992944 - Spell checker skips current locale when pref spellchecker.dictionary or document content invalid. r=ehsan 2014-04-07 08:00:00 +02:00
Masayuki Nakano
61d6abba29 Bug 993253 Implement DOM InputEvent interface with isComposing attribute r=smaug+ehsan 2014-04-10 16:11:37 +09:00
Geoff Brown
d0b48b9ecb Bug 962676 - Reset expected assertion counts for Android crashtests; r=blassey 2014-04-09 08:38:44 -06:00
Peter Van der Beken
94d6fed69a Bug 984497 - Use SpecialPowers more and change SpecialPower usage to deal with Window on WebIDL bindings. r=bz.
--HG--
rename : content/media/webspeech/synth/test/test_setup.html => content/media/webspeech/synth/test/file_setup.html
rename : content/media/webspeech/synth/test/test_speech_queue.html => content/media/webspeech/synth/test/file_speech_queue.html
rename : content/media/webspeech/synth/test/test_speech_simple.html => content/media/webspeech/synth/test/file_speech_simple.html
extra : rebase_source : 687daf9d78e69fe6ae21f7c1a26503cf88a18b97
2014-02-15 22:12:34 +01:00
Peter Van der Beken
f8dd810da5 Back out 75c95dac7fe0 (bug 984497) and f1b0d3d13755 (bug 990475) to fix bustage on a CLOSED TREE.
--HG--
extra : rebase_source : a63315cd428faeb95464f6ad76946d1c0c6d36c3
2014-04-07 22:18:53 +02:00
Peter Van der Beken
3d1f466234 Bug 984497 - Use SpecialPowers more and change SpecialPower usage to deal with Window on WebIDL bindings. r=bz.
--HG--
rename : content/media/webspeech/synth/test/test_setup.html => content/media/webspeech/synth/test/file_setup.html
rename : content/media/webspeech/synth/test/test_speech_queue.html => content/media/webspeech/synth/test/file_speech_queue.html
rename : content/media/webspeech/synth/test/test_speech_simple.html => content/media/webspeech/synth/test/file_speech_simple.html
extra : rebase_source : 3662ae8b0f35fefb250c9cd048e848d662863855
2014-02-15 22:12:34 +01:00
Carsten "Tomcat" Book
ed5454581b Backed out changeset 1f9bd1c29a40 (bug 923376) mochitest test 4 test failures 2014-04-07 15:51:05 +02:00
Aryeh Gregor
41fcf8b1e5 Bug 923376 - Spellcheck all appended nodes, not just the first; r=ehsan 2014-04-06 17:56:08 +03:00
Masayuki Nakano
852403f45d Bug 990855 part.2 Remove dom/events from local includes of moz.build files r=smaug 2014-04-03 13:18:38 +09:00
Masayuki Nakano
b6e410dfc1 Bug 990855 part.1 Export TextComposition.h as mozilla/TextComposition.h r=smaug 2014-04-03 13:18:37 +09:00
Masayuki Nakano
5c4524957a Bug 989212 Rename nsEventStates to mozilla::EventStates r=smaug
--HG--
rename : dom/events/nsEventStates.h => dom/events/EventStates.h
2014-04-03 13:18:36 +09:00
Daniel Holbert
e294a7d058 Bug 984786 part 6: Mark struct nsRangeStore in /editor as MOZ_FINAL & give it a private destructor. r=ehsan 2014-04-02 09:21:12 -07:00
Ehsan Akhgari
345b35a6e8 Bug 798158 - Part 1: Use a pointer-sized type to store refcounts internally; r=bsmedberg 2014-03-27 16:38:33 -04:00
L. David Baron
a085fede18 Bug 986409 - Skip fewer entire reftest directories on B2G. r=roc 2014-03-23 18:44:50 -07:00
Robert O'Callahan
ae259da2ce Bug 918189. Part 1.5: Implement GeometryUtils.convertPointFromNode, convertRectFromNode, and convertQuadFromNode. r=jst
--HG--
extra : rebase_source : 2d01b350d84f220add776341a9cbcda5ace2ef01
2014-03-12 09:11:39 +08:00