Skip to content

Commit

Permalink
Bug 1026535 - Fix mismatched class/struct tags. r=ehsan
Browse files Browse the repository at this point in the history
  • Loading branch information
poiru committed Jun 19, 2014
1 parent 51ba75d commit bc0233f
Show file tree
Hide file tree
Showing 111 changed files with 171 additions and 170 deletions.
2 changes: 1 addition & 1 deletion accessible/src/windows/sdn/sdnTextAccessible.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "AccessibleWrap.h"

class nsIFrame;
class nsPoint;
struct nsPoint;

namespace mozilla {
namespace a11y {
Expand Down
2 changes: 1 addition & 1 deletion content/base/public/nsIDocument.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class nsSmallVoidArray;
class nsDOMCaretPosition;
class nsViewportInfo;
class nsIGlobalObject;
class nsCSSSelectorList;
struct nsCSSSelectorList;

namespace mozilla {
class ErrorResult;
Expand Down
2 changes: 1 addition & 1 deletion content/base/public/nsINode.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

class nsAttrAndChildArray;
class nsChildContentList;
class nsCSSSelectorList;
struct nsCSSSelectorList;
class nsDOMAttributeMap;
class nsIContent;
class nsIDocument;
Expand Down
2 changes: 1 addition & 1 deletion content/base/src/DOMPoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace mozilla {
namespace dom {

class GlobalObject;
class DOMPointInit;
struct DOMPointInit;

class DOMPointReadOnly : public nsWrapperCache
{
Expand Down
2 changes: 1 addition & 1 deletion content/base/src/nsDocument.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ namespace mozilla {
class EventChainPreVisitor;
namespace dom {
class UndoManager;
class LifecycleCallbacks;
struct LifecycleCallbacks;
class CallbackFunction;
}
}
Expand Down
2 changes: 1 addition & 1 deletion content/canvas/src/WebGLContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class WebGLContextBoundObject;
class WebGLActiveInfo;
class WebGLExtensionBase;
class WebGLBuffer;
class WebGLVertexAttribData;
struct WebGLVertexAttribData;
class WebGLShader;
class WebGLProgram;
class WebGLQuery;
Expand Down
2 changes: 1 addition & 1 deletion content/canvas/src/WebGLProgram.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
namespace mozilla {

class WebGLShader;
class WebGLUniformInfo;
struct WebGLUniformInfo;

typedef nsDataHashtable<nsCStringHashKey, nsCString> CStringMap;
typedef nsDataHashtable<nsCStringHashKey, WebGLUniformInfo> CStringToUniformInfoMap;
Expand Down
2 changes: 1 addition & 1 deletion content/html/content/src/HTMLContentElement.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "nsINodeList.h"
#include "nsGenericHTMLElement.h"

class nsCSSSelectorList;
struct nsCSSSelectorList;

namespace mozilla {
namespace dom {
Expand Down
8 changes: 4 additions & 4 deletions content/media/directshow/DirectShowReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
#include "mozilla/RefPtr.h"
#include "MP3FrameParser.h"

class IGraphBuilder;
class IMediaControl;
class IMediaSeeking;
class IMediaEventEx;
struct IGraphBuilder;
struct IMediaControl;
struct IMediaSeeking;
struct IMediaEventEx;

namespace mozilla {

Expand Down
2 changes: 1 addition & 1 deletion content/media/eme/MediaKeyMessageEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
namespace mozilla {
namespace dom {

class MediaKeyMessageEventInit;
struct MediaKeyMessageEventInit;

class MediaKeyMessageEvent MOZ_FINAL : public Event
{
Expand Down
2 changes: 1 addition & 1 deletion content/media/fmp4/PlatformDecoderModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
namespace mp4_demuxer {
class VideoDecoderConfig;
class AudioDecoderConfig;
struct MP4Sample;
class MP4Sample;
}

class nsIThreadPool;
Expand Down
6 changes: 3 additions & 3 deletions content/media/webrtc/MediaEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

namespace mozilla {

class VideoTrackConstraintsN;
class AudioTrackConstraintsN;
struct VideoTrackConstraintsN;
struct AudioTrackConstraintsN;

/**
* Abstract interface for managing audio and video devices. Each platform
Expand All @@ -24,7 +24,7 @@ class AudioTrackConstraintsN;
*/
class MediaEngineVideoSource;
class MediaEngineAudioSource;
struct MediaEnginePrefs;
class MediaEnginePrefs;

enum MediaEngineState {
kAllocated,
Expand Down
2 changes: 1 addition & 1 deletion content/svg/content/src/SVGMotionSMILType.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class nsSMILValue;
namespace mozilla {

namespace gfx {
struct Matrix;
class Matrix;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion content/svg/content/src/SVGTransformableElement.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class SVGAnimatedTransformList;
class SVGGraphicsElement;
class SVGMatrix;
class SVGIRect;
class SVGBoundingBoxOptions;
struct SVGBoundingBoxOptions;

class SVGTransformableElement : public nsSVGElement
{
Expand Down
2 changes: 1 addition & 1 deletion dom/archivereader/ArchiveReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

namespace mozilla {
namespace dom {
class ArchiveReaderOptions;
struct ArchiveReaderOptions;
class GlobalObject;
} // namespace dom
} // namespace mozilla
Expand Down
2 changes: 1 addition & 1 deletion dom/base/Console.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace mozilla {
namespace dom {

class ConsoleCallData;
class ConsoleStackEntry;
struct ConsoleStackEntry;

class Console MOZ_FINAL : public nsITimerCallback
, public nsIObserver
Expand Down
2 changes: 1 addition & 1 deletion dom/base/Navigator.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace mozilla {
namespace dom {
class Geolocation;
class systemMessageCallback;
class MediaStreamConstraints;
struct MediaStreamConstraints;
class WakeLock;
class ArrayBufferViewOrBlobOrStringOrFormData;
}
Expand Down
2 changes: 1 addition & 1 deletion dom/base/nsDOMWindowUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class nsGlobalWindow;
class nsIPresShell;
class nsIWidget;
class nsPresContext;
class nsPoint;
class nsIDocument;
struct nsPoint;

namespace mozilla {
namespace layers {
Expand Down
2 changes: 1 addition & 1 deletion dom/bindings/Codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -11256,7 +11256,7 @@ def forwardDeclareForType(t, workerness='both'):
builder.add(d.nativeType)

# We just about always need NativePropertyHooks
builder.addInMozillaDom("NativePropertyHooks")
builder.addInMozillaDom("NativePropertyHooks", isStruct=True)
builder.addInMozillaDom("ProtoAndIfaceCache")
# Add the atoms cache type, even if we don't need it.
for d in descriptors:
Expand Down
8 changes: 4 additions & 4 deletions dom/camera/DOMCameraControl.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ namespace mozilla {

namespace dom {
class CameraCapabilities;
class CameraPictureOptions;
class CameraStartRecordingOptions;
class CameraRegion;
class CameraSize;
struct CameraPictureOptions;
struct CameraStartRecordingOptions;
struct CameraRegion;
struct CameraSize;
template<typename T> class Optional;
}
class ErrorResult;
Expand Down
2 changes: 1 addition & 1 deletion dom/camera/DOMCameraManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace mozilla {
class ErrorResult;
class nsDOMCameraControl;
namespace dom {
class CameraConfiguration;
struct CameraConfiguration;
class GetCameraCallback;
class CameraErrorCallback;
}
Expand Down
2 changes: 1 addition & 1 deletion dom/devicestorage/DeviceStorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class nsIOutputStream;
namespace mozilla {
class EventListenerManager;
namespace dom {
class DeviceStorageEnumerationParameters;
struct DeviceStorageEnumerationParameters;
class DOMCursor;
class DOMRequest;
class Promise;
Expand Down
2 changes: 1 addition & 1 deletion dom/events/DOMEventTargetHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "mozilla/EventListenerManager.h"
#include "mozilla/dom/EventTarget.h"

class JSCompartment;
struct JSCompartment;

namespace mozilla {

Expand Down
2 changes: 1 addition & 1 deletion dom/events/MessageEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace mozilla {
namespace dom {

class MessageEventInit;
struct MessageEventInit;
class MessagePort;
class MessagePortBase;
class MessagePortList;
Expand Down
2 changes: 1 addition & 1 deletion dom/filehandle/FileHandle.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class EventChainPreVisitor;

namespace dom {

class DOMFileMetadataParameters;
struct DOMFileMetadataParameters;
class FileHelper;
class FileRequest;
class FileService;
Expand Down
2 changes: 1 addition & 1 deletion dom/filesystem/Directory.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
namespace mozilla {
namespace dom {

class CreateFileOptions;
struct CreateFileOptions;
class FileSystemBase;
class Promise;
class StringOrFileOrDirectory;
Expand Down
2 changes: 1 addition & 1 deletion dom/indexedDB/IDBFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ErrorResult;

namespace dom {
class nsIContentParent;
class IDBOpenDBOptions;
struct IDBOpenDBOptions;

namespace indexedDB {

Expand Down
2 changes: 1 addition & 1 deletion dom/indexedDB/IDBRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class EventChainPostVisitor;
class EventChainPreVisitor;
namespace dom {
class OwningIDBObjectStoreOrIDBIndexOrIDBCursor;
class ErrorEventInit;
struct ErrorEventInit;
}
}

Expand Down
2 changes: 1 addition & 1 deletion dom/interfaces/base/nsIDOMWindowUtils.idl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
%{C++
#include "nsColor.h"
class gfxContext;
class nsRect;
struct nsRect;
%}

[ref] native nsConstRect(const nsRect);
Expand Down
2 changes: 1 addition & 1 deletion dom/interfaces/geolocation/nsIDOMGeoGeolocation.idl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface nsIDOMGeoPositionErrorCallback;
%{C++
namespace mozilla {
namespace dom {
class PositionOptions;
struct PositionOptions;
}
}
%}
Expand Down
2 changes: 1 addition & 1 deletion dom/ipc/PBrowser.ipdl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ include PContentPermission;


using class IPC::Principal from "mozilla/dom/PermissionMessageUtils.h";
using struct mozilla::gfx::Matrix from "mozilla/gfx/Matrix.h";
using class mozilla::gfx::Matrix from "mozilla/gfx/Matrix.h";
using struct gfxSize from "gfxPoint.h";
using CSSRect from "Units.h";
using struct mozilla::layers::FrameMetrics from "FrameMetrics.h";
Expand Down
2 changes: 1 addition & 1 deletion dom/ipc/TabContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace mozilla {
namespace dom {

struct IPCTabContext;
class IPCTabContext;

/**
* TabContext encapsulates information about an iframe that may be a mozbrowser
Expand Down
2 changes: 1 addition & 1 deletion dom/ipc/nsIContentChild.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class CpowEntry;
} // jsipc

namespace dom {
struct IPCTabContext;
class IPCTabContext;

class nsIContentChild : public nsISupports
{
Expand Down
2 changes: 1 addition & 1 deletion dom/ipc/nsIContentParent.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class CpowEntry;
} // namespace jsipc

namespace dom {
struct IPCTabContext;
class IPCTabContext;
class ContentParent;

class nsIContentParent : public nsISupports
Expand Down
3 changes: 2 additions & 1 deletion dom/media/GetUserMediaRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

namespace mozilla {
namespace dom {
class MediaStreamConstraints;

struct MediaStreamConstraints;

class GetUserMediaRequest : public nsISupports, public nsWrapperCache
{
Expand Down
2 changes: 1 addition & 1 deletion dom/media/MediaManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

namespace mozilla {
namespace dom {
class MediaStreamConstraints;
struct MediaStreamConstraints;
class NavigatorUserMediaSuccessCallback;
class NavigatorUserMediaErrorCallback;
}
Expand Down
2 changes: 1 addition & 1 deletion dom/telephony/ipc/TelephonyIPCService.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

BEGIN_TELEPHONY_NAMESPACE

struct IPCTelephonyRequest;
class IPCTelephonyRequest;
class PTelephonyChild;

class TelephonyIPCService MOZ_FINAL : public nsITelephonyService
Expand Down
2 changes: 1 addition & 1 deletion dom/workers/WorkerPrivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class nsITimer;
class nsIURI;

namespace JS {
class RuntimeStats;
struct RuntimeStats;
}

namespace mozilla {
Expand Down
2 changes: 1 addition & 1 deletion dom/workers/WorkerRunnable.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "nsISupportsImpl.h"
#include "nsThreadUtils.h" /* nsRunnable */

class JSContext;
struct JSContext;
class nsIEventTarget;

BEGIN_WORKERS_NAMESPACE
Expand Down
2 changes: 1 addition & 1 deletion dom/xbl/nsXBLMaybeCompiled.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class nsXBLMaybeCompiled
JSObject* mCompiled;
};

friend class js::GCMethods<nsXBLMaybeCompiled<UncompiledT> >;
friend struct js::GCMethods<nsXBLMaybeCompiled<UncompiledT>>;
};

/* Add support for JS::Heap<nsXBLMaybeCompiled>. */
Expand Down
2 changes: 1 addition & 1 deletion gfx/layers/apz/src/AsyncPanZoomController.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class CompositorParent;
class GestureEventListener;
class ContainerLayer;
class PCompositorParent;
class ViewTransform;
struct ViewTransform;
class AsyncPanZoomAnimation;
class FlingAnimation;

Expand Down
Loading

0 comments on commit bc0233f

Please sign in to comment.