Bug 1093191 part 3: Make .cpp files in libeditor #include their own .h file first. r=ehsan

This commit is contained in:
Daniel Holbert 2014-12-01 21:07:42 -08:00
parent d566caf4cb
commit eccd00c15b
26 changed files with 50 additions and 26 deletions

View File

@ -3,9 +3,10 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "ChangeAttributeTxn.h"
#include "mozilla/dom/Element.h" // for Element #include "mozilla/dom/Element.h" // for Element
#include "ChangeAttributeTxn.h"
#include "nsAString.h" #include "nsAString.h"
#include "nsError.h" // for NS_ERROR_NOT_INITIALIZED, etc #include "nsError.h" // for NS_ERROR_NOT_INITIALIZED, etc

View File

@ -3,6 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "CreateElementTxn.h"
#include <algorithm> #include <algorithm>
#include <stdio.h> #include <stdio.h>
@ -11,7 +13,6 @@
#include "mozilla/Casting.h" #include "mozilla/Casting.h"
#include "CreateElementTxn.h"
#include "nsAlgorithm.h" #include "nsAlgorithm.h"
#include "nsAString.h" #include "nsAString.h"
#include "nsDebug.h" #include "nsDebug.h"

View File

@ -3,8 +3,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "DeleteNodeTxn.h"
#include "DeleteRangeTxn.h" #include "DeleteRangeTxn.h"
#include "DeleteNodeTxn.h"
#include "DeleteTextTxn.h" #include "DeleteTextTxn.h"
#include "mozilla/Assertions.h" #include "mozilla/Assertions.h"
#include "mozilla/dom/Selection.h" #include "mozilla/dom/Selection.h"

View File

@ -3,9 +3,10 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "InsertNodeTxn.h"
#include "mozilla/dom/Selection.h" // for Selection #include "mozilla/dom/Selection.h" // for Selection
#include "InsertNodeTxn.h"
#include "nsAString.h" #include "nsAString.h"
#include "nsDebug.h" // for NS_ENSURE_TRUE, etc #include "nsDebug.h" // for NS_ENSURE_TRUE, etc
#include "nsEditor.h" // for nsEditor #include "nsEditor.h" // for nsEditor

View File

@ -3,8 +3,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/dom/Selection.h"
#include "SplitNodeTxn.h" #include "SplitNodeTxn.h"
#include "mozilla/dom/Selection.h"
#include "nsAString.h" #include "nsAString.h"
#include "nsDebug.h" // for NS_ASSERTION, etc #include "nsDebug.h" // for NS_ASSERTION, etc
#include "nsEditor.h" // for nsEditor #include "nsEditor.h" // for nsEditor

View File

@ -5,9 +5,10 @@
#ifdef DEBUG #ifdef DEBUG
#include "TextEditorTest.h"
#include <stdio.h> #include <stdio.h>
#include "TextEditorTest.h"
#include "nsDebug.h" #include "nsDebug.h"
#include "nsError.h" #include "nsError.h"
#include "nsGkAtoms.h" #include "nsGkAtoms.h"

View File

@ -3,10 +3,10 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "TypeInState.h"
#include <stddef.h> #include <stddef.h>
#include "TypeInState.h"
#include "mozilla/dom/Selection.h" #include "mozilla/dom/Selection.h"
#include "mozilla/mozalloc.h" #include "mozilla/mozalloc.h"
#include "nsAString.h" #include "nsAString.h"

View File

@ -3,6 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsEditor.h"
#include "mozilla/DebugOnly.h" // for DebugOnly #include "mozilla/DebugOnly.h" // for DebugOnly
#include <stdio.h> // for nullptr, stdout #include <stdio.h> // for nullptr, stdout
@ -43,7 +45,6 @@
#include "nsContentUtils.h" // for nsContentUtils #include "nsContentUtils.h" // for nsContentUtils
#include "nsDOMString.h" // for DOMStringIsNull #include "nsDOMString.h" // for DOMStringIsNull
#include "nsDebug.h" // for NS_ENSURE_TRUE, etc #include "nsDebug.h" // for NS_ENSURE_TRUE, etc
#include "nsEditor.h"
#include "nsEditorEventListener.h" // for nsEditorEventListener #include "nsEditorEventListener.h" // for nsEditorEventListener
#include "nsEditorUtils.h" // for nsAutoRules, etc #include "nsEditorUtils.h" // for nsAutoRules, etc
#include "nsError.h" // for NS_OK, etc #include "nsError.h" // for NS_OK, etc

View File

@ -3,13 +3,14 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsEditorCommands.h"
#include "mozFlushType.h" #include "mozFlushType.h"
#include "mozilla/ArrayUtils.h" #include "mozilla/ArrayUtils.h"
#include "mozilla/Assertions.h" #include "mozilla/Assertions.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
#include "nsCRT.h" #include "nsCRT.h"
#include "nsDebug.h" #include "nsDebug.h"
#include "nsEditorCommands.h"
#include "nsError.h" #include "nsError.h"
#include "nsIClipboard.h" #include "nsIClipboard.h"
#include "nsICommandParams.h" #include "nsICommandParams.h"

View File

@ -3,10 +3,11 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsEditorController.h"
#include "mozilla/mozalloc.h" #include "mozilla/mozalloc.h"
#include "nsDebug.h" #include "nsDebug.h"
#include "nsEditorCommands.h" #include "nsEditorCommands.h"
#include "nsEditorController.h"
#include "nsError.h" #include "nsError.h"
#include "nsIControllerCommandTable.h" #include "nsIControllerCommandTable.h"

View File

@ -3,6 +3,9 @@
/* This Source Code Form is subject to the terms of the Mozilla Public /* 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 * 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/. */ * 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/Assertions.h" // for MOZ_ASSERT, etc
#include "mozilla/EventListenerManager.h" // for EventListenerManager #include "mozilla/EventListenerManager.h" // for EventListenerManager
#include "mozilla/IMEStateManager.h" // for IMEStateManager #include "mozilla/IMEStateManager.h" // for IMEStateManager
@ -15,7 +18,6 @@
#include "nsCaret.h" // for nsCaret #include "nsCaret.h" // for nsCaret
#include "nsDebug.h" // for NS_ENSURE_TRUE, etc #include "nsDebug.h" // for NS_ENSURE_TRUE, etc
#include "nsEditor.h" // for nsEditor, etc #include "nsEditor.h" // for nsEditor, etc
#include "nsEditorEventListener.h"
#include "nsFocusManager.h" // for nsFocusManager #include "nsFocusManager.h" // for nsFocusManager
#include "nsGkAtoms.h" // for nsGkAtoms, nsGkAtoms::input #include "nsGkAtoms.h" // for nsGkAtoms, nsGkAtoms::input
#include "nsIClipboard.h" // for nsIClipboard, etc #include "nsIClipboard.h" // for nsIClipboard, etc

View File

@ -3,10 +3,11 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsEditorUtils.h"
#include "mozilla/dom/Selection.h" #include "mozilla/dom/Selection.h"
#include "nsCOMArray.h" #include "nsCOMArray.h"
#include "nsComponentManagerUtils.h" #include "nsComponentManagerUtils.h"
#include "nsEditorUtils.h"
#include "nsError.h" #include "nsError.h"
#include "nsIClipboardDragDropHookList.h" #include "nsIClipboardDragDropHookList.h"
// hooks // hooks

View File

@ -3,6 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsHTMLCSSUtils.h"
#include "ChangeStyleTxn.h" #include "ChangeStyleTxn.h"
#include "EditTxn.h" #include "EditTxn.h"
#include "mozilla/Assertions.h" #include "mozilla/Assertions.h"
@ -20,7 +22,6 @@
#include "nsDependentSubstring.h" #include "nsDependentSubstring.h"
#include "nsError.h" #include "nsError.h"
#include "nsGkAtoms.h" #include "nsGkAtoms.h"
#include "nsHTMLCSSUtils.h"
#include "nsHTMLEditor.h" #include "nsHTMLEditor.h"
#include "nsIAtom.h" #include "nsIAtom.h"
#include "nsIContent.h" #include "nsIContent.h"

View File

@ -4,6 +4,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsHTMLEditRules.h"
#include <stdlib.h> #include <stdlib.h>
#include "mozilla/Assertions.h" #include "mozilla/Assertions.h"
@ -25,7 +27,6 @@
#include "nsError.h" #include "nsError.h"
#include "nsGkAtoms.h" #include "nsGkAtoms.h"
#include "nsHTMLCSSUtils.h" #include "nsHTMLCSSUtils.h"
#include "nsHTMLEditRules.h"
#include "nsHTMLEditUtils.h" #include "nsHTMLEditUtils.h"
#include "nsHTMLEditor.h" #include "nsHTMLEditor.h"
#include "nsIAtom.h" #include "nsIAtom.h"

View File

@ -3,6 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsHTMLEditUtils.h"
#include "mozilla/ArrayUtils.h" // for ArrayLength #include "mozilla/ArrayUtils.h" // for ArrayLength
#include "mozilla/Assertions.h" // for MOZ_ASSERT, etc #include "mozilla/Assertions.h" // for MOZ_ASSERT, etc
#include "mozilla/dom/Element.h" // for Element, nsINode #include "mozilla/dom/Element.h" // for Element, nsINode
@ -13,7 +15,6 @@
#include "nsEditor.h" // for nsEditor #include "nsEditor.h" // for nsEditor
#include "nsError.h" // for NS_SUCCEEDED #include "nsError.h" // for NS_SUCCEEDED
#include "nsGkAtoms.h" // for nsGkAtoms, nsGkAtoms::a, etc #include "nsGkAtoms.h" // for nsGkAtoms, nsGkAtoms::a, etc
#include "nsHTMLEditUtils.h"
#include "nsHTMLTags.h" #include "nsHTMLTags.h"
#include "nsIAtom.h" // for nsIAtom #include "nsIAtom.h" // for nsIAtom
#include "nsIDOMHTMLAnchorElement.h" // for nsIDOMHTMLAnchorElement #include "nsIDOMHTMLAnchorElement.h" // for nsIDOMHTMLAnchorElement

View File

@ -3,6 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsHTMLEditor.h"
#include "mozilla/DebugOnly.h" #include "mozilla/DebugOnly.h"
#include "mozilla/EventStates.h" #include "mozilla/EventStates.h"
#include "mozilla/TextEvents.h" #include "mozilla/TextEvents.h"
@ -11,7 +13,6 @@
#include "nsUnicharUtils.h" #include "nsUnicharUtils.h"
#include "nsHTMLEditor.h"
#include "nsHTMLEditRules.h" #include "nsHTMLEditRules.h"
#include "nsTextEditUtils.h" #include "nsTextEditUtils.h"
#include "nsHTMLEditUtils.h" #include "nsHTMLEditUtils.h"

View File

@ -2,6 +2,9 @@
/* This Source Code Form is subject to the terms of the Mozilla Public /* 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 * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsHTMLEditorEventListener.h"
#include "mozilla/dom/Selection.h" #include "mozilla/dom/Selection.h"
#include "nsAutoPtr.h" #include "nsAutoPtr.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
@ -10,7 +13,6 @@
#include "nsError.h" #include "nsError.h"
#include "nsHTMLEditUtils.h" #include "nsHTMLEditUtils.h"
#include "nsHTMLEditor.h" #include "nsHTMLEditor.h"
#include "nsHTMLEditorEventListener.h"
#include "nsIDOMElement.h" #include "nsIDOMElement.h"
#include "nsIDOMEvent.h" #include "nsIDOMEvent.h"
#include "nsIDOMEventTarget.h" #include "nsIDOMEventTarget.h"

View File

@ -3,6 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsHTMLObjectResizer.h"
#include "mozilla/LookAndFeel.h" #include "mozilla/LookAndFeel.h"
#include "mozilla/MathAlgorithms.h" #include "mozilla/MathAlgorithms.h"
#include "mozilla/Preferences.h" #include "mozilla/Preferences.h"
@ -19,7 +21,6 @@
#include "nsHTMLCSSUtils.h" #include "nsHTMLCSSUtils.h"
#include "nsHTMLEditUtils.h" #include "nsHTMLEditUtils.h"
#include "nsHTMLEditor.h" #include "nsHTMLEditor.h"
#include "nsHTMLObjectResizer.h"
#include "nsIAtom.h" #include "nsIAtom.h"
#include "nsIContent.h" #include "nsIContent.h"
#include "nsID.h" #include "nsID.h"

View File

@ -65,11 +65,12 @@
// Now we can do things on nsIRequest (like what?) // Now we can do things on nsIRequest (like what?)
*/ */
#include "nsHTMLURIRefObject.h"
#include "mozilla/mozalloc.h" #include "mozilla/mozalloc.h"
#include "nsAString.h" #include "nsAString.h"
#include "nsDebug.h" #include "nsDebug.h"
#include "nsError.h" #include "nsError.h"
#include "nsHTMLURIRefObject.h"
#include "nsID.h" #include "nsID.h"
#include "nsIDOMAttr.h" #include "nsIDOMAttr.h"
#include "nsIDOMElement.h" #include "nsIDOMElement.h"

View File

@ -3,6 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsInternetCiter.h"
#include "nsAString.h" #include "nsAString.h"
#include "nsCOMPtr.h" #include "nsCOMPtr.h"
@ -11,7 +12,6 @@
#include "nsDependentSubstring.h" #include "nsDependentSubstring.h"
#include "nsError.h" #include "nsError.h"
#include "nsILineBreaker.h" #include "nsILineBreaker.h"
#include "nsInternetCiter.h"
#include "nsLWBrkCIID.h" #include "nsLWBrkCIID.h"
#include "nsServiceManagerUtils.h" #include "nsServiceManagerUtils.h"
#include "nsString.h" #include "nsString.h"

View File

@ -3,6 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsPlaintextEditor.h"
#include "mozilla/Assertions.h" #include "mozilla/Assertions.h"
#include "mozilla/Preferences.h" #include "mozilla/Preferences.h"
@ -46,7 +47,6 @@
#include "nsIWeakReferenceUtils.h" #include "nsIWeakReferenceUtils.h"
#include "nsInternetCiter.h" #include "nsInternetCiter.h"
#include "nsLiteralString.h" #include "nsLiteralString.h"
#include "nsPlaintextEditor.h"
#include "nsReadableUtils.h" #include "nsReadableUtils.h"
#include "nsServiceManagerUtils.h" #include "nsServiceManagerUtils.h"
#include "nsString.h" #include "nsString.h"

View File

@ -3,6 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * 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/Assertions.h" // for MOZ_ASSERT, etc
#include "mozilla/dom/Selection.h" // for Selection #include "mozilla/dom/Selection.h" // for Selection
#include "nsAString.h" // for nsAString_internal::Length #include "nsAString.h" // for nsAString_internal::Length
@ -17,7 +19,6 @@
#include "nsIDOMNode.h" // for nsIDOMNode #include "nsIDOMNode.h" // for nsIDOMNode
#include "nsISupportsImpl.h" // for nsRange::Release #include "nsISupportsImpl.h" // for nsRange::Release
#include "nsRange.h" // for nsRange #include "nsRange.h" // for nsRange
#include "nsSelectionState.h"
using namespace mozilla; using namespace mozilla;
using namespace mozilla::dom; using namespace mozilla::dom;

View File

@ -3,6 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsStyleSheetTxns.h"
#include <stddef.h> // for nullptr #include <stddef.h> // for nullptr
@ -15,7 +16,6 @@
#include "nsIDocument.h" // for nsIDocument #include "nsIDocument.h" // for nsIDocument
#include "nsIDocumentObserver.h" // for UPDATE_STYLE #include "nsIDocumentObserver.h" // for UPDATE_STYLE
#include "nsIEditor.h" // for nsIEditor #include "nsIEditor.h" // for nsIEditor
#include "nsStyleSheetTxns.h"
using namespace mozilla; using namespace mozilla;

View File

@ -3,6 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsTextEditRules.h"
#include "mozilla/Assertions.h" #include "mozilla/Assertions.h"
#include "mozilla/LookAndFeel.h" #include "mozilla/LookAndFeel.h"
#include "mozilla/Preferences.h" #include "mozilla/Preferences.h"
@ -36,7 +38,6 @@
#include "nsISupportsBase.h" #include "nsISupportsBase.h"
#include "nsLiteralString.h" #include "nsLiteralString.h"
#include "mozilla/dom/NodeIterator.h" #include "mozilla/dom/NodeIterator.h"
#include "nsTextEditRules.h"
#include "nsTextEditUtils.h" #include "nsTextEditUtils.h"
#include "nsUnicharUtils.h" #include "nsUnicharUtils.h"

View File

@ -3,6 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsTextEditUtils.h"
#include "mozilla/Assertions.h" #include "mozilla/Assertions.h"
#include "mozilla/dom/Element.h" #include "mozilla/dom/Element.h"
#include "nsAString.h" #include "nsAString.h"
@ -18,7 +20,6 @@
#include "nsLiteralString.h" #include "nsLiteralString.h"
#include "nsPlaintextEditor.h" #include "nsPlaintextEditor.h"
#include "nsString.h" #include "nsString.h"
#include "nsTextEditUtils.h"
using namespace mozilla; using namespace mozilla;

View File

@ -3,6 +3,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsWSRunObject.h"
#include "mozilla/Assertions.h" #include "mozilla/Assertions.h"
#include "mozilla/Casting.h" #include "mozilla/Casting.h"
#include "mozilla/mozalloc.h" #include "mozilla/mozalloc.h"
@ -24,7 +26,6 @@
#include "nsString.h" #include "nsString.h"
#include "nsTextEditUtils.h" #include "nsTextEditUtils.h"
#include "nsTextFragment.h" #include "nsTextFragment.h"
#include "nsWSRunObject.h"
using namespace mozilla; using namespace mozilla;
using namespace mozilla::dom; using namespace mozilla::dom;