mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1093191 part 3: Make .cpp files in libeditor #include their own .h file first. r=ehsan
This commit is contained in:
parent
d566caf4cb
commit
eccd00c15b
@ -3,9 +3,10 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "ChangeAttributeTxn.h"
|
||||
|
||||
#include "mozilla/dom/Element.h" // for Element
|
||||
|
||||
#include "ChangeAttributeTxn.h"
|
||||
#include "nsAString.h"
|
||||
#include "nsError.h" // for NS_ERROR_NOT_INITIALIZED, etc
|
||||
|
||||
|
@ -3,6 +3,8 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "CreateElementTxn.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <stdio.h>
|
||||
|
||||
@ -11,7 +13,6 @@
|
||||
|
||||
#include "mozilla/Casting.h"
|
||||
|
||||
#include "CreateElementTxn.h"
|
||||
#include "nsAlgorithm.h"
|
||||
#include "nsAString.h"
|
||||
#include "nsDebug.h"
|
||||
|
@ -3,8 +3,9 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "DeleteNodeTxn.h"
|
||||
#include "DeleteRangeTxn.h"
|
||||
|
||||
#include "DeleteNodeTxn.h"
|
||||
#include "DeleteTextTxn.h"
|
||||
#include "mozilla/Assertions.h"
|
||||
#include "mozilla/dom/Selection.h"
|
||||
|
@ -3,9 +3,10 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "InsertNodeTxn.h"
|
||||
|
||||
#include "mozilla/dom/Selection.h" // for Selection
|
||||
|
||||
#include "InsertNodeTxn.h"
|
||||
#include "nsAString.h"
|
||||
#include "nsDebug.h" // for NS_ENSURE_TRUE, etc
|
||||
#include "nsEditor.h" // for nsEditor
|
||||
|
@ -3,8 +3,9 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "mozilla/dom/Selection.h"
|
||||
#include "SplitNodeTxn.h"
|
||||
|
||||
#include "mozilla/dom/Selection.h"
|
||||
#include "nsAString.h"
|
||||
#include "nsDebug.h" // for NS_ASSERTION, etc
|
||||
#include "nsEditor.h" // for nsEditor
|
||||
|
@ -5,9 +5,10 @@
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
#include "TextEditorTest.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "TextEditorTest.h"
|
||||
#include "nsDebug.h"
|
||||
#include "nsError.h"
|
||||
#include "nsGkAtoms.h"
|
||||
|
@ -3,10 +3,10 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "TypeInState.h"
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include "TypeInState.h"
|
||||
#include "mozilla/dom/Selection.h"
|
||||
#include "mozilla/mozalloc.h"
|
||||
#include "nsAString.h"
|
||||
|
@ -3,6 +3,8 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsEditor.h"
|
||||
|
||||
#include "mozilla/DebugOnly.h" // for DebugOnly
|
||||
|
||||
#include <stdio.h> // for nullptr, stdout
|
||||
@ -43,7 +45,6 @@
|
||||
#include "nsContentUtils.h" // for nsContentUtils
|
||||
#include "nsDOMString.h" // for DOMStringIsNull
|
||||
#include "nsDebug.h" // for NS_ENSURE_TRUE, etc
|
||||
#include "nsEditor.h"
|
||||
#include "nsEditorEventListener.h" // for nsEditorEventListener
|
||||
#include "nsEditorUtils.h" // for nsAutoRules, etc
|
||||
#include "nsError.h" // for NS_OK, etc
|
||||
|
@ -3,13 +3,14 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsEditorCommands.h"
|
||||
|
||||
#include "mozFlushType.h"
|
||||
#include "mozilla/ArrayUtils.h"
|
||||
#include "mozilla/Assertions.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsCRT.h"
|
||||
#include "nsDebug.h"
|
||||
#include "nsEditorCommands.h"
|
||||
#include "nsError.h"
|
||||
#include "nsIClipboard.h"
|
||||
#include "nsICommandParams.h"
|
||||
|
@ -3,10 +3,11 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsEditorController.h"
|
||||
|
||||
#include "mozilla/mozalloc.h"
|
||||
#include "nsDebug.h"
|
||||
#include "nsEditorCommands.h"
|
||||
#include "nsEditorController.h"
|
||||
#include "nsError.h"
|
||||
#include "nsIControllerCommandTable.h"
|
||||
|
||||
|
@ -3,6 +3,9 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsEditorEventListener.h"
|
||||
|
||||
#include "mozilla/Assertions.h" // for MOZ_ASSERT, etc
|
||||
#include "mozilla/EventListenerManager.h" // for EventListenerManager
|
||||
#include "mozilla/IMEStateManager.h" // for IMEStateManager
|
||||
@ -15,7 +18,6 @@
|
||||
#include "nsCaret.h" // for nsCaret
|
||||
#include "nsDebug.h" // for NS_ENSURE_TRUE, etc
|
||||
#include "nsEditor.h" // for nsEditor, etc
|
||||
#include "nsEditorEventListener.h"
|
||||
#include "nsFocusManager.h" // for nsFocusManager
|
||||
#include "nsGkAtoms.h" // for nsGkAtoms, nsGkAtoms::input
|
||||
#include "nsIClipboard.h" // for nsIClipboard, etc
|
||||
|
@ -3,10 +3,11 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsEditorUtils.h"
|
||||
|
||||
#include "mozilla/dom/Selection.h"
|
||||
#include "nsCOMArray.h"
|
||||
#include "nsComponentManagerUtils.h"
|
||||
#include "nsEditorUtils.h"
|
||||
#include "nsError.h"
|
||||
#include "nsIClipboardDragDropHookList.h"
|
||||
// hooks
|
||||
|
@ -3,6 +3,8 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsHTMLCSSUtils.h"
|
||||
|
||||
#include "ChangeStyleTxn.h"
|
||||
#include "EditTxn.h"
|
||||
#include "mozilla/Assertions.h"
|
||||
@ -20,7 +22,6 @@
|
||||
#include "nsDependentSubstring.h"
|
||||
#include "nsError.h"
|
||||
#include "nsGkAtoms.h"
|
||||
#include "nsHTMLCSSUtils.h"
|
||||
#include "nsHTMLEditor.h"
|
||||
#include "nsIAtom.h"
|
||||
#include "nsIContent.h"
|
||||
|
@ -4,6 +4,8 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsHTMLEditRules.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "mozilla/Assertions.h"
|
||||
@ -25,7 +27,6 @@
|
||||
#include "nsError.h"
|
||||
#include "nsGkAtoms.h"
|
||||
#include "nsHTMLCSSUtils.h"
|
||||
#include "nsHTMLEditRules.h"
|
||||
#include "nsHTMLEditUtils.h"
|
||||
#include "nsHTMLEditor.h"
|
||||
#include "nsIAtom.h"
|
||||
|
@ -3,6 +3,8 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsHTMLEditUtils.h"
|
||||
|
||||
#include "mozilla/ArrayUtils.h" // for ArrayLength
|
||||
#include "mozilla/Assertions.h" // for MOZ_ASSERT, etc
|
||||
#include "mozilla/dom/Element.h" // for Element, nsINode
|
||||
@ -13,7 +15,6 @@
|
||||
#include "nsEditor.h" // for nsEditor
|
||||
#include "nsError.h" // for NS_SUCCEEDED
|
||||
#include "nsGkAtoms.h" // for nsGkAtoms, nsGkAtoms::a, etc
|
||||
#include "nsHTMLEditUtils.h"
|
||||
#include "nsHTMLTags.h"
|
||||
#include "nsIAtom.h" // for nsIAtom
|
||||
#include "nsIDOMHTMLAnchorElement.h" // for nsIDOMHTMLAnchorElement
|
||||
|
@ -3,6 +3,8 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsHTMLEditor.h"
|
||||
|
||||
#include "mozilla/DebugOnly.h"
|
||||
#include "mozilla/EventStates.h"
|
||||
#include "mozilla/TextEvents.h"
|
||||
@ -11,7 +13,6 @@
|
||||
|
||||
#include "nsUnicharUtils.h"
|
||||
|
||||
#include "nsHTMLEditor.h"
|
||||
#include "nsHTMLEditRules.h"
|
||||
#include "nsTextEditUtils.h"
|
||||
#include "nsHTMLEditUtils.h"
|
||||
|
@ -2,6 +2,9 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsHTMLEditorEventListener.h"
|
||||
|
||||
#include "mozilla/dom/Selection.h"
|
||||
#include "nsAutoPtr.h"
|
||||
#include "nsCOMPtr.h"
|
||||
@ -10,7 +13,6 @@
|
||||
#include "nsError.h"
|
||||
#include "nsHTMLEditUtils.h"
|
||||
#include "nsHTMLEditor.h"
|
||||
#include "nsHTMLEditorEventListener.h"
|
||||
#include "nsIDOMElement.h"
|
||||
#include "nsIDOMEvent.h"
|
||||
#include "nsIDOMEventTarget.h"
|
||||
|
@ -3,6 +3,8 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsHTMLObjectResizer.h"
|
||||
|
||||
#include "mozilla/LookAndFeel.h"
|
||||
#include "mozilla/MathAlgorithms.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
@ -19,7 +21,6 @@
|
||||
#include "nsHTMLCSSUtils.h"
|
||||
#include "nsHTMLEditUtils.h"
|
||||
#include "nsHTMLEditor.h"
|
||||
#include "nsHTMLObjectResizer.h"
|
||||
#include "nsIAtom.h"
|
||||
#include "nsIContent.h"
|
||||
#include "nsID.h"
|
||||
|
@ -65,11 +65,12 @@
|
||||
// Now we can do things on nsIRequest (like what?)
|
||||
*/
|
||||
|
||||
#include "nsHTMLURIRefObject.h"
|
||||
|
||||
#include "mozilla/mozalloc.h"
|
||||
#include "nsAString.h"
|
||||
#include "nsDebug.h"
|
||||
#include "nsError.h"
|
||||
#include "nsHTMLURIRefObject.h"
|
||||
#include "nsID.h"
|
||||
#include "nsIDOMAttr.h"
|
||||
#include "nsIDOMElement.h"
|
||||
|
@ -3,6 +3,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsInternetCiter.h"
|
||||
|
||||
#include "nsAString.h"
|
||||
#include "nsCOMPtr.h"
|
||||
@ -11,7 +12,6 @@
|
||||
#include "nsDependentSubstring.h"
|
||||
#include "nsError.h"
|
||||
#include "nsILineBreaker.h"
|
||||
#include "nsInternetCiter.h"
|
||||
#include "nsLWBrkCIID.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
#include "nsString.h"
|
||||
|
@ -3,6 +3,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsPlaintextEditor.h"
|
||||
|
||||
#include "mozilla/Assertions.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
@ -46,7 +47,6 @@
|
||||
#include "nsIWeakReferenceUtils.h"
|
||||
#include "nsInternetCiter.h"
|
||||
#include "nsLiteralString.h"
|
||||
#include "nsPlaintextEditor.h"
|
||||
#include "nsReadableUtils.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
#include "nsString.h"
|
||||
|
@ -3,6 +3,8 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsSelectionState.h"
|
||||
|
||||
#include "mozilla/Assertions.h" // for MOZ_ASSERT, etc
|
||||
#include "mozilla/dom/Selection.h" // for Selection
|
||||
#include "nsAString.h" // for nsAString_internal::Length
|
||||
@ -17,7 +19,6 @@
|
||||
#include "nsIDOMNode.h" // for nsIDOMNode
|
||||
#include "nsISupportsImpl.h" // for nsRange::Release
|
||||
#include "nsRange.h" // for nsRange
|
||||
#include "nsSelectionState.h"
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::dom;
|
||||
|
@ -3,6 +3,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsStyleSheetTxns.h"
|
||||
|
||||
#include <stddef.h> // for nullptr
|
||||
|
||||
@ -15,7 +16,6 @@
|
||||
#include "nsIDocument.h" // for nsIDocument
|
||||
#include "nsIDocumentObserver.h" // for UPDATE_STYLE
|
||||
#include "nsIEditor.h" // for nsIEditor
|
||||
#include "nsStyleSheetTxns.h"
|
||||
|
||||
using namespace mozilla;
|
||||
|
||||
|
@ -3,6 +3,8 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsTextEditRules.h"
|
||||
|
||||
#include "mozilla/Assertions.h"
|
||||
#include "mozilla/LookAndFeel.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
@ -36,7 +38,6 @@
|
||||
#include "nsISupportsBase.h"
|
||||
#include "nsLiteralString.h"
|
||||
#include "mozilla/dom/NodeIterator.h"
|
||||
#include "nsTextEditRules.h"
|
||||
#include "nsTextEditUtils.h"
|
||||
#include "nsUnicharUtils.h"
|
||||
|
||||
|
@ -3,6 +3,8 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsTextEditUtils.h"
|
||||
|
||||
#include "mozilla/Assertions.h"
|
||||
#include "mozilla/dom/Element.h"
|
||||
#include "nsAString.h"
|
||||
@ -18,7 +20,6 @@
|
||||
#include "nsLiteralString.h"
|
||||
#include "nsPlaintextEditor.h"
|
||||
#include "nsString.h"
|
||||
#include "nsTextEditUtils.h"
|
||||
|
||||
using namespace mozilla;
|
||||
|
||||
|
@ -3,6 +3,8 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsWSRunObject.h"
|
||||
|
||||
#include "mozilla/Assertions.h"
|
||||
#include "mozilla/Casting.h"
|
||||
#include "mozilla/mozalloc.h"
|
||||
@ -24,7 +26,6 @@
|
||||
#include "nsString.h"
|
||||
#include "nsTextEditUtils.h"
|
||||
#include "nsTextFragment.h"
|
||||
#include "nsWSRunObject.h"
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::dom;
|
||||
|
Loading…
Reference in New Issue
Block a user