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

4325 Коммитов

Автор SHA1 Сообщение Дата
Olli Pettay f8d35b16d1 Bug 1283497, unbind editor created native anonymous content properly, r=wchen 2016-07-14 13:41:14 +03:00
Andrew McCreight 28d5875cc9 Bug 1284963 - Make CreateBR return already_AddRefed. r=masayuki
Returning already_AddRefed rather than a raw pointer makes it harder
to make mistakes with refcounting like the one seen in bug 1266882.
2016-07-12 08:58:13 -07:00
Jimmy Wang af06755ad8 Bug 1162050 - Remove instances of eLegacyDragGesture and draggesture. r=enn
MozReview-Commit-ID: 8kP1AY4peos

--HG--
extra : rebase_source : 0f64e55770c2b9cfd9737f8da53111bad007dca6
2016-05-27 14:32:59 -04:00
Carsten "Tomcat" Book d2e362e983 Backed out changeset f8fe3acf2e78 (bug 1162050) 2016-07-11 11:18:48 +02:00
Jimmy Wang 209f78f925 Bug 1162050 - Remove instances of eLegacyDragGesture and draggesture. r=enn
MozReview-Commit-ID: 8kP1AY4peos

--HG--
extra : transplant_source : XY2kY%87%AE%2A%C8%E8MV%86L%22%0B%21%5C%90%1B
2016-05-27 14:32:59 -04:00
Masayuki Nakano fb4dd2591f Bug 1260651 part.61 Replace "etc" with "etc." r=mccr8
MozReview-Commit-ID: JFgd0t2bqzu
2016-07-08 14:15:21 +09:00
Masayuki Nakano 7f30e926b8 Bug 1260651 part.60 editor/libeditor should export some headers which are required by other modules and other modules shouldn't use local include for them r=mccr8
MozReview-Commit-ID: FZSExwkHH2B
2016-07-08 14:03:31 +09:00
Masayuki Nakano f382711dc3 Bug 1260651 part.59 Rename nsEditor to mozilla::EditorBase (and also their file names) r=mccr8
This patch also renames:

EditorInputEventDispatcher -> mozilla::EditorInputEventDispatcher

And some variable names are renamed from aEditor or mEditor to aEditorBase or mEditorBase for making their types clearer.

MozReview-Commit-ID: 2FCXWpLMn8e

--HG--
rename : editor/libeditor/nsEditor.cpp => editor/libeditor/EditorBase.cpp
rename : editor/libeditor/nsEditor.h => editor/libeditor/EditorBase.h
2016-07-08 13:10:13 +09:00
Masayuki Nakano a4ac19d311 Bug 1260651 part.58 Rename nsPlaintextEditor to mozilla::TextEditor (and their file names too) r=mccr8
This patch renames nsPlaintextEditor to mozilla::TextEditor.

Additionally, renames TextEditRules::mEditor to TextEditRules::mTextEditor for making its type clearer.

Finally, renaming following files:

nsPlaintextEditor.h -> TextEditor.h (exposed as mozilla/editor/TextEditor.h)
nsPlaintextEditor.cpp -> TextEditor.cpp
nsPlaintextDataTransfer.cpp -> TextEditorDataTransfer.cpp

MozReview-Commit-ID: Lw8oJi4WglA

--HG--
rename : editor/libeditor/nsPlaintextEditor.cpp => editor/libeditor/TextEditor.cpp
rename : editor/libeditor/nsPlaintextEditor.h => editor/libeditor/TextEditor.h
rename : editor/libeditor/nsPlaintextDataTransfer.cpp => editor/libeditor/TextEditorDataTransfer.cpp
2016-07-09 11:54:50 +09:00
Masayuki Nakano f20dd4bac0 Bug 1260651 part.57 Move classes in nsHTMLObjectResizer.h into mozilla namespace and its file name should be HTMLEditorObjectResizerUtils.h r=mccr8
This patch renames:

ResizerSelectionListener -> mozilla::ResizerSelectionListener
ResizerMouseMotionListener -> mozilla::ResizerMouseMotionListener
DocumentResizeEventListener -> mozilla::DocumentResizeEventListener

And making the header file name HTMLEditorObjectResizerUtils.h because it doesn't define specific class related to its file name and should be clearer that it's related to HTMLEditor.

MozReview-Commit-ID: GOJyEwtFdJV

--HG--
rename : editor/libeditor/nsHTMLObjectResizer.h => editor/libeditor/HTMLEditorObjectResizerUtils.h
2016-07-07 19:49:07 +09:00
Masayuki Nakano 9b6e26f0bb Bug 1260651 part.56 Rename nsHTMLEditor to mozilla::HTMLEditor and related stuff r=mccr8
This patch renames classes/structs as:

nsHTMLEditor -> mozilla::HTMLEditor
nsHTMLEditor::BlobReader -> mozilla::HTMLEditor::BlobReader
SetSelectionAfterTableEdit -> mozilla::AutoSelectionSetterAfterTableEdit

nsHTMLEditor.h -> HTMLEditor.h (exposed as mozilla/editor/HTMLEditor.h)
nsHTMLAbsPosition.cpp -> HTMLAbsPositionEditor.cpp
nsHTMLAnonymousUtils.cpp -> HTMLAnonymousNodeEditor.cpp
nsHTMLDataTransfer.cpp -> HTMLEditorDataTransfer.cpp
nsHTMLEditorStyle.cpp -> HTMLStyleEditor.cpp
nsHTMLInlineTableEditor.cpp -> HTMLInlineTableEditor.cpp
nsHTMLObjectResizer.cpp -> HTMLEditorObjectResizer.cpp
nsTableEditor.cpp -> HTMLTableEditor.cpp

These new file names are clearer names which related to HTMLEditor than old names.

MozReview-Commit-ID: DTWaoFvy0DF

--HG--
rename : editor/libeditor/nsHTMLAbsPosition.cpp => editor/libeditor/HTMLAbsPositionEditor.cpp
rename : editor/libeditor/nsHTMLAnonymousUtils.cpp => editor/libeditor/HTMLAnonymousNodeEditor.cpp
rename : editor/libeditor/nsHTMLEditor.cpp => editor/libeditor/HTMLEditor.cpp
rename : editor/libeditor/nsHTMLEditor.h => editor/libeditor/HTMLEditor.h
rename : editor/libeditor/nsHTMLDataTransfer.cpp => editor/libeditor/HTMLEditorDataTransfer.cpp
rename : editor/libeditor/nsHTMLObjectResizer.cpp => editor/libeditor/HTMLEditorObjectResizer.cpp
rename : editor/libeditor/nsHTMLInlineTableEditor.cpp => editor/libeditor/HTMLInlineTableEditor.cpp
rename : editor/libeditor/nsHTMLEditorStyle.cpp => editor/libeditor/HTMLStyleEditor.cpp
rename : editor/libeditor/nsTableEditor.cpp => editor/libeditor/HTMLTableEditor.cpp
2016-07-09 11:42:33 +09:00
Masayuki Nakano 9e30876e77 Bug 1260651 part.55 Rename nsEditorEventListeners to mozilla::EditorEventListener (and their file names) r=mccr8
MozReview-Commit-ID: HqUUCZkaFTT

--HG--
rename : editor/libeditor/nsEditorEventListener.cpp => editor/libeditor/EditorEventListener.cpp
rename : editor/libeditor/nsEditorEventListener.h => editor/libeditor/EditorEventListener.h
2016-07-07 19:40:51 +09:00
Masayuki Nakano 729e312242 Bug 1260651 part.54 Rename nsHTMLEditorEventListeners to mozilla::HTMLEditorEventListener (and their file names) r=mccr8
MozReview-Commit-ID: DFW3E2WfXzJ

--HG--
rename : editor/libeditor/nsHTMLEditorEventListener.cpp => editor/libeditor/HTMLEditorEventListener.cpp
rename : editor/libeditor/nsHTMLEditorEventListener.h => editor/libeditor/HTMLEditorEventListener.h
2016-07-07 19:36:53 +09:00
Masayuki Nakano 5c69175a0a Bug 1260651 part.53 Rename nsRulesInfo to mozilla::RulesInfo and rename nsEditRules.h to nsIEditRules.h r=mccr8
MozReview-Commit-ID: LGqyvjv9pr6

--HG--
rename : editor/libeditor/nsEditRules.h => editor/libeditor/nsIEditRules.h
2016-07-07 19:33:32 +09:00
Masayuki Nakano baafefc66e Bug 1260651 part.52 Rename nsAutoLockListener to mozilla::AutoLockListener r=mccr8
MozReview-Commit-ID: 728oPlrpb3Q
2016-06-24 21:22:26 +09:00
Masayuki Nakano d8f7c7cf33 Bug 1260651 part.51 Rename nsAutoLockRulesSniffing to mozilla::AutoLockRulesSniffing r=mccr8
MozReview-Commit-ID: BnZ1Y3YXfMK
2016-06-24 21:19:18 +09:00
Masayuki Nakano a0b8f02f00 Bug 1260651 part.50 Rename nsTextRulesInfo to mozilla::TextRulesInfo r=mccr8
MozReview-Commit-ID: Iny5k7WQlbS
2016-06-24 21:12:16 +09:00
Masayuki Nakano 94713accb3 Bug 1260651 part.49 Rename nsTextEditRules to mozilla::TextEditRules (and also their file names) r=mccr8
MozReview-Commit-ID: DzNeLcT1r1e

--HG--
rename : editor/libeditor/nsTextEditRules.cpp => editor/libeditor/TextEditRules.cpp
rename : editor/libeditor/nsTextEditRules.h => editor/libeditor/TextEditRules.h
rename : editor/libeditor/nsTextEditRulesBidi.cpp => editor/libeditor/TextEditRulesBidi.cpp
2016-07-09 11:34:41 +09:00
Masayuki Nakano b4d7fe3219 Bug 1260651 part.48 Rename nsHTMLEditRules to mozilla::HTMLEditRules (and also their file names) r=mccr8
This patch changes following classes/structs:

nsHTMLEditRules -> mozilla::HTMLEditRules
StyleCache -> mozilla::StyleCache
nsTableCellAndListItemFunctor -> mozilla::TableCellAndListItemFunctor
nsBRNodeFunctor -> mozilla::BRNodeFunctor
nsEmptyEditableFunctor -> mozilla::EmptyEditableFunctor
nsUniqueFunctor -> mozilla::UniqueFunctor

MozReview-Commit-ID: KBjfFmnF5p1

--HG--
rename : editor/libeditor/nsHTMLEditRules.cpp => editor/libeditor/HTMLEditRules.cpp
rename : editor/libeditor/nsHTMLEditRules.h => editor/libeditor/HTMLEditRules.h
2016-07-07 19:05:51 +09:00
Masayuki Nakano 395775be56 Bug 1260651 part.47 Rename nsWSRunObject to mozilla::WSRunObject (and also their file names) r=mccr8
Perhaps, there may be better name like WhitespaceRunObject or something, however, for now keep using the term because I don't understand well what it does.

With this patch, following objects are renamed:

nsWSRunObject -> mozilla::WSRunObject
WSType -> mozilla::WSType
nsWSRunObject::WSFragment -> mozilla::WSRunObject::WSFragment
nsWSRunObject::WSPoint -> mozilla::WSRunObject::WSPoint

MozReview-Commit-ID: JgAWiPjOtMW

--HG--
rename : editor/libeditor/nsWSRunObject.cpp => editor/libeditor/WSRunObject.cpp
rename : editor/libeditor/nsWSRunObject.h => editor/libeditor/WSRunObject.h
2016-07-07 19:00:51 +09:00
Masayuki Nakano 240f5eb68d Bug 1260651 part.46 Rename nsHTMLURIRefObject to mozilla::HTMLURIRefObject (and also their file names) r=mccr8
This patch also fixes new bustage of nsHTMLEditRules.cpp and nsWSRunObject.cpp.

MozReview-Commit-ID: 5xgZDP7d6wy

--HG--
rename : editor/libeditor/nsHTMLURIRefObject.cpp => editor/libeditor/HTMLURIRefObject.cpp
rename : editor/libeditor/nsHTMLURIRefObject.h => editor/libeditor/HTMLURIRefObject.h
2016-07-07 18:40:45 +09:00
Masayuki Nakano 0f406c126d Bug 1260651 part.45 Rename nsHTMLCSSUtils to mozilla::CSSEditUtils (and also their file names) r=mccr8
This patch also renames nsHTMLEditor::mHTMLCSSUtils to nsHTMLEditor::mCSSEditUtils.

MozReview-Commit-ID: 1ZZBTqkVOm9

--HG--
rename : editor/libeditor/nsHTMLCSSUtils.cpp => editor/libeditor/CSSEditUtils.cpp
rename : editor/libeditor/nsHTMLCSSUtils.h => editor/libeditor/CSSEditUtils.h
2016-07-07 18:35:13 +09:00
Masayuki Nakano 0306bbfb8d Bug 1260651 part.44 Rename nsAutoMoveNodeSelNotify to mozilla::AutoMoveNodeSelNotify r=mccr8
MozReview-Commit-ID: Bahm520giss
2016-06-24 15:24:44 +09:00
Masayuki Nakano b5223c28f5 Bug 1260651 part.43 Rename nsAutoInsertContainerSelNotify to mozilla::AutoInsertContainerSelNotify r=mccr8
MozReview-Commit-ID: GEfM8GJO3xd
2016-06-24 15:21:35 +09:00
Masayuki Nakano 35be83ddea Bug 1260651 part.42 Rename nsAutoRemoveContainerSelNotify to mozilla::AutoRemoveContainerSelNotify r=mccr8
MozReview-Commit-ID: GyU26vXBGyt
2016-07-07 18:27:18 +09:00
Masayuki Nakano ae63c1d600 Bug 1260651 part.41 Rename mozilla::dom::AutoReplaceContainerSelNotify to mozilla::AutoReplaceContainerSelNotify r=mccr8
MozReview-Commit-ID: 2EB2yQOpjO9
2016-06-24 15:14:16 +09:00
Masayuki Nakano bc3f10f5dc Bug 1260651 part.40 Rename nsAutoTrackDOMPoint to mozilla::AutoTrackDOMPoint r=mccr8
MozReview-Commit-ID: 775stH3pteA
2016-06-24 15:08:16 +09:00
Masayuki Nakano 452819e0f2 Bug 1260651 part.39 Rename nsRangeUpdater to mozilla::RangeUpdater r=mccr8
MozReview-Commit-ID: 8xPhGbSSOjx
2016-06-24 15:01:40 +09:00
Masayuki Nakano 06439489fa Bug 1260651 part.38 Rename nsRangeStore to mozilla::RangeItem because the instances called 'item' in many places r=mccr8
MozReview-Commit-ID: BUU44fpTNyW
2016-06-24 14:44:14 +09:00
Masayuki Nakano 70604c32d8 Bug 1260651 part.37 Rename nsSelectionState to mozilla::SelectionState (and their file names too) r=mccr8
Note that this fixes some new bustage of nsHTMLEditor.

nbsp is conflict with nsWSRunObject.cpp's same name constant.  Therefore, I moved it into nsHTMLEditor and rename it to kNBSP.

And including some missing header files.

MozReview-Commit-ID: hwL8BIbSMQ

--HG--
rename : editor/libeditor/nsSelectionState.cpp => editor/libeditor/SelectionState.cpp
rename : editor/libeditor/nsSelectionState.h => editor/libeditor/SelectionState.h
2016-07-07 18:15:53 +09:00
Masayuki Nakano ef78093cc5 Bug 1260651 part.36 Rename nsInternetCiter to mozilla::InternetCiter (and their files too) r=mccr8
MozReview-Commit-ID: IGznbRrkf23

--HG--
rename : editor/libeditor/nsInternetCiter.cpp => editor/libeditor/InternetCiter.cpp
rename : editor/libeditor/nsInternetCiter.h => editor/libeditor/InternetCiter.h
2016-07-07 18:00:19 +09:00
Masayuki Nakano 4b7aede741 Bug 1260651 part.35 Move PorpItem and TypeInState from global namespace to mozilla namespace r=mccr8
Moving PropItem and TypeInState into mozilla namespace. I.e., these names are:
PropItem -> mozilla::PropItem
TypeInState -> mozilla::TypeInState

Although, there might be better names for them.  They are too general names.

MozReview-Commit-ID: By9CX1KlAaU
2016-07-08 11:51:46 +09:00
Masayuki Nakano 26f08a9046 Bug 1260651 part.34 Rename editor command classes and their file names r=mccr8
This patch renames editor command classes listed below:

* nsBaseEditorCommand -> mozilla::EditorCommandBase
* nsUndoCommand -> mozilla::UndoCommand
* nsRedoCommand -> mozilla::RedoCommand
* nsClearUndoCommand -> mozilla::ClearUndoCommand
* nsCutCommand -> mozilla::CutCommand
* nsCutOrDeleteCommand -> mozilla::CutOrDeleteCommand
* nsCopyCommand -> mozilla::CopyCommand
* nsCopyOrDeleteCommand -> mozilla::CopyOrDeleteCommand
* nsCopyAndCollapseToEndCommand -> mozilla::CopyAndCollapseToEndCommand
* nsPasteCommand -> mozilla::PasteCommand
* nsPasteTransferableCommand -> mozilla::PasteTransferableCommand
* nsSwitchTextDirectionCommand -> mozilla::SwitchTextDirectionCommand
* nsDeleteCommand -> mozilla::DeleteCommand
* nsSelectAllCommand -> mozilla::SelectAllCommand
* nsSelectionMoveCommands -> mozilla::SelectionMoveCommands
* nsInsertPlaintextCommand -> mozilla::InsertPlaintextCommand
* nsPasteQuotationCommand -> mozilla::PasteQuotationCommand

MozReview-Commit-ID: Lf6Lc39FpqM

--HG--
rename : editor/libeditor/nsEditorCommands.cpp => editor/libeditor/EditorCommands.cpp
rename : editor/libeditor/nsEditorCommands.h => editor/libeditor/EditorCommands.h
2016-06-24 11:45:22 +09:00
Masayuki Nakano d074a31e51 Bug 1260651 part.33 Rename nsEditorController to mozilla::EditorController (and their files too) r=mccr8
MozReview-Commit-ID: 5xedcGTDlq1

--HG--
rename : editor/libeditor/nsEditorController.cpp => editor/libeditor/EditorController.cpp
rename : editor/libeditor/nsEditorController.h => editor/libeditor/EditorController.h
2016-07-08 14:26:02 +09:00
Masayuki Nakano 5fb3db78b5 Bug 1260651 part.32 Rename EditTxn to mozilla::EditTransactionBase r=mccr8
This patch also renames NS_DECL_EDITTXN to NS_DECL_EDIT_TRANSACTION_BASE.

MozReview-Commit-ID: 29TQbKBBEhD

--HG--
rename : editor/libeditor/EditTxn.cpp => editor/libeditor/EditTransactionBase.cpp
rename : editor/libeditor/EditTxn.h => editor/libeditor/EditTransactionBase.h
2016-07-08 09:48:34 +09:00
Masayuki Nakano fb4c83aca3 Bug 1260651 part.31 Rename AddStyleSheetTxn and RemoveStyleSheetTxn to mozilla::AddStyleSheetTransaction and mozilla::RemoveStyleSheetTransaction r=mccr8
This patch also moves ImplCycleCollectionTraverse() and ImplCycleCollectionUnlink() to mozilla namespace for avoiding bustage due to confusion caused by "using namespace" in other unified cpp files.

MozReview-Commit-ID: GekPlZnqLs9

--HG--
rename : editor/libeditor/nsStyleSheetTxns.cpp => editor/libeditor/StyleSheetTransactions.cpp
rename : editor/libeditor/nsStyleSheetTxns.h => editor/libeditor/StyleSheetTransactions.h
2016-07-07 17:20:22 +09:00
Masayuki Nakano 68abedfd73 Bug 1260651 part.30 Rename EditAggregateTxn to mozilla::EditAggregateTransaction (and their files too) r=mccr8
MozReview-Commit-ID: TPiBS0eEI4

--HG--
rename : editor/libeditor/EditAggregateTxn.cpp => editor/libeditor/EditAggregateTransaction.cpp
rename : editor/libeditor/EditAggregateTxn.h => editor/libeditor/EditAggregateTransaction.h
2016-07-07 17:11:30 +09:00
Masayuki Nakano 15b7d9237f Bug 1260651 part.29 Rename mozilla::dom::SplitNodeTxn to mozilla::SplitNodeTransaction (and their files too) r=mccr8
MozReview-Commit-ID: 5guZsO9XGLY

--HG--
rename : editor/libeditor/SplitNodeTxn.cpp => editor/libeditor/SplitNodeTransaction.cpp
rename : editor/libeditor/SplitNodeTxn.h => editor/libeditor/SplitNodeTransaction.h
2016-07-07 16:59:55 +09:00
Masayuki Nakano 12a3eb5576 Bug 1260651 part.28 Rename SetDocTitleTxn to mozilla::SetDocumentTitleTransaction (and their files too) r=mccr8
MozReview-Commit-ID: GmVEYr3ZJEl

--HG--
rename : editor/libeditor/SetDocTitleTxn.cpp => editor/libeditor/SetDocumentTitleTransaction.cpp
rename : editor/libeditor/SetDocTitleTxn.h => editor/libeditor/SetDocumentTitleTransaction.h
2016-07-07 16:50:17 +09:00
Masayuki Nakano 9a3758b103 Bug 1260651 part.27 Rename PlaceholderTxn to mozilla::PlaceholderTransaction (and their files too) r=mccr8
MozReview-Commit-ID: F6DeWadjTmP

--HG--
rename : editor/libeditor/PlaceholderTxn.cpp => editor/libeditor/PlaceholderTransaction.cpp
rename : editor/libeditor/PlaceholderTxn.h => editor/libeditor/PlaceholderTransaction.h
2016-07-07 16:27:23 +09:00
Masayuki Nakano 658478a3fc Bug 1260651 part.26 Rename mozilla::dom::JoinNodeTxn to mozilla::JoinNodeTransaction (and their files too) r=mccr8
MozReview-Commit-ID: ChcoinM0sfU

--HG--
rename : editor/libeditor/JoinNodeTxn.cpp => editor/libeditor/JoinNodeTransaction.cpp
rename : editor/libeditor/JoinNodeTxn.h => editor/libeditor/JoinNodeTransaction.h
2016-07-07 16:16:12 +09:00
Masayuki Nakano 0818979e3d Bug 1260651 part.25 Rename mozilla::dom::InsertTextTxn to mozilla::InsertTextTransaction (and their files too) r=mccr8
MozReview-Commit-ID: wEBkU65pCM

--HG--
rename : editor/libeditor/InsertTextTxn.cpp => editor/libeditor/InsertTextTransaction.cpp
rename : editor/libeditor/InsertTextTxn.h => editor/libeditor/InsertTextTransaction.h
2016-07-07 16:06:41 +09:00
Masayuki Nakano 01f8fdf982 Bug 1260651 part.24 Rename mozilla::dom::InsertNodeTxn to mozilla::InsertNodeTransaction (and their files too) r=mccr8
MozReview-Commit-ID: 1eF1DsxwZL6

--HG--
rename : editor/libeditor/InsertNodeTxn.cpp => editor/libeditor/InsertNodeTransaction.cpp
rename : editor/libeditor/InsertNodeTxn.h => editor/libeditor/InsertNodeTransaction.h
2016-07-07 15:56:16 +09:00
Masayuki Nakano f6a83f89e0 Bug 1260651 part.23 Rename mozilla::dom::IMETextTxn to mozilla::CompositionTransaction (and their files too) r=mccr8
This patch renames IMETextTxn to CompositionTransaction.  "Composition" is now used in some web standard specs, e.g., CompositionEvent defined by UI Events.

This patch also renames nsEditor::CreateTxnForIMEText() to nsEditor::CreateTxnForComposition().

MozReview-Commit-ID: JN0GgGdpAWG

--HG--
rename : editor/libeditor/IMETextTxn.cpp => editor/libeditor/CompositionTransaction.cpp
rename : editor/libeditor/IMETextTxn.h => editor/libeditor/CompositionTransaction.h
2016-07-07 15:42:08 +09:00
Masayuki Nakano c893a72e05 Bug 1260651 part.22 Rename mozilla::dom::DeleteTextTxn to mozilla::DeleteTextTransaction (and their files too) r=mccr8
MozReview-Commit-ID: 6WNiA7N3a9Y

--HG--
rename : editor/libeditor/DeleteTextTxn.cpp => editor/libeditor/DeleteTextTransaction.cpp
rename : editor/libeditor/DeleteTextTxn.h => editor/libeditor/DeleteTextTransaction.h
2016-07-07 15:20:22 +09:00
Masayuki Nakano aab723f475 Bug 1260651 part.21 Rename DeleteRangeTxn to mozilla::DeleteRangeTransaction (and their files too) r=mccr8
MozReview-Commit-ID: IYFkzr95E6U

--HG--
rename : editor/libeditor/DeleteRangeTxn.cpp => editor/libeditor/DeleteRangeTransaction.cpp
rename : editor/libeditor/DeleteRangeTxn.h => editor/libeditor/DeleteRangeTransaction.h
2016-07-07 14:56:53 +09:00
Masayuki Nakano d96f9724ac Bug 1260651 part.20 Rename DeleteNodeTxn to mozilla::DeleteNodeTransaction (and their files too) r=mccr8
MozReview-Commit-ID: ID8DUm0LoD5

--HG--
rename : editor/libeditor/DeleteNodeTxn.cpp => editor/libeditor/DeleteNodeTransaction.cpp
rename : editor/libeditor/DeleteNodeTxn.h => editor/libeditor/DeleteNodeTransaction.h
2016-07-07 15:08:33 +09:00
Masayuki Nakano d46dfe7402 Bug 1260651 part.19 Rename mozilla::dom::CreateElementTxn to mozilla::CreateElementTransaction (and their files too) r=mccr8
MozReview-Commit-ID: 7RckfPHq1Y

--HG--
rename : editor/libeditor/CreateElementTxn.cpp => editor/libeditor/CreateElementTransaction.cpp
rename : editor/libeditor/CreateElementTxn.h => editor/libeditor/CreateElementTransaction.h
2016-07-07 14:33:56 +09:00
Masayuki Nakano f5aee941e2 Bug 1260651 part.18 Rename mozilla::dom::ChangeStyleTxn to mozilla::ChangeStyleTransaction (and their files too) r=mccr8
MozReview-Commit-ID: KQn4f35WjvT

--HG--
rename : editor/libeditor/ChangeStyleTxn.cpp => editor/libeditor/ChangeStyleTransaction.cpp
rename : editor/libeditor/ChangeStyleTxn.h => editor/libeditor/ChangeStyleTransaction.h
2016-07-07 14:23:25 +09:00
Masayuki Nakano c191da4516 Bug 1260651 part.17 Rename mozilla::dom::ChangeAttributeTxn to mozilla::ChangeAttributeTransaction (and their files too) r=mccr8
MozReview-Commit-ID: B15OBauxqSN

--HG--
rename : editor/libeditor/ChangeAttributeTxn.cpp => editor/libeditor/ChangeAttributeTransaction.cpp
rename : editor/libeditor/ChangeAttributeTxn.h => editor/libeditor/ChangeAttributeTransaction.h
2016-07-07 14:12:30 +09:00
Masayuki Nakano 379230116b Bug 1260651 part.16 Rename nsHTMLEditUtils to mozilla::HTMLEditUtils (and their files too) r=mccr8
MozReview-Commit-ID: DABzQHszB0c

--HG--
rename : editor/libeditor/nsHTMLEditUtils.cpp => editor/libeditor/HTMLEditUtils.cpp
rename : editor/libeditor/nsHTMLEditUtils.h => editor/libeditor/HTMLEditUtils.h
2016-07-07 14:01:12 +09:00
Masayuki Nakano 67850b72d7 Bug 1260651 part.15 Rename nsAutoEditInitRulesTrigger to mozilla::AutoEditInitRulesTrigger r=mccr8
MozReview-Commit-ID: Hp2BfbbGckt
2016-06-23 19:18:13 +09:00
Masayuki Nakano 8d5be47714 Bug 1260651 part.14 Rename nsTextEditUtils to mozilla::TextEditUtils (and their files too) r=mccr8
MozReview-Commit-ID: DZ3SAOTNuZx

--HG--
rename : editor/libeditor/nsTextEditUtils.cpp => editor/libeditor/TextEditUtils.cpp
rename : editor/libeditor/nsTextEditUtils.h => editor/libeditor/TextEditUtils.h
2016-07-07 13:44:32 +09:00
Masayuki Nakano 28ebbbd99b Bug 1260651 part.13 Rename nsAutoPlaceHolderBatch to mozilla::AutoPlaceHolderBatch r=mccr8
MozReview-Commit-ID: E8IlZjFSFRU
2016-06-23 18:51:19 +09:00
Masayuki Nakano 59116ec004 Bug 1260651 part.12 Rename nsAutoEditBatch to mozilla::AutoEditBatch r=mccr8
MozReview-Commit-ID: 2hoz88UAS6w
2016-06-23 18:46:58 +09:00
Masayuki Nakano 647af800b3 Bug 1260651 part.11 Rename nsAutoSelectionReset to mozilla::AutoSelectionRestorer r=mccr8
MozReview-Commit-ID: LA4ou7vnVXG
2016-07-07 13:27:31 +09:00
Masayuki Nakano 04f769e958 Bug 1260651 part.10 Rename nsAutoRules to mozilla::AutoRules r=mccr8
MozReview-Commit-ID: u3MVijmoBv
2016-06-23 18:15:42 +09:00
Masayuki Nakano 6e4532ff79 Bug 1260651 part.9 Rename nsAutoTxnsConserveSelection to mozilla::AutoTransactionsConserveSelection r=mccr8
MozReview-Commit-ID: JEJkPY36vfF
2016-06-23 18:01:23 +09:00
Masayuki Nakano 7f703927e1 Bug 1260651 part.8 Rename nsAutoUpdateViewBatch to mozilla::AutoUpdateViewBatch r=mccr8
MozReview-Commit-ID: GsisMrwLlET
2016-07-07 13:09:51 +09:00
Masayuki Nakano 7796d97cfc Bug 1260651 part.7 Rename nsBoolDomIterFunctor to mozilla::BoolDomIterFunctor r=mccr8
MozReview-Commit-ID: EFQMDbDMLmT
2016-06-23 17:39:47 +09:00
Masayuki Nakano 111252de4a Bug 1260651 part.6 Rename nsDOMIterator to mozilla::DOMIterator r=mccr8
MozReview-Commit-ID: 6wBVUivS4xY
2016-06-23 17:30:39 +09:00
Masayuki Nakano 2997e5fed4 Bug 1260651 part.5 Rename nsDOMSubtreeIterator to mozilla::DOMSubtreeIterator r=mccr8
MozReview-Commit-ID: EGb5Lx4teaS
2016-06-23 17:25:03 +09:00
Masayuki Nakano 009f9d9992 Bug 1260651 part.4 Rename nsTrivialFunctor to mozilla::TrivialFunctor r=mccr8
MozReview-Commit-ID: B37mZ5otKHU
2016-06-23 17:19:35 +09:00
Masayuki Nakano caafdafcc5 Bug 1260651 part.3 Rename DOMPoint to mozilla::EditorDOMPoint because same name class is used in other modules widely r=mccr8
MozReview-Commit-ID: 9ZyVTv7veuK
2016-06-23 17:13:03 +09:00
Masayuki Nakano c4605a4cb2 Bug 1260651 part.2 Rename nsEditorHookUtils to mozilla::EditorHookUtils r=mccr8
MozReview-Commit-ID: 1BRj1wcBljc
2016-06-23 16:59:15 +09:00
Masayuki Nakano 9771fba160 Bug 1260651 part.1 Rename nsEditorUtils to mozilla::EditorUtils (and their files too) r=mccr8
MozReview-Commit-ID: 7Z48LHQBRo7

--HG--
rename : editor/libeditor/nsEditorUtils.cpp => editor/libeditor/EditorUtils.cpp
rename : editor/libeditor/nsEditorUtils.h => editor/libeditor/EditorUtils.h
extra : rebase_source : e53301378ab6001cdb126c5cc8742b7cadfbbccc
extra : source : 0147a9c79800924614157f1fa74cda3b9397f688
2016-07-07 11:49:42 +09:00
Andrew McCreight bb74c333ca Bug 1266882 - Ensure the return value of CreateBR is addrefed in CopyLastEditableChildStyles. r=masayuki
Failure to increment the refcount to this BR node causes fatal cycle
collector assertions, and could lead to all sorts of other crashes.
This is a regression from bug 1156062, part 5.
2016-07-06 11:25:41 -07:00
Michael Layzell dde888ae28 Bug 906420 - Part 1: Implement DataTransferItem and DataTransferItemList, r=baku 2016-07-04 15:45:45 -04:00
Olli Pettay dea514fb53 Bug 1281873 - Null check PlaceholderTxn::mStartSel before traversing/unlinking it, r=khuey
--HG--
extra : rebase_source : f5d4023776f6da90a8c920a84f2df4cd9ac302f5
2016-06-24 01:24:57 +03:00
Blake Kaplan 70d89c7d92 Bug 1259517 - Make dropping images in editors work in e10s. r=baku 2016-06-21 15:17:37 -07:00
Masayuki Nakano 13d4f396fe Bug 1185307 part.2 Replace upcast from nsISelection to mozilla::dom::Selection with nsISelection::AsSelection() r=smaug
MozReview-Commit-ID: Gs3oiAgJFG9

--HG--
extra : rebase_source : a136405d99ff3361a595157986b3a33026bcd5f5
2016-06-17 22:32:49 +09:00
Astley Chen 1fcb0ee95d Bug 1277131 : Part 1 - rename nsTableOuterFrame to nsTableWrapperFrame. r=heycam
MozReview-Commit-ID: KrSHLbmovTM

--HG--
rename : layout/tables/nsTableOuterFrame.cpp => layout/tables/nsTableWrapperFrame.cpp
rename : layout/tables/nsTableOuterFrame.h => layout/tables/nsTableWrapperFrame.h
extra : rebase_source : 730a73b8439f1f5c5ccdb32b241deda5224c321c
2016-06-16 13:14:08 +01:00
Masayuki Nakano 10f047dba5 Bug 1278014 part.10 Rename SelectionType::SELECTION_IME_SELECTEDCONVERTEDTEXT to SelectionType::eIMESelectedClause r=smaug
MozReview-Commit-ID: 8v3mqcYorOI

--HG--
extra : rebase_source : a6823273c161eabbfa9e49e689154e547c14a106
2016-06-09 19:29:29 +09:00
Masayuki Nakano aa3d2a6ce9 Bug 1278014 part.9 Rename SelectionType::SELECTION_IME_CONVERTEDTEXT to SelectionType::eIMEConvertedClause r=smaug
MozReview-Commit-ID: 5UNqhB2ZEcZ

--HG--
extra : rebase_source : 74d41ddf5496bdc50306bf916251df4f8d65a65b
2016-06-09 19:14:17 +09:00
Masayuki Nakano ff86f10a4c Bug 1278014 part.8 Rename SelectionType::SELECTION_IME_SELECTEDRAWTEXT to SelectionType::eIMESelectedRawClause r=smaug
MozReview-Commit-ID: DgprOxg87K6

--HG--
extra : rebase_source : 2f655353845292c4e8028f6e43f0dbbbfea11b68
2016-06-09 19:03:40 +09:00
Masayuki Nakano 569677d2f1 Bug 1278014 part.7 Rename SelectionType::SELECTION_IME_RAWINPUT to SelectionType::eIMERawClause r=smaug
MozReview-Commit-ID: BRe10Lyx5mt

--HG--
extra : rebase_source : e57239239fe8029040ce49faff9e37c5ad0b8305
2016-06-09 18:51:49 +09:00
Masayuki Nakano d960ef26d5 Bug 1278014 part.5 Rename SelectionType::SELECTION_NORMAL to SelectionType::eNormal r=smaug
MozReview-Commit-ID: AAdxTTKEvrk

--HG--
extra : rebase_source : 82e10db6b8b17d4f571625e34bb3c8f1905ef58a
2016-06-09 18:35:22 +09:00
Masayuki Nakano 581b9986bb Bug 1278014 part.3 Define 2 constants for number of SelectionType and number of SelectionType except "none" r=smaug
This patch defines two constants kSelectionTypeCount and kPresentSelectionTypeCount.  The former is same as nsISelectionController::NUM_SELECTIONTYPES.  The latter is kSelectionTypeCount - 1 for excluding SELECTION_NONE.  The latter is useful in some loops which handle all selection types except SELECTION_NONE.

Note that this patch fixes a bug of nsFrameSelection.  That doesn't treat SELECTION_NONE as a selection (see the definition of index), however, it defines redundant item and doesn't use it actually.  Additionally, it computes invalid selection type in each loop.  Therefore, without this patch, debug build hits MOZ_ASSERT() in ToSelectionType(RawSelectionType).

Note that these constants are defined as anonymous enum because we cannot define as const (or static) even with extern.  If we'd try to do it, it caused link error or not available in nsFrameSelection.cpp as constant value since they were not initialized if they were initialized in nsSelection.cpp.  Therefore, these constants are defined as enum items but using "k" prefix.

MozReview-Commit-ID: H6sH7NBEXlE

--HG--
extra : rebase_source : fd517d5fc2e2d5dc2f96313e2802fd1719817af7
2016-06-11 11:12:26 +09:00
Masayuki Nakano 00591135a4 Bug 1278014 part.2 Define mozilla::SelectionType as an enum class and use it instead of RawSelectionType as far as possible r=smaug
This patch defines mozilla::SelectionType as an enum class.  This is safer than nsISelectionController::SELECTION_* since setting illegal value to its variable is checked at build time.  So, as far as possible, this should be used everywhere (but of course, this isn't available in scriptable interfaces).

And also this implements some useful methods for managing SelectionType and RawSelectionType which are implemented in layout/nsSelection.cpp because nsISelectionController is implemented by both PresShell and nsTextEditorState.  Therefore, implementing one of them may make hard to find them.  On the other hand, nsSelection.cpp is a better file name to look for them.

Note that this patch creates mozilla::Selection::RawType() for binding.  Native code should keep using Selection::Type() but the binding code needs to use RawType() due to impossible to convert from SelectionType to RawSelectionType without explicit cast.

MozReview-Commit-ID: 81vX7A0hHQN

--HG--
extra : rebase_source : d9f88e217c713c60d1c2578ce6421c73ccba8650
2016-06-11 11:06:37 +09:00
Masayuki Nakano 17f667a2e2 Bug 1278014 part.1 Rename SelectionType in nsISelectionController.idl to mozilla::RawSelectionType r=smaug
mozilla::SelectionType will be an enum class. Therefore, we need to rename SelectionType with a word "raw" since it's a type for raw nsISelectionController::SELECTION_*.

MozReview-Commit-ID: K8SO0bbpv0Y

--HG--
extra : rebase_source : 56e3ac852657ef4795d718d2da09b16903c2e66c
2016-06-07 22:42:06 +09:00
Jonathan Watt b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Carsten "Tomcat" Book afff301b32 Backed out changeset 5c836acf3197 (bug 906420) on developer request by baku
--HG--
extra : rebase_source : 9f109cdb706feef6d2bcd9a2e71f8c4d3c17ebdf
2016-06-09 15:30:53 +02:00
Makoto Kato 4616a049e9 Bug 1257731 - Part 2. Don't use Win32 API on content process. r=masayuki
On content sandbox process, GetKeyboardState() API doesn't return current keyboard state.  So we shouldn't use it.

MozReview-Commit-ID: 4phnJf0sJFZ

--HG--
extra : rebase_source : ea52839d427431a2ba7624ef199f9842fe12f8ef
extra : histedit_source : f7905715eb4e09a0234b9f7717cec6161150a7f3
2016-06-08 13:23:11 +09:00
Michael Layzell c1e5ab59b6 Bug 1278412 - Disable warning in nsDeleteCommand::IsCommandEnabled, r=ehsan 2016-06-07 18:07:32 -04:00
Michael Layzell bd973fcaa4 Bug 906420 - Part 1: Implement DataTransferItem and DataTransferItemList, r=baku 2016-06-07 18:05:55 -04:00
Jet Villegas 6d95828266 merge from inbound 2016-06-04 03:33:38 -07:00
Jet Villegas a22a6660d7 Bug 1268736: An editable table cell means that both the cell and its contents are children of an editable node. r=mats 2016-06-04 03:23:56 -07:00
Masayuki Nakano 258c1f97d6 Bug 1277756 part.7 Rename TextRangeType::NS_TEXTRANGE_SELECTEDCONVERTEDTEXT to TextRangeType::eSelectedClause r=smaug
MozReview-Commit-ID: GyRYWzfeWrm

--HG--
extra : rebase_source : 8bebacaf675ec4a3cf91cfd434d07beeb7fb1567
2016-06-03 19:15:21 +09:00
Masayuki Nakano 3fa2003d17 Bug 1277756 part.6 Rename TextRangeType::NS_TEXTRANGE_CONVERTEDTEXT to TextRangeType::eConvertedClause r=smaug
MozReview-Commit-ID: 3mexBm278As

--HG--
extra : rebase_source : ef363b0ac50396631e9b145b7e869330509fe259
2016-06-03 19:05:32 +09:00
Masayuki Nakano 98f069e029 Bug 1277756 part.5 Rename TextRangeType::NS_TEXTRANGE_SELECTEDRAWTEXT to TextRangeType::eSelectedRawClause r=smaug
MozReview-Commit-ID: MbG4siLb4Q

--HG--
extra : rebase_source : 23c20c55c3936dc6af5f57414ef7630003480275
2016-06-03 18:57:21 +09:00
Masayuki Nakano f4254e7f7f Bug 1277756 part.4 Rename TextRangeType::NS_TEXTRANGE_RAWINPUT to TextRangeType::eRawClause r=smaug
MozReview-Commit-ID: KLC1VPiYTdz

--HG--
extra : rebase_source : 3f750e526bb04b26ed66d2c0fada14e7d5b43d73
2016-06-03 18:48:37 +09:00
Masayuki Nakano 6b5425853a Bug 1277756 part.3 Rename TextRangeType::NS_TEXTRANGE_CARETPOSITION to TextRangeType::eCaret r=smaug
MozReview-Commit-ID: CaqmOSxYYU7

--HG--
extra : rebase_source : 5820d491b97be7899150516d05f1426e74dab5b5
2016-06-03 18:40:06 +09:00
Masayuki Nakano 4fc95828b6 Bug 1277756 part.1 Make anonymous enum for NS_TEXTRANGE_* to an enum class named "TextRangeType" r=smaug
For making our code clearer by the stronger type check, we should change the anonymous enum for NS_TEXTRANGE_* to enum class whose name is "TextRangeType" and whose type is "RawTextRangeType" which is an alias of uint8_t.

Additionally, this also adds some utility methods for them.

Note that some lines which are changed by this patch become over 80 characters but it will be fixed by the following patches.

MozReview-Commit-ID: 76izA1WqTkp

--HG--
extra : rebase_source : 27cd8cc8f7f8e82055dbfe82aba94c02beda5fa4
2016-06-04 09:49:21 +09:00
Joel Maher a6fcbcf0a3 Bug 1270962 - move tests which access the clipboard to subsuite 'clipboard'. r=bgrins,ryanvm,armenzg a=merge
MozReview-Commit-ID: IZziPmwFtHj

--HG--
extra : source : a50249d48b1e86a3749bccc51ece4d1a827a621c
2016-05-25 15:28:24 -04:00
Masayuki Nakano d7fdaf7cf8 Bug 1272490 nsHTMLEditRules::ReapplyCachedStyles() should do nothing if nsIEditor::GetSelection() returns nullptr r=Ehsan
nsHTMLEditRules::ReapplyCachedStyles() may be called after the document is removed from the DOM tree.  For example, the document can be removed from the tree even during handling an edit operation if the web contents uses DOMMutationEvent. In such case, nsIEditor::GetSelection() returns nullptr and it should do nothing.

MozReview-Commit-ID: Jk3eGalAPhB

--HG--
extra : rebase_source : 54b8eb0ace2c656a68cd8aaf0edd3d1177b127ff
2016-05-17 11:47:39 +09:00
Masayuki Nakano 8a70a17c6a Bug 1254755 part.2 Rename WidgetKeyboardEvent::charCode to WidgetKeyboardEvent::mCharCode r=smaug
And mCharCode shouldn't be compared with NS_VK_*, nsIDOMKeyEvent::DOM_VK_*. Additionally, when it's compared with a character constant, cast isn't necessary.

MozReview-Commit-ID: JMT614copjG

--HG--
extra : rebase_source : 69ee3c589e5a71c814ec9a40ac3aab39c789c11d
2016-05-13 16:06:18 +09:00
Masayuki Nakano 3359bad586 Bug 1254755 part.1 Rename WidgetKeyboardEvent::keyCode to WidgetKeyboardEvent::mKeyCode r=smaug
And also WidgetKeyboardEvent::mKeyCode should be compared with NS_VK_* rather than nsIDOMKeyEvent::DOM_VK_*.

MozReview-Commit-ID: IKjQ1nr8XYe

--HG--
extra : rebase_source : 83125cd2523f6b70759f621470aad23b00aae8ae
2016-05-12 17:13:49 +09:00
Chris Peterson 353ee65255 Bug 1272513 - Part 1: Suppress -Wshadow warnings-as-errors in some directories. r=glandium 2016-05-11 00:00:01 -07:00
Olli Pettay 43edbfcf37 Bug 1271460, don't leak editor created element objects, r=ehsan
--HG--
extra : rebase_source : a1294b6e57df3a5a85e35e808320bef9e1b0747e
2016-05-13 20:10:22 +03:00
Xidorn Quan fa7ba2cb82 Bug 1269975 part 1 - Move nsCSSProps::EnabledState to a top level enum class mozilla::CSSEnabledState. r=heycam
MozReview-Commit-ID: 3KH5cqDFzUI

--HG--
extra : rebase_source : 3c8355f7807982152a16a913b31cbcdd6ef78030
extra : source : 73e89d25a34ca5587f306b848b0b801342f9432f
2016-05-10 18:44:05 +10:00
Ryan VanderMeulen f514ed495c Backed out 4 changesets (bug 1269975) for bustage.
Backed out changeset a55ecedea260 (bug 1269975)
Backed out changeset 5321545b938c (bug 1269975)
Backed out changeset 7e4a2ee61ef3 (bug 1269975)
Backed out changeset d181f8e7e4c3 (bug 1269975)
2016-05-10 00:08:54 -04:00
Xidorn Quan 30a6d76b26 Bug 1269975 part 1 - Move nsCSSProps::EnabledState to a top level enum class mozilla::CSSEnabledState. r=heycam
MozReview-Commit-ID: 3KH5cqDFzUI

--HG--
extra : source : 73e89d25a34ca5587f306b848b0b801342f9432f
2016-05-10 13:36:25 +10:00
L. David Baron 9ee89fe42f Bug 567283 patch 2 - Rename NS_HexToRGB to NS_HexToRGBA and add parameter saying whether 4 and 8 digit colors are allowed. r=xidorn
This patch tells all callers to use the existing behavior, so it is
intended not to change behavior.  Callers that will be modified in later
patches are marked with "FIXME" comments that will be removed in those
later patches (patches 3 and 4).

MozReview-Commit-ID: FaLryfxaeHv
2016-05-08 22:16:41 -07:00
Kyle Huey 941ab1f522 Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-05-05 01:45:00 -07:00
Ting-Yu Lin c4e4d765b0 Bug 1270030 - Remove "layout.accessiblecaret.extendedvisibility" pref from IMETextTxn. r=mats
The pref had been removed in bug 1249201. Need to clean it up for IMETextTxn.

MozReview-Commit-ID: EaFaN1yzoyP

--HG--
extra : rebase_source : 55da9499245d4d773bbce74e99c013f9814084b4
2016-05-04 17:05:35 +08:00
Eric Rahm 6c9db7a162 Bug 1269047 - Remove chained ENSURE calls from GetStartNodeAndOffset. r=ehsan 2016-05-02 21:25:56 -07:00
Aryeh Gregor f14f1babe8 Bug 1193762 part 8 - Fix things that will break; r=froydnj
It looks like VC++ doesn't like comparisons of nsCOMPtr to 0 after this
change, but those are bad style anyway, so I removed them from
TestCOMPtr.cpp instead of trying to make them work.
2016-05-01 21:29:23 +03:00
Aryeh Gregor 585263dafa Bug 1193762 part 4 - Avoid nsCOMPtr in ternary operator; r=froydnj 2016-05-01 21:29:22 +03:00
Aryeh Gregor 0a025f6cca Bug 1193762 part 3 - Remove nsEditor::IsDescendantOfEditorRoot(nsIDOMNode*); r=ehsan 2016-05-01 17:59:29 +03:00
Aryeh Gregor 419ed0f1bb Bug 1193762 part 2 - Remove nsHTMLEditor::IsVisBreak(nsIDOMNode*); r=ehsan 2016-05-01 17:59:17 +03:00
Aryeh Gregor 9f98b80267 Bug 1193762 part 1 - Remove nsEditor::IsBlockNode(nsIDOMNode*); r=ehsan 2016-05-01 17:59:05 +03:00
Aryeh Gregor 0a569d869c Bug 1191356 part 9 - Convert nsHTMLEditRules::mNewBlock to Element; r=ehsan 2016-05-01 17:58:53 +03:00
Aryeh Gregor 81dd1ee865 Bug 1191356 part 8 - Clean up nsHTMLEditRules::WillAbsolutePosition; r=ehsan 2016-05-01 17:58:41 +03:00
Aryeh Gregor bf808d8cc0 Bug 1191356 part 7 - Clean up nsHTMLEditor::GetSelectionContainer; r=ehsan
This makes the XPCOM GetSelectionContainer return an error in cases
where previously it would return success but a null pointer.  This could
theoretically cause problems, but there's no obvious non-ugly way to
avoid it.
2016-05-01 17:58:29 +03:00
Aryeh Gregor 1d5314df0c Bug 1191356 part 6 - Clean up nsHTMLEditRules::WillMakeBasicBlock; r=ehsan 2016-05-01 17:58:17 +03:00
Sebastian Hengst 2fd74ed0d1 Backed out changeset 6dbba6c4a200 (bug 1191356) for build bustage. r=backout on a CLOSED TREE 2016-05-01 16:27:40 +02:00
Sebastian Hengst ce0ea5ad03 Backed out changeset aa61db1f8f83 (bug 1191356) 2016-05-01 16:27:29 +02:00
Sebastian Hengst 0526cdbd22 Backed out changeset 7b3284a488dc (bug 1191356) 2016-05-01 16:27:21 +02:00
Sebastian Hengst bed664c09b Backed out changeset acf185618acd (bug 1191356) 2016-05-01 16:27:11 +02:00
Sebastian Hengst 46b9ec79bb Backed out changeset 50b15734fe1d (bug 1193762) 2016-05-01 16:27:03 +02:00
Sebastian Hengst e1428250cb Backed out changeset 6b3d9803990b (bug 1193762) 2016-05-01 16:26:56 +02:00
Sebastian Hengst ff6ae40a51 Backed out changeset ef0eaadbed31 (bug 1193762) 2016-05-01 16:26:45 +02:00
Aryeh Gregor 4f5b418627 Bug 1193762 part 3 - Remove nsEditor::IsDescendantOfEditorRoot(nsIDOMNode*); r=ehsan 2016-05-01 16:18:39 +03:00
Aryeh Gregor 45c59d499f Bug 1193762 part 2 - Remove nsHTMLEditor::IsVisBreak(nsIDOMNode*); r=ehsan 2016-05-01 16:18:26 +03:00
Aryeh Gregor 0c5699255e Bug 1193762 part 1 - Remove nsEditor::IsBlockNode(nsIDOMNode*); r=ehsan 2016-05-01 16:18:14 +03:00
Aryeh Gregor 99add47b6d Bug 1191356 part 9 - Convert nsHTMLEditRules::mNewBlock to Element; r=ehsan 2016-05-01 16:18:03 +03:00
Aryeh Gregor dccb99b0b6 Bug 1191356 part 8 - Clean up nsHTMLEditRules::WillAbsolutePosition; r=ehsan 2016-05-01 16:17:50 +03:00
Aryeh Gregor 0d6d4b284b Bug 1191356 part 7 - Clean up nsHTMLEditor::GetSelectionContainer; r=ehsan
This makes the XPCOM GetSelectionContainer return an error in cases
where previously it would return success but a null pointer.  This could
theoretically cause problems, but there's no obvious non-ugly way to
avoid it.
2016-05-01 16:17:39 +03:00
Aryeh Gregor 77e622044a Bug 1191356 part 6 - Clean up nsHTMLEditRules::WillMakeBasicBlock; r=ehsan 2016-05-01 16:17:27 +03:00
Aryeh Gregor 5905c70893 Bug 1191356 part 5 - Clean up nsHTMLEditRules::RelativeChangeIndentationOfElementNode; r=ehsan 2016-05-01 16:17:15 +03:00
Aryeh Gregor 8591247a42 Bug 1191356 part 4 - Clean up nsHTMLEditRules::MoveNodeSmart, MoveContents; r=ehsan 2016-05-01 16:17:03 +03:00
Aryeh Gregor bfb967416f Bug 1191356 part 3 - Clean up nsHTMLEditRules::MoveBlock; r=ehsan 2016-05-01 16:16:50 +03:00
Aryeh Gregor 5b2a15bdb0 Bug 1191356 part 2 - Clean up nsHTMLEditor::RemoveBlockContainer; r=ehsan 2016-05-01 16:16:38 +03:00
Aryeh Gregor fb41b34868 Bug 1191356 part 1 - Clean up nsHTMLEditRules::RemoveListStructure; r=ehsan 2016-05-01 16:16:26 +03:00
Aryeh Gregor a066bf53e5 Bug 1191354 part 13 - Clean up nsHTMLEditRules::SplitBlock; r=ehsan 2016-05-01 16:16:15 +03:00
Aryeh Gregor 097c58d5eb Bug 1191354 part 12 - Clean up nsHTMLEditRules::OutdentPartOfBlock; r=ehsan 2016-05-01 16:16:03 +03:00
Aryeh Gregor e2b45addf7 Bug 1191354 part 11 - Clean up nsHTMLEditRules::WillOutdent; r=ehsan 2016-05-01 16:15:51 +03:00
Aryeh Gregor 86500a0036 Bug 1191354 part 9 - Remove old nsHTMLEditRules::ConvertListType variant; r=ehsan 2016-05-01 16:15:27 +03:00
Aryeh Gregor f9d2d13cb5 Bug 1191354 part 8 - Typedefs in headers for readability; r=ehsan 2016-05-01 16:15:14 +03:00
Aryeh Gregor ef040f7942 Bug 1191354 part 7 - Clean up nsHTMLEditRules::CheckForInvisibleBR; r=ehsan 2016-05-01 16:15:02 +03:00
Aryeh Gregor 573c9d0ab3 Bug 1191354 part 6 - Clean up IsBlockNode/IsInlineNode in nsHTMLEditRules.cpp; r=ehsan 2016-05-01 16:14:51 +03:00
Aryeh Gregor fcbd93de52 Bug 1191354 part 5 - Clean up nsHTMLEditRules::IsEmptyInline; r=ehsan 2016-05-01 16:14:39 +03:00
Aryeh Gregor 2f2e3c0922 Bug 1191354 part 4 - Clean up nsHTMLEditRules::AlignBlock; r=ehsan 2016-05-01 16:14:27 +03:00
Aryeh Gregor 53be15e904 Bug 1191354 part 3 - Clean up nsHTMLEditRules::InsertMozBRIfNeeded; r=ehsan 2016-05-01 16:14:15 +03:00
Aryeh Gregor a242464c64 Bug 1191354 part 2 - Clean up nsHTMLEditRules::CheckInterlinePosition; r=ehsan 2016-05-01 16:14:02 +03:00
Aryeh Gregor f8fa9944cb Bug 1191354 part 1 - Clean up nsHTMLEditRules::GetHighestInlineParent; r=ehsan 2016-05-01 16:13:51 +03:00
Aryeh Gregor 62ef6c7bb5 Bug 1190172 part 12 - Clean up nsHTMLEditRules::ExpandSelectionForDeletion; r=ehsan 2016-05-01 16:13:39 +03:00
Aryeh Gregor d92f03a311 Bug 1190172 part 11 - Clean up nsHTMLEditRules::IsEmptyBlock; r=ehsan 2016-05-01 16:13:27 +03:00
Aryeh Gregor aa64a725d7 Bug 1190172 part 10 - Clean up nsHTMLEditor::ReturnInListItem; r=ehsan 2016-05-01 16:13:15 +03:00
Aryeh Gregor 844eb62b2f Bug 1190172 part 9 - Clean up nsHTMLEditor::ReturnInHeader; r=ehsan 2016-05-01 16:13:03 +03:00
Aryeh Gregor e876ffcb35 Bug 1190172 part 8 - Clean up nsHTMLEditor::PromoteRangeIfStartsOrEndsInNamedAnchor; r=ehsan 2016-05-01 16:12:51 +03:00
Aryeh Gregor ae41a2dd75 Bug 1190172 part 7 - Clean up nsHTMLEditor::PromoteInlineRange; r=ehsan 2016-05-01 16:12:39 +03:00
Aryeh Gregor 1588157e3f Bug 1190172 part 6 - Clean up nsHTMLEditor::RelativeFontChangeOnTextNode; r=ehsan 2016-05-01 16:12:27 +03:00
Aryeh Gregor 4965f76e10 Bug 1190172 part 5 - Clean up nsHTMLEditor::NodeIsProperty; r=ehsan 2016-05-01 16:12:15 +03:00
Aryeh Gregor 8aec477e68 Bug 1190172 part 4 - Remove unused nsHTMLEditor::HasAttr; r=ehsan 2016-05-01 16:12:04 +03:00
Aryeh Gregor e3e1997c88 Bug 1190172 part 3 - Remove old method variants; r=ehsan 2016-05-01 16:11:52 +03:00
Aryeh Gregor b9ebf8a2e4 Bug 1190172 part 2 - Clean up nsHTMLEditor::ClearStyle; r=ehsan 2016-05-01 16:11:40 +03:00
Aryeh Gregor d0c325c933 Bug 1190172 part 1 - Clean up nsHTMLEditor::SplitStyleAbovePoint; r=ehsan 2016-05-01 16:11:28 +03:00
Aryeh Gregor b54341c0b9 Bug 1156062 part 12 - Clean up nsHTMLEditRules::GetAlignment; r=masayuki 2016-05-01 16:11:16 +03:00
Aryeh Gregor d47825b953 Bug 1156062 part 11 - Clean up nsHTMLEditRules::Before/AfterEdit; r=masayuki 2016-05-01 16:11:04 +03:00
Aryeh Gregor b1599838f5 Bug 1156062 part 10 - Clean up MarginPropertyAtomForIndent; r=masayuki 2016-05-01 16:10:52 +03:00
Aryeh Gregor 80d1e430e0 Bug 1156062 part 9 - Clean up nsHTMLEditRules::WillAlign; r=masayuki 2016-05-01 16:10:39 +03:00
Carsten "Tomcat" Book ba3fe0975c Backed out changeset 85ce8cb0639a (bug 1268313)
--HG--
extra : rebase_source : 56d1cf41a2dc4959b67f834e07192a5c772176a8
2016-04-29 14:21:16 +02:00
Kyle Huey 48a594a09e Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-04-28 14:08:25 -07:00
Ryan VanderMeulen 81e9a4a18e Bug 972110 - Skip test_bug674770-1.html on Linux debug e10s due to intermittent failures. 2016-04-28 16:55:18 -04:00
Christoph Kerschbaumer 232720eac5 Bug 1263286 - Move base-uri CSP check into SetBaseURIUsingFirstBaseWithHref. r=bz 2016-04-26 11:48:29 +02:00
Kyle Huey c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Masayuki Nakano 798200a916 Backout changeset 1e142031ab51 (bug 115602 part 9)
--HG--
extra : rebase_source : 54b15fc4a1dea12474aca268917293dc717c51cb
2016-04-23 20:04:37 +09:00
Masayuki Nakano b929d562be Backout changeset a530f2e280a4 (bug 115602 part 10)
--HG--
extra : rebase_source : c95b7d266c27a4db965224a5e2153bc509813768
2016-04-23 20:04:02 +09:00
Masayuki Nakano 9325eeb902 Backout changeset e9577aa83ab0 (bug 115602 part 11)
--HG--
extra : rebase_source : 1f08ffd194ba33bb0c76b5789b57ce80bc4b24da
2016-04-23 20:03:32 +09:00
Masayuki Nakano 28bb16d728 Backout changeset bf13f411417b (bug 115602 part 12)
--HG--
extra : rebase_source : a75921d4181ac29fe43f298267b1ce6cb08dd8ab
2016-04-23 20:03:03 +09:00
Masayuki Nakano 4bb9e45e9f Backout changeset 7207f05dd558 (bug 1190172 part 1)
--HG--
extra : rebase_source : 613172577500bfe46775a0c429c9a9aba9293bac
2016-04-23 20:02:28 +09:00
Masayuki Nakano db9ddcac79 Backout changeset 643bf6006fea (bug 1190172 part 2)
--HG--
extra : rebase_source : c806f63e9cf69bf380e5c3a377de1af3fc35f561
2016-04-23 20:02:00 +09:00
Masayuki Nakano 65acec6efb Backout changeset ac6a27516edb (bug 1190172 part 3)
--HG--
extra : rebase_source : 17c98f03485a964e74f58d0c684ed756f6a37441
2016-04-23 20:01:32 +09:00
Masayuki Nakano 4656c119c1 Backout changeset b3a4fcd6e166 (bug 1190172 part 4)
--HG--
extra : rebase_source : ea006b33268fb46c0aac352a8ca63194102c51f8
2016-04-23 20:01:03 +09:00
Masayuki Nakano a82e07913d Backout changeset aabe14890eb2 (bug 1190172 part 5)
--HG--
extra : rebase_source : 3177e815345d5f5c3c28729da7aa8ffbe05790d2
2016-04-23 20:00:35 +09:00
Masayuki Nakano a3991f4cac Backout changeset 9d9b34db284d (bug 1190172 part 6)
--HG--
extra : rebase_source : 7754e4a2d4284c8114d7592fefe2181c5b1b7eac
2016-04-23 20:00:05 +09:00
Masayuki Nakano 39fe4e3567 Backout changeset 47a8205beae7 (bug 1190172 part 7)
--HG--
extra : rebase_source : 660a93fad26fc7a2516c5a4f490cd28e2e42d2fc
2016-04-23 19:59:35 +09:00
Masayuki Nakano 8ff0d45b03 Backout changeset 6d1996e26f78 (bug 1190172 part 8)
--HG--
extra : rebase_source : 4c3cfa50790f88c018e57de8191fedca3cb7a407
2016-04-23 19:59:06 +09:00
Masayuki Nakano f9b512ff32 Backout changeset 8af4b2f65a89 (bug 1190172 part 9)
--HG--
extra : rebase_source : 665f4e825ceecdd6e4b49a9d03ae722aad964ad5
2016-04-23 19:58:28 +09:00
Masayuki Nakano 1c1fbc3eb0 Backout changeset fd552a08c876 (bug 1190172 part 10)
--HG--
extra : rebase_source : 110d707f75da51d537b28ba242675fa047da4223
2016-04-23 19:57:50 +09:00
Masayuki Nakano 3aba3916c7 Backout changeset bb29532b1b73 (bug 1190172 part 11)
--HG--
extra : rebase_source : 08096495e936bfd6517d6651149ec65c96805980
2016-04-23 19:57:09 +09:00
Masayuki Nakano 0b13a5e58c Backed out due to bustage on all platforms (bug 1156062 (9-12) and bug 1190172 (1-12)
--HG--
extra : histedit_source : 89ab254f9b0be11800b0d3b991cf599d0e3d8964
2016-04-23 19:38:45 +09:00
Aryeh Gregor 0e45e926f8 Bug 1190172 part 12 - Clean up nsHTMLEditRules::ExpandSelectionForDeletion; r=ehsan 2016-04-23 19:29:43 +09:00
Aryeh Gregor 97304ffbba Bug 1190172 part 11 - Clean up nsHTMLEditRules::IsEmptyBlock; r=ehsan 2016-04-23 19:29:21 +09:00
Aryeh Gregor e590800e2e Bug 1190172 part 10 - Clean up nsHTMLEditor::ReturnInListItem; r=ehsan 2016-04-23 19:28:57 +09:00
Aryeh Gregor 733498ac35 Bug 1190172 part 9 - Clean up nsHTMLEditor::ReturnInHeader; r=ehsan 2016-04-23 19:28:17 +09:00
Aryeh Gregor e662b1b8ed Bug 1190172 part 8 - Clean up nsHTMLEditor::PromoteRangeIfStartsOrEndsInNamedAnchor; r=ehsan 2016-04-23 19:27:50 +09:00
Aryeh Gregor d4bcaf41a0 Bug 1190172 part 7 - Clean up nsHTMLEditor::PromoteInlineRange; r=ehsan 2016-04-23 19:27:28 +09:00
Aryeh Gregor 4bcac88d54 Bug 1190172 part 6 - Clean up nsHTMLEditor::RelativeFontChangeOnTextNode; r=ehsan 2016-04-23 19:27:04 +09:00
Aryeh Gregor babd34f7bb Bug 1190172 part 5 - Clean up nsHTMLEditor::NodeIsProperty; r=ehsan 2016-04-23 19:26:40 +09:00
Aryeh Gregor 3931489056 Bug 1190172 part 4 - Remove unused nsHTMLEditor::HasAttr; r=ehsan 2016-04-23 19:26:16 +09:00
Aryeh Gregor 516d35791d Bug 1190172 part 3 - Remove old method variants; r=ehsan 2016-04-23 19:25:54 +09:00
Aryeh Gregor 3b6aac3ba5 Bug 1190172 part 2 - Clean up nsHTMLEditor::ClearStyle; r=ehsan 2016-04-23 19:25:29 +09:00
Aryeh Gregor b058686d23 Bug 1190172 part 1 - Clean up nsHTMLEditor::SplitStyleAbovePoint; r=ehsan 2016-04-23 19:25:04 +09:00
Aryeh Gregor a144a23e3a Bug 1156062 part 12 - Clean up nsHTMLEditRules::GetAlignment; r=masayuki 2016-04-23 19:24:13 +09:00
Aryeh Gregor 7eaf2035c4 Bug 1156062 part 11 - Clean up nsHTMLEditRules::Before/AfterEdit; r=masayuki 2016-04-23 19:23:50 +09:00
Aryeh Gregor c12f7e7f6f Bug 1156062 part 10 - Clean up MarginPropertyAtomForIndent; r=masayuki 2016-04-23 19:23:20 +09:00
Aryeh Gregor 914ca44a44 Bug 1156062 part 9 - Clean up nsHTMLEditRules::WillAlign 2016-04-23 19:22:48 +09:00
Aryeh Gregor 2dc492c957 Bug 1156062 part 8 - Clean up nsHTMLEditRules::JoinBlocks; r=ehsan
--HG--
extra : rebase_source : 6b76252e1e569fd792829a0dbe31e8412cd2fa9d
2016-04-23 19:20:20 +09:00