Commit Graph

1121 Commits

Author SHA1 Message Date
Aryeh Gregor
22b8bf8aac Bug 738440 - Support queryCommandState("stylewithcss"); r=ehsan 2012-03-23 15:03:42 -04:00
Aryeh Gregor
2c1ee92a02 Bug 738366 - Default styleWithCSS to false; r=ehsan 2012-04-03 17:16:05 +03:00
Kyle Huey
d6238234e1 No bug: Followups to my previous two commits. 2012-03-31 07:54:12 -07:00
Kyle Huey
7073f4e284 Bug 718316: Disable failing tests. 2012-03-31 07:22:31 -07:00
Marco Bonardo
31496b4a78 Merge central to inbound 2012-03-30 12:27:55 +02:00
Ms2ger
9427a8db0d Bug 738608 - Introduce nsINode::Length(); r=smaug 2012-03-29 23:09:04 +02:00
Masayuki Nakano
ada065ae94 Bug 739557 Set focus to editing host and use document.getSelection().collapse() for setting caret to edit target; r=ehsan 2012-03-29 09:10:22 -07:00
Mike Conley
4e49af0a00 Bug 746993 - Fix editor caret behaviour when pressing RETURN after a BR node. r=ehsan, a=tracking-firefox 2012-04-20 12:57:17 -04:00
Masayuki Nakano
e780865b68 Bug 722961 Add tests for autocomplete with composition r=m_kato 2012-03-27 23:22:56 +09:00
Masayuki Nakano
2ab8e3fb4a Bug 668606 input event should be fired on all editors r=ehsan+smaug, sr=smaug 2012-03-27 10:36:44 +09:00
aceman
8e5d9b42ce Bug 732691 - Further cleanups in /mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp found in bug 368758. r=ehsan 2012-03-26 14:58:43 -07:00
Ehsan Akhgari
d33003e285 Bug 732585 - Drag and drop images into message window is broken; r=roc 2012-03-26 09:04:06 -07:00
Matt Brubeck
f83a9ab93e Merge mozilla-central and mozilla-inbound 2012-03-24 09:05:27 -07:00
Ms2ger
a033505149 Bug 738771 - Outparamdel nsEditor::GetDocument(); r=ehsan 2012-03-24 09:19:14 +01:00
Henri Sivonen
f2d3f89eb7 Bug 737417 part 1 - Split charset source constants out of nsIParser.h. r=smaug. 2012-03-22 16:42:42 +02:00
Aryeh Gregor
0d0dc77101 Bug 735805 - Part 2: Fix editor mochitest that runs no tests. r=ehsan 2012-03-16 16:07:16 -04:00
Neil Deakin
f9547aff6d Bug 605991, prevent drops on a parent content page from a child frame from a different domain, r=smaug 2012-03-20 11:21:41 -04:00
Ehsan Akhgari
90f09f9955 Bug 737889 - Part 2: Stop the propagarion of drag/drop events over non-editable content; r=roc 2012-03-23 11:35:40 -04:00
Ehsan Akhgari
5f3425b10d Bug 734530 - Spell check textareas if they're reframed when focused; r=roc
--HG--
rename : layout/reftests/editor/spellcheck-textarea-focused.html => layout/reftests/editor/spellcheck-textarea-focused-reframe.html
2012-03-19 12:21:56 -04:00
Henri Sivonen
82c137d953 Bug 650776 part 1 - Introduce a new HTML source to HTML source sanitizer XPCOM API. r=smaug. 2012-03-19 10:16:20 +02:00
Aryeh Gregor
aeeb5ee819 Bug 735059 - Second and third execCommand() parameters should be optional; r=ehsan 2012-03-12 18:12:19 -04:00
Charles Chan
9f5a593ca0 Bug 729041 - Remove nsEditorParserObserver. r=hsivonen. 2012-03-11 18:27:28 -07:00
Jacob Holzinger
acfe99c129 Bug 696242 - Convert NS_RegisterStaticAtoms and nsCSSScanner::ReportUnexpectedParams to take an array-reference rather than a pointer and length, making it impossible to pass a pointer/length that are inconsistent. r=jwalden
--HG--
extra : rebase_source : 882b5b4d500b1fa242c0a3cfa3084e4171cbaa9d
2012-03-08 18:22:57 -08:00
Serge Gautherie
06584f5688 Bug 732792. (Av1) test_bug674770-2.html: Set "middlemouse.contentLoadURL" preference too. r=ehsan. 2012-03-06 18:14:44 +01:00
aceman
a39be24188 Bug 368758 - Remove obsolete workaround pref editor.quotesPreformatted. r=ehsan 2012-03-02 17:23:01 -05:00
Ehsan Akhgari
f46cc40f13 Bug 730882 - Clean up nsTransactionStack; r=roc 2012-03-02 15:08:40 -05:00
Serge Gautherie
b45e3037cc Bug 489728. (Bv6a_fix) Misplaced '"'. (Bustage fix.) 2012-02-28 10:29:46 +01:00
Mark Capella
7992841265 Bug 489728. (Bv6a) Use passed() in TestTXMgr.cpp, Make passed() accept a va_list in TestHarness.h. f=sgautherie r=ehsan. 2012-02-28 10:17:15 +01:00
Richard Newman
f8f9fa6f5d Merge m-c to m-i. 2012-02-23 18:37:12 -08:00
Richard Newman
85840c2035 Merge last win pgo-green changeset from m-i to m-c. 2012-02-23 18:35:17 -08:00
Matthew Schranz
7e8fb26c1e Bug 698381 - Make Node.cloneNode aDeep argument optional, default to true. r=smaug 2012-02-23 14:23:30 +01:00
Olli Pettay
6139688226 Bug 730013 - don't addref/release nsTransactionManager so much to prevent it to end up to the purple buffer, r=ehsan 2012-02-23 22:47:37 +02:00
Neil Deakin
4f1314899a Bug 499008, part 7, merge html drag type constants into one place, r=ehsan 2012-02-17 09:17:00 -05:00
Neil Deakin
0f1521a84c Bug 499008, part 6, editor drag drop tests, r=ehsan 2012-02-17 09:16:59 -05:00
Neil Deakin
3a318c367e Bug 499008, part 5, merge the text and html implementations of InsertFromDrop, r=ehsan 2012-02-17 09:16:59 -05:00
Neil Deakin
ed4ec92cee Bug 499008, part 4, convert editor drop handling to use datatransfers instead of the drag service, r=ehsan 2012-02-17 09:16:59 -05:00
Neil Deakin
de5e8ee45b Bug 499008, part 2, move editor dragstart handling to ContentAreaDragDrop, r=ehsan 2012-02-17 09:16:59 -05:00
Neil Deakin
cc12e59fdf Bug 499008, part 1, remove spurious event checks drop editor drag handling, r=ehsan 2012-02-17 09:16:59 -05:00
Neil Deakin
ede7023feb Bug 728652, null check return value of MozGetDataAt, r=ehsan 2012-02-23 15:59:45 -05:00
Rafael Ávila de Espíndola
208be36c6c Bug 727221 - mark LastDictionary and nsElementDeletionObserver final. r=ehsan. 2012-02-16 09:39:57 -05:00
Daniel Holbert
706eb31699 Bug 458167 patch 6: s/it's/its/ in comments within editor. r=ehsan 2012-02-15 01:18:24 -08:00
Masayuki Nakano
ed9a3b62d9 Bug 622247 Remove hack for bug 23558 and bug 271815, and add tests for them r=ehsan 2012-02-15 10:38:07 +09:00
Ms2ger
6788cc4bff Bug 724270 - Part b: Use nsINode in GenerateCSSDeclarationsFromHTMLStyle / GetCSSEquivalentToHTMLInlineStyleSet and callers; r=ehsan 2012-02-10 11:04:47 +01:00
Ms2ger
523de6f68f Bug 724270 - Part a: Add an nsINode overload of GetCSSInlinePropertyBase; r=ehsan 2012-02-10 11:04:47 +01:00
Ms2ger
b8ad0423eb Bug 724269 - Add nsHTMLCSSUtils::IsCSSEditableProperty(nsIContent*); r=ehsan 2012-02-10 11:04:47 +01:00
Ms2ger
160b2fe892 Bug 724268 - Simplify nsHTMLCSSUtils::GetDefaultViewCSS; r=ehsan 2012-02-10 11:04:47 +01:00
Ms2ger
d9f537650b Bug 724266 - Add dom::Element* nsHTMLCSSUtils::GetElementContainerOrSelf(nsINode* aNode); r=ehsan 2012-02-10 11:04:46 +01:00
Ms2ger
c3393d42fb Bug 724264 - Consolidate code that checks whether an element has a non-_moz_dirty attribute; r=ehsan 2012-02-10 11:04:46 +01:00
Ms2ger
2cea69e795 Bug 724261 - Use nsINode in nsHTMLEditRules::RelativeChangeIndentationOfElementNode; r=ehsan 2012-02-10 11:04:46 +01:00
Ms2ger
1cd3020364 Bug 723232 - nsHTMLEditRules::RelativeChangeIndentationOfElementNode removes divs with any one attribute; r=ehsan 2012-02-10 11:04:46 +01:00
Ms2ger
7612237b23 Bug 724260 - Add nsHTMLEditRules::IsInListItem(nsINode* aNode); r=ehsan 2012-02-10 11:04:46 +01:00
Ms2ger
4edb97bb95 Bug 724259 - Add nsHTMLEditor::IsNodeInActiveEditor(nsINode* aNode); r=ehsan 2012-02-10 11:04:46 +01:00
Ms2ger
a83254f675 Bug 723252 - Various nsHTMLEditor cleanup; r=ehsan 2012-02-10 11:04:46 +01:00
Ehsan Akhgari
370cc1fde8 Bug 725069 - Part 2: Only accept text and element nodes for the editability check; r=roc 2012-02-08 18:09:51 -05:00
Ehsan Akhgari
a802e7dffa Bug 725069 - Never mark the comment nodes as editable; r=roc 2012-02-07 18:39:05 -05:00
Neil Deakin
cb7c3c2729 Bug 707382, merge nsIDOMDataTransfer and nsIDOMNSDataTransfer, r=jonas 2012-02-07 13:02:32 -05:00
Panagiotis Koutsourakis
791aa57b19 Bug 702388 - Convert Makefiles to use |TEST_DIRS += foo| r=khuey
Files named Makefile.in containing the expression

DIRS += <foo>
or
DIRS = <foo>

inside the conditional expression

ifdef ENABLE_TESTS
...
endif

are changed to

TEST_DIRS += tests

outside any conditional expression.

The files

./layout/Makefile.in
./layout/Makefile.in
./layout/style/Makefile.in
./rdf/Makefile.in
./security/manager/Makefile.in
./content/Makefile.in
./content/smil/Makefile.in
./content/xul/templates/Makefile.in
./content/xul/content/Makefile.in
./content/base/Makefile.in
./content/media/Makefile.in
./parser/htmlparser/Makefile.in
./dom/sms/Makefile.in
./js/jsd/Makefile.in
./js/xpconnect/Makefile.in
./widget/Makefile.in
./widget/windows/Makefile.in
./Makefile.in
./startupcache/Makefile.in
./storage/Makefile.in
./gfx/Makefile.in
./intl/strres/Makefile.in
./intl/uconv/Makefile.in
./intl/unicharutil/Makefile.in
./intl/lwbrk/Makefile.in
./embedding/Makefile.in
./modules/libjar/Makefile.in
./modules/libpref/Makefile.in
./build/Makefile.in
./build/win32/Makefile.in
./xpcom/Makefile.in
./extensions/spellcheck/hunspell/Makefile.in
./extensions/cookie/Makefile.in
./netwerk/Makefile.in
./netwerk/streamconv/Makefile.in
./editor/txmgr/Makefile.in
./toolkit/mozapps/shared/Makefile.in
./toolkit/mozapps/update/Makefile.in
./toolkit/library/Makefile.in
./toolkit/library/Makefile.in
./toolkit/crashreporter/Makefile.in
./toolkit/components/perf/Makefile.in
./toolkit/components/perf/Makefile.in
./toolkit/components/feeds/Makefile.in
./toolkit/components/url-classifier/Makefile.in

contain the string

ifdef ENABLE_TESTS

but have some other statement inside (e.g. TOOL_DIRS += <foo> etc) and
they remain unchanged by this patch.
2012-02-04 17:32:24 +00:00
Ms2ger
1c2ff7f87b Bug 720974 - Remove IsMozEditorBogusNode(nsIDOMNode*); r=ehsan 2012-02-01 11:54:22 +01:00
Ms2ger
cc91aec3cf Bug 722419 - Part b: BeginningOfDocument / GetFirstEditableNode; r=ehsan 2012-02-01 11:54:22 +01:00
Ms2ger
f6c81888f5 Bug 722419 - Part a: Introduce another version of GetNextNode; r=ehsan 2012-02-01 11:54:22 +01:00
Ms2ger
c080e16e2e Bug 722418 - Various nsEditor cleanup; r=ehsan 2012-02-01 11:54:22 +01:00
Ms2ger
36bf294a76 Bug 722416 - Outparamdel nsHTMLCSSUtils::GetElementContainerOrSelf; r=ehsan 2012-02-01 11:54:22 +01:00
Ms2ger
947056f764 Bug 722415 - Cleanup nsHTMLEditor::GetHTMLBackgroundColorState; r=ehsan 2012-02-01 11:54:22 +01:00
Ms2ger
0df4df210c Bug 722412 - Cleanup nsPlaintextEditor::SetDocumentCharacterSet; r=ehsan 2012-02-01 11:54:22 +01:00
Ms2ger
a10b7e2138 Bug 722411 - Cleanup nsPlaintextEditor::GetAndInitDocEncoder; r=ehsan 2012-02-01 11:54:22 +01:00
Ms2ger
0c2f4cf9e4 Bug 721493 - Cleanup nsHTMLEditor's HasAttr / HasAttrVal; r=ehsan 2012-02-01 11:54:22 +01:00
Ms2ger
ced62efd51 Bug 721483 - Clean up RemoveElementIfNoStyleOrIdOrClass / HasStyleOrIdOrClass; r=ehsan 2012-02-01 11:54:22 +01:00
Ms2ger
7edd964218 Bug 721460 - Don't use GetIsCSSEnabled internally; r=ehsan 2012-02-01 11:54:22 +01:00
Ms2ger
e44853ff49 Bug 722406 - Part b: Cleanup nsHTMLEditor::SetCaretInTableCell; r=ehsan 2012-02-01 11:54:22 +01:00
Ms2ger
33edf64f10 Bug 720982 - Part b: Remove nsHTMLEditor::InsertBR; r=ehsan 2012-02-01 11:54:21 +01:00
Ms2ger
7602d38c60 Bug 720982 - Part a: Remove nsHTMLEditor::CreateBRImpl; r=ehsan 2012-02-01 11:54:21 +01:00
David Zbarsky
452eb69c4e Bug 682611 - Part 3: Remove ns(I)RangeUtils; r=smaug 2012-01-28 16:42:14 +01:00
Matthew Schranz
bfa49b5cb5 Bug 698384 - Make document.createNodeIterator's 2nd and 3rd parameters optional. r=smaug 2012-01-25 13:47:50 +01:00
Ms2ger
7b3abf90b0 Bug 718170 - Part c: Use nsINode in IsEmptyCell; r=ehsan 2012-01-25 08:50:06 +01:00
Ms2ger
e81715cf11 Bug 718170 - Part b: Use nsINode in IsVisTextNode; r=ehsan 2012-01-25 08:50:05 +01:00
Ms2ger
21e7bf16da Bug 718170 - Part a: Use nsINode in IsEmptyNodeImpl; r=ehsan 2012-01-25 08:50:05 +01:00
Boris Zbarsky
5d70c080d6 Bug 713427. Don't assume things about lazy frame construction bits that just aren't true when doing IsVisible() testing. r=tnikkel 2012-01-18 16:10:06 -05:00
Justin Wood
b50ee39e04 Merge last green PGO from inbound to mozilla-central 2012-01-16 22:27:53 -05:00
Tim Taubert
d798b882da merge m-c to fx-team 2012-01-16 11:20:19 +01:00
Justin Wood
94e66a942e Merge m-c tip to m-i 2012-01-15 05:29:24 -05:00
Ms2ger
15ab474eed Bug 717370 - Cleanup range-using and nearby code in editor; r=smaug+ehsan 2012-01-15 09:13:12 +01:00
Jared Wein
3a800a6051 Bug 198964 - Enable smooth scrolling by default. r=gavin 2012-01-13 16:26:34 -08:00
Ehsan Akhgari
f8066a7f28 Test case for bug 639736; r=roc 2012-01-16 16:07:46 -05:00
Ehsan Akhgari
51af773cc0 Bug 718316 - Try to fix the intermittent orange introduced after the landing of bug 598482 by flushing before capturing the screenshot; r=bzbarsky 2012-01-16 14:41:54 -05:00
Masayuki Nakano
d17ac0bf94 Bug 717560 input events during composition should be fired after auto batch is gone r=ehsan 2012-01-13 15:19:22 +09:00
Masayuki Nakano
90661092ce Bug 717147 part.2 Don't do autocomplete during composition r=dolske 2012-01-13 15:19:22 +09:00
Masayuki Nakano
6e8f73fabc Bug 717147 input events which are fired after compositionupdate should be trusted events r=ehsan 2012-01-13 15:19:22 +09:00
Jignesh Kakadiya
132bb9f668 Bug 716215 - nsHTMLEditor::IsEmptyNodeImpl checks if the parent is a form widget instead of the child. r=Ms2ger; sr=ehsan 2012-01-11 09:23:09 +01:00
Ms2ger
0b7161afcb Bug 716207 - Part b: Cleanup nsTextEditRules::RemoveRedundantTrailingBR; r=ehsan 2012-01-11 09:23:07 +01:00
Ms2ger
d4997dd3a0 Bug 716207 - Part a: Cleanup nsTextEditRules::DidUndo; r=ehsan 2012-01-11 09:23:07 +01:00
Ms2ger
1dac0d44c1 Bug 715110 - Don't use getPreventDefault in editor; r=ehsan 2012-01-11 09:23:07 +01:00
Ms2ger
2e0c12b87c Bug 716630 - Kill editor's warnings; r=ehsan 2012-01-11 09:22:16 +01:00
Ehsan Akhgari
9253a2d3b5 Bug 716456 - Make sure to pass a correct ancestor to GetPreviousContent; r=bzbarsky 2012-01-10 15:35:04 -05:00
David Zbarsky
e96cf389ad Bug 682611 - Part 2: Remove nsIRange; r=smaug 2012-01-10 15:19:54 +01:00
David Zbarsky
27f2baf8e1 Bug 682611 - Part 1: Merge nsIDOMRange and nsIDOMNSRange; r=Ms2ger r=smaug 2012-01-10 15:19:54 +01:00
Markus Stange
28a839403a Bug 598482 part 15 - Rename view update batches to refresh disable batches and only use them in the two places that can enter reflow (where synchronous painting is permitted). r=roc 2011-12-23 22:52:23 -05:00
Markus Stange
cb70f28632 Bug 598482 part 7 - Remove NS_VMREFRESH_* flags. NS_VMREFRESH_NO_SYNC is now the unchangable default. r=roc 2011-12-23 22:52:22 -05:00
Markus Stange
b4421e4a3b Bug 598482 part 6 - Remove nsIPlaintextEditor::eEditorUseAsyncUpdatesMask because it doesn't have any effect anymore. r=roc 2011-12-23 22:52:21 -05:00
Boris Zbarsky
63ca05b118 Bug 716031. Fix editor test to not assume simply doing a timeout will flush layout. r=ehsan pending 2012-01-14 22:54:48 -05:00
Ehsan Akhgari
14f7de1cd3 Bug 716593 - test_bug596001.html calls SimpleTest.finish needlessly; r=roc 2012-01-09 17:07:17 -05:00