Ehsan Akhgari
2be6b796b2
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
4eab9ca44b
Bug 752304 - Logic error in nsHTMLEditor::SetInlinePropertyOnNodeImpl; r=ehsan
2012-05-07 08:54:54 +03:00
Aryeh Gregor
eb33f59b5f
Bug 700538 part 4 - Remove now-redundant nsHTMLEditor::IsNodeInActiveEditor; r=ehsan
2012-05-06 10:53:11 +03:00
Aryeh Gregor
2ce277835c
Bug 700538 part 3 - Add and use new EditorRoot methods in nsEditor; r=ehsan
2012-05-06 10:53:11 +03:00
Aryeh Gregor
3c77c5664c
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
e17949e50b
Bug 700538 part 1 - Name some nsEditor methods more consistently; r=ehsan
2012-05-01 13:01:28 +03:00
Aryeh Gregor
cb28d967ce
Bug 751547 - Unify action enums in editor/; r=ehsan
2012-05-05 21:52:29 +03:00
Ms2ger
9f3641f0f6
Bug 751323 - Cleanup nsHTMLEditRules::RemoveEmptyNodes(); r=ehsan
2012-05-05 11:00:06 +02:00
Ms2ger
f27bb86c9a
Bug 750062 - Assert preconditions in IsVisTextNode; r=ehsan
2012-05-05 11:00:06 +02:00
Ms2ger
8d98196bf0
Bug 750085 - Pass nsIContent to SetInlinePropertyOnNodeImpl and use nsINode APIs to iterate over children; r=ehsan
2012-05-05 11:00:06 +02:00
Ms2ger
168e65323f
Bug 750079 - Part c: Pass nsIContent to nsHTMLEditor::HasAttrVal; r=ehsan
2012-05-05 11:00:06 +02:00
Ms2ger
b6b5f01a68
Bug 750079 - Part b: Return nsIContent from GetPriorHTMLSibling/GetNextHTMLSibling; r=ehsan
2012-05-05 11:00:06 +02:00
Ms2ger
93937bfab0
Bug 750079 - Part a: Add IsOnlyAttribute(nsIContent*, const nsAString&); r=ehsan
2012-05-05 11:00:06 +02:00
Ms2ger
94020e23a5
Bug 749329 - Cleanup TypeInState; r=ehsan
2012-05-05 11:00:06 +02:00
Ms2ger
a015bced9a
Bug 750063 - Allow passing null to nsTextEditRules::CreateMozBR's outparam; r=ehsan
2012-05-05 11:00:05 +02:00
Aryeh Gregor
4f8b1fc26d
Bug 748313 part 2 - Always try to use CSS values, even for collapsed selections; r=ehsan
2012-05-03 10:09:44 +03:00
Aryeh Gregor
33e66eaeff
Bug 748313 part 1 - Remove unused argument to nsHTMLEditor::IsTextPropertySetByContent; r=ehsan
2012-05-03 10:09:44 +03:00
Aryeh Gregor
a6483f6245
Bug 746915 part 1 - Move editing-related tests to editor/ directories; r=ehsan
...
--HG--
rename : content/html/content/test/test_bug408231.html => editor/libeditor/base/tests/test_bug408231.html
rename : content/html/document/test/test_bug742261.html => editor/libeditor/base/tests/test_bug742261.html
rename : content/html/document/test/test_bug404320.html => editor/libeditor/html/tests/test_bug404320.html
rename : content/html/document/test/test_bug468353.html => editor/libeditor/html/tests/test_bug468353.html
rename : layout/reftests/bugs/388980-1-ref.html => layout/reftests/editor/388980-1-ref.html
rename : layout/reftests/bugs/388980-1.html => layout/reftests/editor/388980-1.html
2012-05-03 10:09:44 +03:00
Aryeh Gregor
00a49bb9eb
Bug 748303 part 3 - Convert (Tag)CanContain(Tag) to nsIAtom*; r=ehsan
2012-05-01 09:34:52 +03:00
Aryeh Gregor
edf98a6601
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
0585cf802b
Bug 748303 part 1 - Clean up various nsHTMLEditRules methods; r=ehsan
2012-05-01 09:34:52 +03:00
Jared Wein
0152ba6f95
Bug 702463 - Increasing the timeout of the tests due to the presence of multiple refresh drivers. r=ehsan
2012-04-30 13:44:55 -04:00
Graeme McCutcheon
c39d9570bd
Followup nit for bug 686203 - comment change. r=ehsan DONTBUILD
2012-04-26 08:54:20 +01:00
Aryeh Gregor
8ef0db5648
Bug 743819 - Only re-spellcheck new nodes on insertions, not everything; r=ehsan
2012-04-25 08:56:32 +03:00
Masayuki Nakano
e089b336f8
Bug 630811 part.2 Replace nsInputEvent::isShift, nsInputEvent::isControl, nsInputEvent::isAlt and nsInputEvent::isMeta r=smaug
2012-04-25 12:00:02 +09:00
Aryeh Gregor
51d3c28a67
Bug 480647 part 6 - Handle CSS in execCommand("fontSize"); r=ehsan
2012-04-24 13:57:49 +03:00
Aryeh Gregor
6a59021f84
Bug 480647 part 5 - Reject invalid values from execCommand("fontSize"); r=ehsan
2012-04-24 13:57:46 +03:00
Aryeh Gregor
e04f4100c1
Bug 480647 part 3 - Clean up nsHTMLCSSUtils::GenerateCSSDeclarationsFromHTMLStyle; r=ehsan
2012-04-24 13:57:23 +03:00
Ehsan Akhgari
fec480dc6c
Merge mozilla-central into birch
2012-04-22 16:10:35 -04:00
Ehsan Akhgari
545bb7a0b1
Merge mozilla-central into birch
2012-04-20 13:50:08 -04:00
Aryeh Gregor
785ec48d50
Bug 746515 part 5 - Only add style="" to empty <span>s; r=ehsan
2012-04-20 09:33:21 +03:00
Aryeh Gregor
ab16a793f7
Bug 746515 part 4 - Remove styles more aggressively in execCommand(); r=ehsan
2012-04-20 09:33:21 +03:00
Aryeh Gregor
eb310d0315
Bug 746515 part 3 - Remove empty <font> as well as <span>; r=ehsan
2012-04-20 09:33:21 +03:00
Aryeh Gregor
8f1e01e99c
Bug 746515 part 2 - Clean up nsHTMLEditor::SetInlinePropertyOnNode; r=ehsan
2012-04-20 09:33:21 +03:00
Aryeh Gregor
30275f2a2f
Bug 746515 part 1 - Clean up nsHTMLEditor::SetInlineProperty; r=ehsan
2012-04-20 09:33:21 +03:00
Ehsan Akhgari
731cf9d3bd
Merge mozilla-central into birch
2012-04-19 10:03:36 -04:00
Ehsan Akhgari
3c7006508c
Bug 745494 - Hide the anonymous editing UI before its too late; r=roc a=blocking
2012-04-18 20:10:49 -04:00
Aryeh Gregor
9934ea9340
Bug 745723 - Only store known fails in currentStatus.js for richtext2, like for richtext; r=ehsan
2012-04-18 17:26:03 +03:00
Aryeh Gregor
7bf2c8a9b0
Bug 317093 part 4 - Use computed style for command state even if styleWithCSS is false; r=ehsan
2012-04-18 17:26:02 +03:00
Aryeh Gregor
63a1b91dc4
Bug 317093 part 3 - Clean up nsHTMLEditor::GetInlinePropertyBase; r=ehsan
2012-04-18 17:26:02 +03:00
Aryeh Gregor
0eba053047
Bug 480647 part 1 - Clean up nsHTMLCSSUtils::IsCSSEquivalentToHTMLInlineStyleSet; r=ehsan
2012-04-17 20:50:19 +03:00
Aryeh Gregor
abb362a74e
Bug 745701 part 2 - Strip existing styles more aggressively in execCommand(); r=ehsan
2012-04-17 20:50:19 +03:00
Aryeh Gregor
da3e9a4a14
Bug 745701 part 1 - Clean up nsHTMLEditor::RemoveStyleInside; r=ehsan
2012-04-17 20:50:19 +03:00
Aryeh Gregor
b2aeb24653
Bug 745528 - execCommand() should apply style="" to only inline elements, not blocks; r=ehsan
2012-04-17 20:50:19 +03:00
Aryeh Gregor
61eb102268
Bug 205485 - execCommand("backcolor") should work the same as execCommand("hilitecolor"); r=ehsan
2012-04-17 18:37:40 +03:00
Graeme McCutcheon
50f4305256
Bug 686203 - nsHTMLEditorEventListener's MouseDown listener should disregard events outwith its editor. Also fixes bug 578771. r=ehsan a=blassey
2012-04-13 13:52:12 +01:00
Aryeh Gregor
d12d659db6
Bug 738385 part 2 - queryCommand*() should not throw for commands that don't support them; r=ehsan
2012-04-06 10:42:54 +03:00
Aryeh Gregor
2a90e237d9
Bug 279330 part 2 - execCommand("hilitecolor") should work even in non-CSS mode; r=ehsan
2012-04-17 13:18:08 +03:00
Ms2ger
24f9541252
Bug 744507 - Part b: Add nsINode versions in GetPriorHTMLSibling/GetNextHTMLSibling; r=ehsan
2012-04-14 15:09:38 +02:00
Ms2ger
5411102ccb
Bug 744507 - Part a: Preparatory cleanup in GetPriorHTMLSibling/GetNextHTMLSibling; r=ehsan
2012-04-14 15:09:21 +02:00