Skip to content

Commit

Permalink
Bug 901323 - Don't include nsContentUtils.h unnecessarily; r=jlebar
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Aug 14, 2013
1 parent 682a633 commit 1a5ae52
Show file tree
Hide file tree
Showing 130 changed files with 44 additions and 171 deletions.
1 change: 0 additions & 1 deletion accessible/src/generic/Accessible.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include "TableCellAccessible.h"
#include "TreeWalker.h"

#include "nsContentUtils.h"
#include "nsIDOMElement.h"
#include "nsIDOMDocument.h"
#include "nsIDOMNodeFilter.h"
Expand Down
11 changes: 2 additions & 9 deletions caps/src/nsPrincipal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,24 @@
* 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 "nsPrincipal.h"

#include "mozIThirdPartyUtil.h"
#include "nscore.h"
#include "nsScriptSecurityManager.h"
#include "nsString.h"
#include "nsReadableUtils.h"
#include "plstr.h"
#include "pratom.h"
#include "nsCRT.h"
#include "nsIURI.h"
#include "nsIFileURL.h"
#include "nsIProtocolHandler.h"
#include "nsNetUtil.h"
#include "nsJSPrincipals.h"
#include "nsVoidArray.h"
#include "nsIObjectInputStream.h"
#include "nsIObjectOutputStream.h"
#include "nsIClassInfoImpl.h"
#include "nsError.h"
#include "nsIContentSecurityPolicy.h"
#include "nsContentUtils.h"
#include "nsCxPusher.h"
#include "jswrapper.h"

#include "nsPrincipal.h"

#include "mozilla/Preferences.h"
#include "mozilla/HashFunctions.h"

Expand Down
1 change: 0 additions & 1 deletion caps/src/nsSecurityManagerFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include "nsIDocument.h"
#include "jsfriendapi.h"
#include "xpcprivate.h"
#include "nsContentUtils.h"
#include "nsCxPusher.h"
#include "mozilla/Preferences.h"
#include "mozilla/Telemetry.h"
Expand Down
2 changes: 1 addition & 1 deletion content/base/src/DirectionalityUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@
*/

#include "mozilla/dom/DirectionalityUtils.h"

#include "nsINode.h"
#include "nsIContent.h"
#include "nsIDocument.h"
Expand All @@ -214,7 +215,6 @@
#include "nsUnicodeProperties.h"
#include "nsTextFragment.h"
#include "nsAttrValue.h"
#include "nsContentUtils.h"
#include "nsTextNode.h"
#include "nsCheapSets.h"

Expand Down
2 changes: 1 addition & 1 deletion content/base/src/DocumentFragment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "nsError.h"
#include "nsGkAtoms.h"
#include "nsDOMString.h"
#include "nsContentUtils.h"
#include "nsContentUtils.h" // for NS_INTERFACE_MAP_ENTRY_TEAROFF
#include "mozilla/dom/DocumentFragmentBinding.h"

namespace mozilla {
Expand Down
4 changes: 3 additions & 1 deletion content/base/src/nsDOMCaretPosition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsDOMCaretPosition.h"

#include "mozilla/dom/CaretPositionBinding.h"
#include "nsContentUtils.h"
#include "nsClientRect.h"
#include "nsRange.h"

nsDOMCaretPosition::nsDOMCaretPosition(nsINode* aNode, uint32_t aOffset)
: mOffset(aOffset), mOffsetNode(aNode), mAnonymousContentNode(nullptr)
Expand Down
5 changes: 2 additions & 3 deletions content/base/src/nsDOMCaretPosition.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
#include "nsCycleCollectionParticipant.h"
#include "nsCOMPtr.h"
#include "nsINode.h"
#include "nsRange.h"
#include "nsWrapperCache.h"
#include "nsRect.h"
#include "nsClientRect.h"

class nsClientRect;

/**
* Implementation of a DOM Caret Position, which is a node and offset within
Expand Down
1 change: 0 additions & 1 deletion content/base/src/nsFormData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "nsIDOMFile.h"
#include "mozilla/dom/HTMLFormElement.h"
#include "mozilla/dom/FormDataBinding.h"
#include "nsContentUtils.h"

using namespace mozilla;
using namespace mozilla::dom;
Expand Down
2 changes: 1 addition & 1 deletion content/base/src/nsSyncLoadService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "nsIDocument.h"
#include "nsIDOMDocument.h"
#include "nsIPrincipal.h"
#include "nsContentUtils.h"
#include "nsContentUtils.h" // for kLoadAsData
#include "nsThreadUtils.h"
#include "nsNetUtil.h"
#include "nsAutoPtr.h"
Expand Down
3 changes: 1 addition & 2 deletions content/canvas/src/ImageData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

#include "mozilla/dom/ImageData.h"

#include "nsDOMClassInfoID.h"
#include "nsContentUtils.h"
#include "nsContentUtils.h" // for NS_HOLD_JS_OBJECTS, NS_DROP_JS_OBJECTS
#include "mozilla/dom/ImageDataBinding.h"

#include "jsapi.h"
Expand Down
1 change: 0 additions & 1 deletion content/canvas/src/WebGLBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "WebGLBuffer.h"
#include "WebGLContext.h"
#include "mozilla/dom/WebGLRenderingContextBinding.h"
#include "nsContentUtils.h"

using namespace mozilla;

Expand Down
1 change: 0 additions & 1 deletion content/canvas/src/WebGLExtensionBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#include "WebGLContext.h"
#include "WebGLExtensions.h"
#include "nsContentUtils.h"

using namespace mozilla;

Expand Down
1 change: 0 additions & 1 deletion content/canvas/src/WebGLFramebuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "WebGLRenderbuffer.h"
#include "WebGLTexture.h"
#include "mozilla/dom/WebGLRenderingContextBinding.h"
#include "nsContentUtils.h"
#include "WebGLTexture.h"
#include "WebGLRenderbuffer.h"

Expand Down
1 change: 0 additions & 1 deletion content/canvas/src/WebGLProgram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "WebGLShader.h"
#include "WebGLProgram.h"
#include "mozilla/dom/WebGLRenderingContextBinding.h"
#include "nsContentUtils.h"

using namespace mozilla;

Expand Down
1 change: 0 additions & 1 deletion content/canvas/src/WebGLRenderbuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "WebGLRenderbuffer.h"
#include "WebGLTexture.h"
#include "mozilla/dom/WebGLRenderingContextBinding.h"
#include "nsContentUtils.h"

using namespace mozilla;

Expand Down
1 change: 0 additions & 1 deletion content/canvas/src/WebGLShader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "WebGLContext.h"
#include "mozilla/MemoryReporting.h"
#include "mozilla/dom/WebGLRenderingContextBinding.h"
#include "nsContentUtils.h"

using namespace mozilla;

Expand Down
1 change: 0 additions & 1 deletion content/canvas/src/WebGLTexture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "WebGLTexture.h"
#include "mozilla/dom/WebGLRenderingContextBinding.h"
#include <algorithm>
#include "nsContentUtils.h"

using namespace mozilla;

Expand Down
1 change: 0 additions & 1 deletion content/canvas/src/WebGLVertexArray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "WebGLBuffer.h"
#include "WebGLVertexArray.h"
#include "mozilla/dom/WebGLRenderingContextBinding.h"
#include "nsContentUtils.h"

using namespace mozilla;

Expand Down
1 change: 0 additions & 1 deletion content/events/src/DOMWheelEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "DOMWheelEvent.h"
#include "nsGUIEvent.h"
#include "nsIContent.h"
#include "nsContentUtils.h"
#include "prtime.h"

namespace mozilla {
Expand Down
1 change: 0 additions & 1 deletion content/events/src/nsDOMClipboardEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsDOMClipboardEvent.h"
#include "nsContentUtils.h"
#include "nsClientRect.h"
#include "nsDOMDataTransfer.h"
#include "nsIClipboard.h"
Expand Down
2 changes: 1 addition & 1 deletion content/events/src/nsDOMMessageEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsDOMMessageEvent.h"
#include "nsContentUtils.h"
#include "nsContentUtils.h" // for NS_HOLD_JS_OBJECTS, NS_DROP_JS_OBJECTS
#include "jsapi.h"

using namespace mozilla;
Expand Down
1 change: 0 additions & 1 deletion content/events/src/nsEventListenerService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "nsIVariant.h"
#include "nsIServiceManager.h"
#include "nsMemory.h"
#include "nsContentUtils.h"
#include "nsCxPusher.h"
#include "nsIXPConnect.h"
#include "nsIDOMWindow.h"
Expand Down
1 change: 0 additions & 1 deletion content/events/src/nsPaintRequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "nsPaintRequest.h"

#include "nsIFrame.h"
#include "nsContentUtils.h"
#include "mozilla/dom/PaintRequestBinding.h"
#include "mozilla/dom/PaintRequestListBinding.h"

Expand Down
1 change: 0 additions & 1 deletion content/html/content/src/HTMLTimeElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#include "HTMLTimeElement.h"
#include "mozilla/dom/HTMLTimeElementBinding.h"
#include "nsContentUtils.h"
#include "nsGenericHTMLElement.h"
#include "nsVariant.h"
#include "nsGkAtoms.h"
Expand Down
2 changes: 0 additions & 2 deletions content/html/content/src/TimeRanges.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#include "mozilla/dom/TimeRanges.h"
#include "mozilla/dom/TimeRangesBinding.h"
#include "mozilla/dom/HTMLMediaElement.h"
#include "nsContentUtils.h"
#include "nsDOMClassInfoID.h"
#include "nsError.h"

namespace mozilla {
Expand Down
1 change: 0 additions & 1 deletion content/html/content/src/ValidityState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "mozilla/dom/ValidityStateBinding.h"

#include "nsCycleCollectionParticipant.h"
#include "nsContentUtils.h"

namespace mozilla {
namespace dom {
Expand Down
2 changes: 0 additions & 2 deletions content/html/content/src/nsClientRect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsClientRect.h"
#include "nsContentUtils.h"
#include "nsDOMClassInfoID.h"

#include "nsPresContext.h"
#include "mozilla/dom/ClientRectListBinding.h"
Expand Down
1 change: 0 additions & 1 deletion content/media/VideoPlaybackQuality.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#include "mozilla/dom/HTMLMediaElement.h"
#include "mozilla/dom/VideoPlaybackQualityBinding.h"
#include "nsContentUtils.h"
#include "nsCycleCollectionParticipant.h"
#include "nsWrapperCache.h"
#include "MediaDecoder.h"
Expand Down
1 change: 0 additions & 1 deletion content/media/mediasource/MediaSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include "MediaSourceInputAdapter.h"
#include "SourceBuffer.h"
#include "SourceBufferList.h"
#include "nsContentUtils.h"

#ifdef PR_LOGGING
PRLogModuleInfo* gMediaSourceLog;
Expand Down
2 changes: 0 additions & 2 deletions content/media/mediasource/SourceBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

#include "SourceBuffer.h"

#include "nsContentUtils.h"

#ifdef PR_LOGGING
extern PRLogModuleInfo* gMediaSourceLog;
#define LOG(type, msg) PR_LOG(gMediaSourceLog, type, msg)
Expand Down
1 change: 0 additions & 1 deletion content/media/mediasource/SourceBufferList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "SourceBufferList.h"

#include "mozilla/dom/SourceBufferListBinding.h"
#include "nsContentUtils.h"

#ifdef PR_LOGGING
extern PRLogModuleInfo* gMediaSourceLog;
Expand Down
1 change: 0 additions & 1 deletion content/media/webaudio/AudioContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "AudioContext.h"
#include "nsContentUtils.h"
#include "nsPIDOMWindow.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/AnalyserNode.h"
Expand Down
1 change: 0 additions & 1 deletion content/media/webaudio/AudioListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#include "AudioListener.h"
#include "AudioContext.h"
#include "nsContentUtils.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/AudioListenerBinding.h"

Expand Down
1 change: 0 additions & 1 deletion content/media/webaudio/AudioNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#include "AudioNode.h"
#include "AudioContext.h"
#include "nsContentUtils.h"
#include "mozilla/ErrorResult.h"
#include "AudioNodeStream.h"

Expand Down
1 change: 0 additions & 1 deletion content/media/webaudio/AudioParam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "AudioParam.h"
#include "nsContentUtils.h"
#include "nsIDOMWindow.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/AudioParamBinding.h"
Expand Down
2 changes: 0 additions & 2 deletions content/media/webspeech/recognition/SpeechGrammar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

#include "SpeechGrammar.h"

#include "nsContentUtils.h"

#include "mozilla/Preferences.h"
#include "mozilla/dom/SpeechGrammarBinding.h"

Expand Down
2 changes: 0 additions & 2 deletions content/media/webspeech/recognition/SpeechGrammarList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

#include "SpeechGrammarList.h"

#include "nsContentUtils.h"

#include "mozilla/dom/SpeechGrammarListBinding.h"

namespace mozilla {
Expand Down
1 change: 0 additions & 1 deletion content/media/webspeech/recognition/SpeechRecognition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "SpeechRecognition.h"

#include "nsCOMPtr.h"
#include "nsContentUtils.h"
#include "nsCycleCollectionParticipant.h"

#include "mozilla/dom/SpeechRecognitionBinding.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

#include "SpeechRecognitionAlternative.h"

#include "nsContentUtils.h"

#include "mozilla/dom/SpeechRecognitionAlternativeBinding.h"

#include "SpeechRecognition.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* 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 "nsContentUtils.h"

#include "SpeechRecognitionResult.h"
#include "mozilla/dom/SpeechRecognitionResultBinding.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

#include "SpeechRecognitionResultList.h"

#include "nsContentUtils.h"

#include "mozilla/dom/SpeechRecognitionResultListBinding.h"

#include "SpeechRecognition.h"
Expand Down
1 change: 0 additions & 1 deletion content/media/webspeech/synth/SpeechSynthesisUtterance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsCOMPtr.h"
#include "nsContentUtils.h"
#include "nsCycleCollectionParticipant.h"
#include "nsGkAtoms.h"

Expand Down
1 change: 0 additions & 1 deletion content/svg/content/nsISVGPoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "SVGAnimatedPointList.h"
#include "nsSVGElement.h"
#include "nsError.h"
#include "nsContentUtils.h" // NS_ENSURE_FINITE
#include "mozilla/dom/SVGMatrix.h"
#include "mozilla/dom/SVGPointBinding.h"

Expand Down
Loading

0 comments on commit 1a5ae52

Please sign in to comment.