Граф коммитов

752 Коммитов

Автор SHA1 Сообщение Дата
Ehsan Akhgari a6472c6c35 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
Aryeh Gregor f9deaf9072 Bug 700538 part 4 - Remove now-redundant nsHTMLEditor::IsNodeInActiveEditor; r=ehsan 2012-05-06 10:53:11 +03:00
Aryeh Gregor 7f1f8f3356 Bug 700538 part 3 - Add and use new EditorRoot methods in nsEditor; r=ehsan 2012-05-06 10:53:11 +03:00
Aryeh Gregor 24ef82ed21 Bug 700538 part 2 - Make methods that return editing hosts return dom::Element* instead of nsIContent*; r=ehsan 2012-05-06 10:53:11 +03:00
Aryeh Gregor b7de2dce5b Bug 751547 - Unify action enums in editor/; r=ehsan 2012-05-05 21:52:29 +03:00
Ms2ger be5202aacd Bug 750062 - Assert preconditions in IsVisTextNode; r=ehsan 2012-05-05 11:00:06 +02:00
Ms2ger 7bf953a758 Bug 750079 - Part b: Return nsIContent from GetPriorHTMLSibling/GetNextHTMLSibling; r=ehsan 2012-05-05 11:00:06 +02:00
Aryeh Gregor bc4da0f5d0 Bug 748313 part 1 - Remove unused argument to nsHTMLEditor::IsTextPropertySetByContent; r=ehsan 2012-05-03 10:09:44 +03:00
Aryeh Gregor 116fb0ea91 Bug 748303 part 3 - Convert (Tag)CanContain(Tag) to nsIAtom*; r=ehsan 2012-05-01 09:34:52 +03:00
Aryeh Gregor c6938beb78 Bug 748303 part 2 - Handle non-text/elements correctly when calling (Tag)CanContain(Tag); r=ehsan 2012-05-01 09:34:52 +03:00
Aryeh Gregor d9de0b261d Bug 743819 - Only re-spellcheck new nodes on insertions, not everything; r=ehsan 2012-04-25 08:56:32 +03:00
Masayuki Nakano 6bde61778e Bug 630811 part.2 Replace nsInputEvent::isShift, nsInputEvent::isControl, nsInputEvent::isAlt and nsInputEvent::isMeta r=smaug 2012-04-25 12:00:02 +09:00
Ehsan Akhgari 7aad4509a5 Bug 745494 - Hide the anonymous editing UI before its too late; r=roc a=blocking 2012-04-18 20:10:49 -04:00
Ms2ger 7482a2122b Bug 744507 - Part b: Add nsINode versions in GetPriorHTMLSibling/GetNextHTMLSibling; r=ehsan 2012-04-14 15:09:38 +02:00
Ms2ger 64beece2b3 Bug 744507 - Part a: Preparatory cleanup in GetPriorHTMLSibling/GetNextHTMLSibling; r=ehsan 2012-04-14 15:09:21 +02:00
Ms2ger 5a121505c1 Backing out bf0a78471e5e:dc7022e2d807 for inexplicable windows crashes. 2012-04-14 17:52:34 +02:00
Ms2ger 2e04964e1d Bug 744507 - Part b: Add nsINode versions in GetPriorHTMLSibling/GetNextHTMLSibling; r=ehsan 2012-04-14 15:09:38 +02:00
Ms2ger b5f8e2ce51 Bug 744507 - Part a: Preparatory cleanup in GetPriorHTMLSibling/GetNextHTMLSibling; r=ehsan 2012-04-14 15:09:21 +02:00
Ehsan Akhgari 1cb9c37463 Bug 743632 - Fix nsHTMLEditor::GetNextHTMLSibling to return the correct node; r=roc
--HG--
extra : rebase_source : 360c3800e8546aeb9e2ec0946127a85ae1155d56
2012-04-09 12:46:28 -04:00
Aryeh Gregor 04a16beaaa Bug 316447 - execCommand("insertHorizontalRule") should not set height/width; r=ehsan 2012-04-04 13:47:36 +03:00
Masayuki Nakano 533d343879 Bug 668606 input event should be fired on all editors r=ehsan+smaug, sr=smaug 2012-03-27 10:36:44 +09:00
Ms2ger 631d559863 Bug 738771 - Outparamdel nsEditor::GetDocument(); r=ehsan 2012-03-24 09:19:14 +01:00
Neil Deakin 5eab700c3d Bug 499008, part 1, remove spurious event checks drop editor drag handling, r=ehsan 2012-02-17 09:16:59 -05:00
Daniel Holbert b5e26d1834 Bug 458167 patch 6: s/it's/its/ in comments within editor. r=ehsan 2012-02-15 01:18:24 -08:00
Ms2ger bf385b0569 Bug 724259 - Add nsHTMLEditor::IsNodeInActiveEditor(nsINode* aNode); r=ehsan 2012-02-10 11:04:46 +01:00
Ms2ger 0c18751d87 Bug 723252 - Various nsHTMLEditor cleanup; r=ehsan 2012-02-10 11:04:46 +01:00
Ms2ger a6282d645a Bug 720974 - Remove IsMozEditorBogusNode(nsIDOMNode*); r=ehsan 2012-02-01 11:54:22 +01:00
Ms2ger 1c7f4b15ef Bug 722415 - Cleanup nsHTMLEditor::GetHTMLBackgroundColorState; r=ehsan 2012-02-01 11:54:22 +01:00
Ms2ger 816256030a Bug 721460 - Don't use GetIsCSSEnabled internally; r=ehsan 2012-02-01 11:54:22 +01:00
Ms2ger 2b5e0e62e2 Bug 722406 - Part b: Cleanup nsHTMLEditor::SetCaretInTableCell; r=ehsan 2012-02-01 11:54:22 +01:00
Ms2ger 8cc452c31b Bug 720982 - Part b: Remove nsHTMLEditor::InsertBR; r=ehsan 2012-02-01 11:54:21 +01:00
Ms2ger ba9a60a46e Bug 720982 - Part a: Remove nsHTMLEditor::CreateBRImpl; r=ehsan 2012-02-01 11:54:21 +01:00
David Zbarsky 0e922b0c94 Bug 682611 - Part 3: Remove ns(I)RangeUtils; r=smaug 2012-01-28 16:42:14 +01:00
Ms2ger eb5048def2 Bug 718170 - Part c: Use nsINode in IsEmptyCell; r=ehsan 2012-01-25 08:50:06 +01:00
Ms2ger 60f6c34d94 Bug 718170 - Part b: Use nsINode in IsVisTextNode; r=ehsan 2012-01-25 08:50:05 +01:00
Ms2ger 9acebd55d1 Bug 718170 - Part a: Use nsINode in IsEmptyNodeImpl; r=ehsan 2012-01-25 08:50:05 +01:00
Jignesh Kakadiya a04b69f6c6 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 447f5e2d30 Bug 716630 - Kill editor's warnings; r=ehsan 2012-01-11 09:22:16 +01:00
David Zbarsky d8b868d007 Bug 682611 - Part 1: Merge nsIDOMRange and nsIDOMNSRange; r=Ms2ger r=smaug 2012-01-10 15:19:54 +01:00
Jeff Walden ae87ba2e49 Bug 711799 - Fix a bunch of initializing-pointer-from-boolean warnings. r=dholbert
--HG--
extra : rebase_source : 4a5d03b10ad8ac4eaff222037ba3400a26e7cf55
2011-12-18 01:00:47 -05:00
Ms2ger 026860de4e Bug 709523 - Part h: Remove unused variable in nsHTMLEditor::GetBodyElement; r=ehsan a=edmorley 2011-12-11 21:03:49 +01:00
Ms2ger 7b2f0821ba Bug 709523 - Part d: Remove nsHTMLEditor::IsRootTag; r=ehsan a=edmorley 2011-12-11 21:00:28 +01:00
Ms2ger b4e5f9df0b Bug 705439 - Remove dead code: nsHTMLEditor::GetBlockSection / nsHTMLEditor::GetBlockSectionsForRange; r=ehsan 2011-12-03 22:50:17 +01:00
Fabien Cazenave 3986a2889c Bug 684187 - Use dom::Element instead of nsIDOMElement for nsEditor::mRootElement; r=ehsan 2011-12-03 22:50:15 +01:00
Boris Zbarsky cd13d961d8 Bug 635618 part 5. Pass an optional argument to GetPriorNode and GetNextNode to limit the search. r=ehsan 2011-11-28 07:54:32 -05:00
Boris Zbarsky eb0b911148 Bug 635618 part 2. Add nsINode overloads of various editor helper methods. r=ehsan 2011-11-28 07:53:29 -05:00
Masayuki Nakano 69ef6efcb3 Bug 685395 part.5 Reomve IME state in nsIContent r=roc, sr=matspal 2011-11-27 20:51:53 +09:00
Masayuki Nakano 4250b9f3fb Bug 674770 part.1 Shouldn't accept click event if the event target isn't in focused editor r=ehsan 2011-11-26 13:51:48 +09:00
Ms2ger ce8b9600f5 Bug 702102 - Cleanup nsHTMLEditor::GetEmbeddedObjects; r=ehsan 2011-11-16 08:50:20 +01:00
Ehsan Akhgari 87bb510d42 Backout changeset be42bc18185a (bug 612128) because of bug 688423 2011-10-25 22:32:55 -04:00