Skip to content

Commit

Permalink
Bug 1015664. Part 1: Remove NS_HIDDEN_() usage. r=bsmedberg
Browse files Browse the repository at this point in the history
  • Loading branch information
rocallahan committed Jun 2, 2014
1 parent c5f6316 commit cbb8fde
Show file tree
Hide file tree
Showing 81 changed files with 464 additions and 464 deletions.
6 changes: 3 additions & 3 deletions browser/components/shell/src/nsGNOMEShellService.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ class nsGNOMEShellService MOZ_FINAL : public nsIShellService
private:
~nsGNOMEShellService() {}

NS_HIDDEN_(bool) KeyMatchesAppName(const char *aKeyValue) const;
NS_HIDDEN_(bool) CheckHandlerMatchesAppName(const nsACString& handler) const;
bool KeyMatchesAppName(const char *aKeyValue) const;
bool CheckHandlerMatchesAppName(const nsACString& handler) const;

NS_HIDDEN_(bool) GetAppPathFromLauncher();
bool GetAppPathFromLauncher();
bool mCheckedThisSession;
bool mUseLocaleFilenames;
nsCString mAppPath;
Expand Down
4 changes: 2 additions & 2 deletions content/base/public/Element.h
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ class Element : public FragmentOrElement
* @param aAttr name of attribute.
* @param aValue Boolean value of attribute.
*/
NS_HIDDEN_(bool) GetBoolAttr(nsIAtom* aAttr) const
bool GetBoolAttr(nsIAtom* aAttr) const
{
return HasAttr(kNameSpaceID_None, aAttr);
}
Expand All @@ -962,7 +962,7 @@ class Element : public FragmentOrElement
* @param aAttr name of attribute.
* @param aValue Boolean value of attribute.
*/
NS_HIDDEN_(nsresult) SetBoolAttr(nsIAtom* aAttr, bool aValue);
nsresult SetBoolAttr(nsIAtom* aAttr, bool aValue);

/**
* Retrieve the ratio of font-size-inflated text font size to computed font
Expand Down
12 changes: 6 additions & 6 deletions content/base/public/nsXMLNameSpaceMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,37 +31,37 @@ class nsXMLNameSpaceMap
* Allocates a new nsXMLNameSpaceMap (with new()) and if aForXML is
* true initializes it with the xmlns and xml namespaces.
*/
static NS_HIDDEN_(nsXMLNameSpaceMap*) Create(bool aForXML);
static nsXMLNameSpaceMap* Create(bool aForXML);

/**
* Add a prefix and its corresponding namespace ID to the map.
* Passing a null |aPrefix| corresponds to the default namespace, which may
* be set to something other than kNameSpaceID_None.
*/
NS_HIDDEN_(nsresult) AddPrefix(nsIAtom *aPrefix, int32_t aNameSpaceID);
nsresult AddPrefix(nsIAtom *aPrefix, int32_t aNameSpaceID);

/**
* Add a prefix and a namespace URI to the map. The URI will be converted
* to its corresponding namespace ID.
*/
NS_HIDDEN_(nsresult) AddPrefix(nsIAtom *aPrefix, nsString &aURI);
nsresult AddPrefix(nsIAtom *aPrefix, nsString &aURI);

/*
* Returns the namespace ID for the given prefix, if it is in the map.
* If |aPrefix| is null and is not in the map, then a null namespace
* (kNameSpaceID_None) is returned. If |aPrefix| is non-null and is not in
* the map, then kNameSpaceID_Unknown is returned.
*/
NS_HIDDEN_(int32_t) FindNameSpaceID(nsIAtom *aPrefix) const;
int32_t FindNameSpaceID(nsIAtom *aPrefix) const;

/**
* If the given namespace ID is in the map, then the first prefix which
* maps to that namespace is returned. Otherwise, null is returned.
*/
NS_HIDDEN_(nsIAtom*) FindPrefix(int32_t aNameSpaceID) const;
nsIAtom* FindPrefix(int32_t aNameSpaceID) const;

/* Removes all prefix mappings. */
NS_HIDDEN_(void) Clear();
void Clear();

~nsXMLNameSpaceMap() { Clear(); }

Expand Down
6 changes: 3 additions & 3 deletions content/base/src/nsContentList.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,9 @@ class nsContentList : public nsBaseContentList,
nsTArray<nsString>& aNames) MOZ_OVERRIDE;

// nsContentList public methods
NS_HIDDEN_(uint32_t) Length(bool aDoFlush);
NS_HIDDEN_(nsIContent*) Item(uint32_t aIndex, bool aDoFlush);
NS_HIDDEN_(mozilla::dom::Element*)
uint32_t Length(bool aDoFlush);
nsIContent* Item(uint32_t aIndex, bool aDoFlush);
mozilla::dom::Element*
NamedItem(const nsAString& aName, bool aDoFlush);

// nsIMutationObserver
Expand Down
14 changes: 7 additions & 7 deletions content/base/src/nsContentSink.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ class nsContentSink : public nsICSSLoaderObserver,
virtual nsresult ProcessMETATag(nsIContent* aContent);

// nsIContentSink implementation helpers
NS_HIDDEN_(nsresult) WillParseImpl(void);
NS_HIDDEN_(nsresult) WillInterruptImpl(void);
NS_HIDDEN_(nsresult) WillResumeImpl(void);
NS_HIDDEN_(nsresult) DidProcessATokenImpl(void);
NS_HIDDEN_(void) WillBuildModelImpl(void);
NS_HIDDEN_(void) DidBuildModelImpl(bool aTerminated);
NS_HIDDEN_(void) DropParserAndPerfHint(void);
nsresult WillParseImpl(void);
nsresult WillInterruptImpl(void);
nsresult WillResumeImpl(void);
nsresult DidProcessATokenImpl(void);
void WillBuildModelImpl(void);
void DidBuildModelImpl(bool aTerminated);
void DropParserAndPerfHint(void);
bool IsScriptExecutingImpl();

void NotifyAppend(nsIContent* aContent, uint32_t aStartIndex);
Expand Down
48 changes: 24 additions & 24 deletions content/base/src/nsDocument.h
Original file line number Diff line number Diff line change
Expand Up @@ -969,53 +969,53 @@ class nsDocument : public nsIDocument,
int32_t aNamespaceID,
nsIContent **aResult) MOZ_OVERRIDE;

virtual NS_HIDDEN_(void) Sanitize();
virtual void Sanitize();

virtual NS_HIDDEN_(void) EnumerateSubDocuments(nsSubDocEnumFunc aCallback,
virtual void EnumerateSubDocuments(nsSubDocEnumFunc aCallback,
void *aData);

virtual NS_HIDDEN_(bool) CanSavePresentation(nsIRequest *aNewRequest);
virtual NS_HIDDEN_(void) Destroy();
virtual NS_HIDDEN_(void) RemovedFromDocShell();
virtual NS_HIDDEN_(already_AddRefed<nsILayoutHistoryState>) GetLayoutHistoryState() const;
virtual bool CanSavePresentation(nsIRequest *aNewRequest);
virtual void Destroy();
virtual void RemovedFromDocShell();
virtual already_AddRefed<nsILayoutHistoryState> GetLayoutHistoryState() const;

virtual NS_HIDDEN_(void) BlockOnload();
virtual NS_HIDDEN_(void) UnblockOnload(bool aFireSync);
virtual void BlockOnload();
virtual void UnblockOnload(bool aFireSync);

virtual NS_HIDDEN_(void) AddStyleRelevantLink(mozilla::dom::Link* aLink);
virtual NS_HIDDEN_(void) ForgetLink(mozilla::dom::Link* aLink);
virtual void AddStyleRelevantLink(mozilla::dom::Link* aLink);
virtual void ForgetLink(mozilla::dom::Link* aLink);

NS_HIDDEN_(void) ClearBoxObjectFor(nsIContent* aContent);
void ClearBoxObjectFor(nsIContent* aContent);
already_AddRefed<nsIBoxObject> GetBoxObjectFor(mozilla::dom::Element* aElement,
mozilla::ErrorResult& aRv) MOZ_OVERRIDE;

virtual NS_HIDDEN_(Element*)
virtual Element*
GetAnonymousElementByAttribute(nsIContent* aElement,
nsIAtom* aAttrName,
const nsAString& aAttrValue) const;

virtual NS_HIDDEN_(Element*) ElementFromPointHelper(float aX, float aY,
virtual Element* ElementFromPointHelper(float aX, float aY,
bool aIgnoreRootScrollFrame,
bool aFlushLayout);

virtual NS_HIDDEN_(nsresult) NodesFromRectHelper(float aX, float aY,
virtual nsresult NodesFromRectHelper(float aX, float aY,
float aTopSize, float aRightSize,
float aBottomSize, float aLeftSize,
bool aIgnoreRootScrollFrame,
bool aFlushLayout,
nsIDOMNodeList** aReturn);

virtual NS_HIDDEN_(void) FlushSkinBindings();
virtual void FlushSkinBindings();

virtual NS_HIDDEN_(nsresult) InitializeFrameLoader(nsFrameLoader* aLoader);
virtual NS_HIDDEN_(nsresult) FinalizeFrameLoader(nsFrameLoader* aLoader);
virtual NS_HIDDEN_(void) TryCancelFrameLoaderInitialization(nsIDocShell* aShell);
virtual NS_HIDDEN_(bool) FrameLoaderScheduledToBeFinalized(nsIDocShell* aShell);
virtual NS_HIDDEN_(nsIDocument*)
virtual nsresult InitializeFrameLoader(nsFrameLoader* aLoader);
virtual nsresult FinalizeFrameLoader(nsFrameLoader* aLoader);
virtual void TryCancelFrameLoaderInitialization(nsIDocShell* aShell);
virtual bool FrameLoaderScheduledToBeFinalized(nsIDocShell* aShell);
virtual nsIDocument*
RequestExternalResource(nsIURI* aURI,
nsINode* aRequestingNode,
ExternalResourceLoad** aPendingLoad);
virtual NS_HIDDEN_(void)
virtual void
EnumerateExternalResources(nsSubDocEnumFunc aCallback, void* aData);

nsTArray<nsCString> mHostObjectURIs;
Expand Down Expand Up @@ -1099,9 +1099,9 @@ class nsDocument : public nsIDocument,
virtual void MozSetImageElement(const nsAString& aImageElementId,
Element* aElement) MOZ_OVERRIDE;

virtual NS_HIDDEN_(nsresult) AddImage(imgIRequest* aImage);
virtual NS_HIDDEN_(nsresult) RemoveImage(imgIRequest* aImage, uint32_t aFlags);
virtual NS_HIDDEN_(nsresult) SetImageLockingState(bool aLocked);
virtual nsresult AddImage(imgIRequest* aImage);
virtual nsresult RemoveImage(imgIRequest* aImage, uint32_t aFlags);
virtual nsresult SetImageLockingState(bool aLocked);

// AddPlugin adds a plugin-related element to mPlugins when the element is
// added to the tree.
Expand Down
4 changes: 2 additions & 2 deletions content/base/src/nsFrameLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class nsFrameLoader MOZ_FINAL : public nsIFrameLoader,
NS_DECL_NSIFRAMELOADER
NS_DECL_NSICONTENTVIEWMANAGER
NS_DECL_NSIMUTATIONOBSERVER_ATTRIBUTECHANGED
NS_HIDDEN_(nsresult) CheckForRecursiveLoad(nsIURI* aURI);
nsresult CheckForRecursiveLoad(nsIURI* aURI);
nsresult ReallyStartLoading();
void Finalize();
nsIDocShell* GetExistingDocShell() { return mDocShell; }
Expand Down Expand Up @@ -372,7 +372,7 @@ class nsFrameLoader MOZ_FINAL : public nsIFrameLoader,

// Updates the subdocument position and size. This gets called only
// when we have our own in-process DocShell.
NS_HIDDEN_(nsresult) UpdateBaseWindowPositionAndSize(nsSubDocumentFrame *aIFrame);
nsresult UpdateBaseWindowPositionAndSize(nsSubDocumentFrame *aIFrame);
nsresult CheckURILoad(nsIURI* aURI);
void FireErrorEvent();
nsresult ReallyStartLoadingInternal();
Expand Down
6 changes: 3 additions & 3 deletions content/base/src/nsPropertyTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ class nsPropertyTable::PropertyList {

// Removes the property associated with the given object, and destroys
// the property value
NS_HIDDEN_(bool) DeletePropertyFor(nsPropertyOwner aObject);
bool DeletePropertyFor(nsPropertyOwner aObject);

// Destroy all remaining properties (without removing them)
NS_HIDDEN_(void) Destroy();
void Destroy();

NS_HIDDEN_(bool) Equals(nsIAtom *aPropertyName)
bool Equals(nsIAtom *aPropertyName)
{
return mName == aPropertyName;
}
Expand Down
22 changes: 11 additions & 11 deletions content/base/src/nsPropertyTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class nsPropertyTable
* table changes too). If |aTransfer| is false the property will just be
* deleted instead.
*/
NS_HIDDEN_(nsresult) SetProperty(nsPropertyOwner aObject,
nsresult SetProperty(nsPropertyOwner aObject,
nsIAtom *aPropertyName,
void *aPropertyValue,
NSPropertyDtorFunc aDtor,
Expand All @@ -109,7 +109,7 @@ class nsPropertyTable
* Delete the property |aPropertyName| in the global category for object
* |aObject|. The property's destructor function will be called.
*/
NS_HIDDEN_(nsresult) DeleteProperty(nsPropertyOwner aObject,
nsresult DeleteProperty(nsPropertyOwner aObject,
nsIAtom *aPropertyName);

/**
Expand All @@ -128,7 +128,7 @@ class nsPropertyTable
* Deletes all of the properties for object |aObject|, calling the
* destructor function for each property.
*/
NS_HIDDEN_(void) DeleteAllPropertiesFor(nsPropertyOwner aObject);
void DeleteAllPropertiesFor(nsPropertyOwner aObject);

/**
* Transfers all properties for object |aObject| that were set with the
Expand All @@ -137,7 +137,7 @@ class nsPropertyTable
* If transfering a property fails, this deletes all the properties for
* object |aObject|.
*/
NS_HIDDEN_(nsresult)
nsresult
TransferOrDeleteAllPropertiesFor(nsPropertyOwner aObject,
nsPropertyTable *aOtherTable);

Expand All @@ -146,21 +146,21 @@ class nsPropertyTable
* For every property |aCallback| will be called with as arguments |aObject|,
* the property name, the property value and |aData|.
*/
NS_HIDDEN_(void) Enumerate(nsPropertyOwner aObject,
void Enumerate(nsPropertyOwner aObject,
NSPropertyFunc aCallback, void *aData);

/**
* Enumerate all the properties.
* For every property |aCallback| will be called with arguments the owner,
* the property name, the property value and |aData|.
*/
NS_HIDDEN_(void) EnumerateAll(NSPropertyFunc aCallback, void *aData);
void EnumerateAll(NSPropertyFunc aCallback, void *aData);

/**
* Deletes all of the properties for all objects in the property
* table, calling the destructor function for each property.
*/
NS_HIDDEN_(void) DeleteAllProperties();
void DeleteAllProperties();

nsPropertyTable() : mPropertyList(nullptr) {}
~nsPropertyTable() {
Expand All @@ -181,13 +181,13 @@ class nsPropertyTable
size_t SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) const;

private:
NS_HIDDEN_(void) DestroyPropertyList();
NS_HIDDEN_(PropertyList*) GetPropertyListFor(nsIAtom *aPropertyName) const;
NS_HIDDEN_(void*) GetPropertyInternal(nsPropertyOwner aObject,
void DestroyPropertyList();
PropertyList* GetPropertyListFor(nsIAtom *aPropertyName) const;
void* GetPropertyInternal(nsPropertyOwner aObject,
nsIAtom *aPropertyName,
bool aRemove,
nsresult *aStatus);
NS_HIDDEN_(nsresult) SetPropertyInternal(nsPropertyOwner aObject,
nsresult SetPropertyInternal(nsPropertyOwner aObject,
nsIAtom *aPropertyName,
void *aPropertyValue,
NSPropertyDtorFunc aDtor,
Expand Down
2 changes: 1 addition & 1 deletion content/html/content/src/HTMLInputElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static NS_DEFINE_CID(kXULControllersCID, NS_XULCONTROLLERS_CID);

// This must come outside of any namespace, or else it won't overload with the
// double based version in nsMathUtils.h
inline NS_HIDDEN_(mozilla::Decimal)
inline mozilla::Decimal
NS_floorModulo(mozilla::Decimal x, mozilla::Decimal y)
{
return (x - y * (x / y).floor());
Expand Down
2 changes: 1 addition & 1 deletion content/html/content/src/HTMLObjectElement.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ class HTMLObjectElement MOZ_FINAL : public nsGenericHTMLFormElement
/**
* Calls LoadObject with the correct arguments to start the plugin load.
*/
NS_HIDDEN_(void) StartObjectLoad(bool aNotify);
void StartObjectLoad(bool aNotify);

/**
* Returns if the element is currently focusable regardless of it's tabindex
Expand Down
2 changes: 1 addition & 1 deletion content/html/content/src/HTMLSharedObjectElement.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class HTMLSharedObjectElement MOZ_FINAL : public nsGenericHTMLElement
/**
* Calls LoadObject with the correct arguments to start the plugin load.
*/
NS_HIDDEN_(void) StartObjectLoad(bool aNotify);
void StartObjectLoad(bool aNotify);

nsIAtom *URIAttrName() const
{
Expand Down
Loading

0 comments on commit cbb8fde

Please sign in to comment.