mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1048246 - Fix more bad implicit constructors in layout; r=roc
--HG-- extra : rebase_source : ed828993139bc70232508364a9f046e38b7d3e06
This commit is contained in:
parent
d3561de484
commit
5a033b2b9f
@ -1546,7 +1546,9 @@ HyperTextAccessible::ScrollSubstringToPoint(int32_t aStartOffset,
|
||||
int16_t hPercent = offsetPointX * 100 / size.width;
|
||||
int16_t vPercent = offsetPointY * 100 / size.height;
|
||||
|
||||
nsresult rv = nsCoreUtils::ScrollSubstringTo(frame, range, vPercent, hPercent);
|
||||
nsresult rv = nsCoreUtils::ScrollSubstringTo(frame, range,
|
||||
nsIPresShell::ScrollAxis(vPercent),
|
||||
nsIPresShell::ScrollAxis(hPercent));
|
||||
if (NS_FAILED(rv))
|
||||
return;
|
||||
|
||||
|
@ -131,7 +131,7 @@ private:
|
||||
*/
|
||||
class DisplayListClipState::AutoSaveRestore {
|
||||
public:
|
||||
AutoSaveRestore(nsDisplayListBuilder* aBuilder);
|
||||
explicit AutoSaveRestore(nsDisplayListBuilder* aBuilder);
|
||||
void Restore()
|
||||
{
|
||||
mState = mSavedState;
|
||||
@ -227,7 +227,7 @@ public:
|
||||
*/
|
||||
class DisplayListClipState::AutoClipMultiple : public AutoSaveRestore {
|
||||
public:
|
||||
AutoClipMultiple(nsDisplayListBuilder* aBuilder)
|
||||
explicit AutoClipMultiple(nsDisplayListBuilder* aBuilder)
|
||||
: AutoSaveRestore(aBuilder)
|
||||
, mExtraClipUsed(false)
|
||||
{}
|
||||
|
@ -595,7 +595,7 @@ protected:
|
||||
public:
|
||||
class ThebesLayerItemsEntry : public nsPtrHashKey<ThebesLayer> {
|
||||
public:
|
||||
ThebesLayerItemsEntry(const ThebesLayer *key)
|
||||
explicit ThebesLayerItemsEntry(const ThebesLayer *key)
|
||||
: nsPtrHashKey<ThebesLayer>(key)
|
||||
, mContainerLayerFrame(nullptr)
|
||||
, mLastCommonClipCount(0)
|
||||
|
@ -192,7 +192,7 @@ protected:
|
||||
class Entry : public nsPtrHashKey<nsIFrame>
|
||||
{
|
||||
public:
|
||||
Entry(KeyTypePointer aKey) : nsPtrHashKey<nsIFrame>(aKey) {}
|
||||
explicit Entry(KeyTypePointer aKey) : nsPtrHashKey<nsIFrame>(aKey) {}
|
||||
Entry(const Entry &toCopy) :
|
||||
nsPtrHashKey<nsIFrame>(toCopy), mProp(toCopy.mProp) {}
|
||||
|
||||
|
@ -624,7 +624,7 @@ public:
|
||||
: mContainingBlockClip(aContainingBlockClip)
|
||||
, mDirtyRect(aDirtyRect)
|
||||
{}
|
||||
OutOfFlowDisplayData(const nsRect &aDirtyRect)
|
||||
explicit OutOfFlowDisplayData(const nsRect &aDirtyRect)
|
||||
: mDirtyRect(aDirtyRect)
|
||||
{}
|
||||
DisplayItemClip mContainingBlockClip;
|
||||
@ -808,7 +808,7 @@ public:
|
||||
* This constructor is only used in rare cases when we need to construct
|
||||
* temporary items.
|
||||
*/
|
||||
nsDisplayItem(nsIFrame* aFrame)
|
||||
explicit nsDisplayItem(nsIFrame* aFrame)
|
||||
: mFrame(aFrame)
|
||||
, mClip(nullptr)
|
||||
, mReferenceFrame(nullptr)
|
||||
@ -830,7 +830,7 @@ public:
|
||||
struct HitTestState {
|
||||
typedef nsTArray<ViewID> ShadowArray;
|
||||
|
||||
HitTestState(ShadowArray* aShadows = nullptr)
|
||||
explicit HitTestState(ShadowArray* aShadows = nullptr)
|
||||
: mShadows(aShadows) {
|
||||
}
|
||||
|
||||
@ -1744,7 +1744,7 @@ struct nsDisplayListCollection : public nsDisplayListSet {
|
||||
nsDisplayListCollection() :
|
||||
nsDisplayListSet(&mLists[0], &mLists[1], &mLists[2], &mLists[3], &mLists[4],
|
||||
&mLists[5]) {}
|
||||
nsDisplayListCollection(nsDisplayList* aBorderBackground) :
|
||||
explicit nsDisplayListCollection(nsDisplayList* aBorderBackground) :
|
||||
nsDisplayListSet(aBorderBackground, &mLists[1], &mLists[2], &mLists[3], &mLists[4],
|
||||
&mLists[5]) {}
|
||||
|
||||
@ -3412,7 +3412,7 @@ public:
|
||||
nsCharClipDisplayItem(nsDisplayListBuilder* aBuilder, nsIFrame* aFrame)
|
||||
: nsDisplayItem(aBuilder, aFrame), mLeftEdge(0), mRightEdge(0) {}
|
||||
|
||||
nsCharClipDisplayItem(nsIFrame* aFrame)
|
||||
explicit nsCharClipDisplayItem(nsIFrame* aFrame)
|
||||
: nsDisplayItem(aFrame) {}
|
||||
|
||||
struct ClipEdges {
|
||||
|
@ -427,7 +427,7 @@ protected:
|
||||
class nsPrintEventDispatcher
|
||||
{
|
||||
public:
|
||||
nsPrintEventDispatcher(nsIDocument* aTop) : mTop(aTop)
|
||||
explicit nsPrintEventDispatcher(nsIDocument* aTop) : mTop(aTop)
|
||||
{
|
||||
nsDocumentViewer::DispatchBeforePrint(mTop);
|
||||
}
|
||||
@ -442,7 +442,7 @@ public:
|
||||
class nsDocumentShownDispatcher : public nsRunnable
|
||||
{
|
||||
public:
|
||||
nsDocumentShownDispatcher(nsCOMPtr<nsIDocument> aDocument)
|
||||
explicit nsDocumentShownDispatcher(nsCOMPtr<nsIDocument> aDocument)
|
||||
: mDocument(aDocument) {}
|
||||
|
||||
NS_IMETHOD Run() MOZ_OVERRIDE;
|
||||
|
@ -654,9 +654,9 @@ public:
|
||||
* no scrollbar showing and less than one device pixel of
|
||||
* scrollable distance), don't scroll. Defaults to false.
|
||||
*/
|
||||
ScrollAxis(int16_t aWhere = SCROLL_MINIMUM,
|
||||
WhenToScroll aWhen = SCROLL_IF_NOT_FULLY_VISIBLE,
|
||||
bool aOnlyIfPerceivedScrollableDirection = false) :
|
||||
explicit ScrollAxis(int16_t aWhere = SCROLL_MINIMUM,
|
||||
WhenToScroll aWhen = SCROLL_IF_NOT_FULLY_VISIBLE,
|
||||
bool aOnlyIfPerceivedScrollableDirection = false) :
|
||||
mWhereToScroll(aWhere), mWhenToScroll(aWhen),
|
||||
mOnlyIfPerceivedScrollableDirection(aOnlyIfPerceivedScrollableDirection)
|
||||
{}
|
||||
|
@ -1000,7 +1000,7 @@ public:
|
||||
struct RectListBuilder : public RectCallback {
|
||||
DOMRectList* mRectList;
|
||||
|
||||
RectListBuilder(DOMRectList* aList);
|
||||
explicit RectListBuilder(DOMRectList* aList);
|
||||
virtual void AddRect(const nsRect& aRect);
|
||||
};
|
||||
|
||||
@ -2346,7 +2346,7 @@ namespace mozilla {
|
||||
*/
|
||||
class AutoMaybeDisableFontInflation {
|
||||
public:
|
||||
AutoMaybeDisableFontInflation(nsIFrame *aFrame);
|
||||
explicit AutoMaybeDisableFontInflation(nsIFrame *aFrame);
|
||||
|
||||
~AutoMaybeDisableFontInflation();
|
||||
private:
|
||||
|
@ -118,7 +118,7 @@ private:
|
||||
typedef const void* KeyTypePointer;
|
||||
KeyTypePointer mKey;
|
||||
|
||||
FreeList(KeyTypePointer aKey)
|
||||
explicit FreeList(KeyTypePointer aKey)
|
||||
: mEntrySize(0), mEntriesEverAllocated(0), mKey(aKey) {}
|
||||
// Default copy constructor and destructor are ok.
|
||||
|
||||
|
@ -937,7 +937,7 @@ public:
|
||||
friend class InterruptPreventer;
|
||||
class MOZ_STACK_CLASS InterruptPreventer {
|
||||
public:
|
||||
InterruptPreventer(nsPresContext* aCtx) :
|
||||
explicit InterruptPreventer(nsPresContext* aCtx) :
|
||||
mCtx(aCtx),
|
||||
mInterruptsEnabled(aCtx->mInterruptsEnabled),
|
||||
mHasPendingInterrupt(aCtx->mHasPendingInterrupt)
|
||||
@ -1492,7 +1492,7 @@ protected:
|
||||
|
||||
class RunWillPaintObservers : public nsRunnable {
|
||||
public:
|
||||
RunWillPaintObservers(nsRootPresContext* aPresContext) : mPresContext(aPresContext) {}
|
||||
explicit RunWillPaintObservers(nsRootPresContext* aPresContext) : mPresContext(aPresContext) {}
|
||||
void Revoke() { mPresContext = nullptr; }
|
||||
NS_IMETHOD Run() MOZ_OVERRIDE
|
||||
{
|
||||
|
@ -66,7 +66,7 @@ public:
|
||||
class nsRefreshDriver MOZ_FINAL : public mozilla::layers::TransactionIdAllocator,
|
||||
public nsARefreshObserver {
|
||||
public:
|
||||
nsRefreshDriver(nsPresContext *aPresContext);
|
||||
explicit nsRefreshDriver(nsPresContext *aPresContext);
|
||||
~nsRefreshDriver();
|
||||
|
||||
static void InitializeStatics();
|
||||
|
@ -26,7 +26,7 @@ friend class FrameChildListIterator;
|
||||
public:
|
||||
FrameChildListIDs() : mIDs(0) {}
|
||||
FrameChildListIDs(const FrameChildListIDs& aOther) : mIDs(aOther.mIDs) {}
|
||||
FrameChildListIDs(FrameChildListID aListID) : mIDs(aListID) {}
|
||||
MOZ_IMPLICIT FrameChildListIDs(FrameChildListID aListID) : mIDs(aListID) {}
|
||||
|
||||
FrameChildListIDs operator|(FrameChildListIDs aOther) const {
|
||||
return FrameChildListIDs(mIDs | aOther.mIDs);
|
||||
@ -46,7 +46,7 @@ friend class FrameChildListIterator;
|
||||
}
|
||||
|
||||
protected:
|
||||
FrameChildListIDs(uint32_t aIDs) : mIDs(aIDs) {}
|
||||
explicit FrameChildListIDs(uint32_t aIDs) : mIDs(aIDs) {}
|
||||
uint32_t mIDs;
|
||||
};
|
||||
|
||||
@ -63,7 +63,7 @@ class FrameChildList {
|
||||
*/
|
||||
class MOZ_STACK_CLASS FrameChildListArrayIterator {
|
||||
public:
|
||||
FrameChildListArrayIterator(const nsTArray<FrameChildList>& aLists)
|
||||
explicit FrameChildListArrayIterator(const nsTArray<FrameChildList>& aLists)
|
||||
: mLists(aLists), mCurrentIndex(0) {}
|
||||
bool IsDone() const { return mCurrentIndex >= mLists.Length(); }
|
||||
FrameChildListID CurrentID() const {
|
||||
@ -90,7 +90,7 @@ protected:
|
||||
class MOZ_STACK_CLASS FrameChildListIterator
|
||||
: public FrameChildListArrayIterator {
|
||||
public:
|
||||
FrameChildListIterator(const nsIFrame* aFrame);
|
||||
explicit FrameChildListIterator(const nsIFrame* aFrame);
|
||||
|
||||
protected:
|
||||
nsAutoTArray<FrameChildList,4> mLists;
|
||||
|
@ -30,7 +30,7 @@ class ErrorResult;
|
||||
|
||||
struct RangeData
|
||||
{
|
||||
RangeData(nsRange* aRange)
|
||||
explicit RangeData(nsRange* aRange)
|
||||
: mRange(aRange)
|
||||
{}
|
||||
|
||||
@ -55,7 +55,7 @@ protected:
|
||||
|
||||
public:
|
||||
Selection();
|
||||
Selection(nsFrameSelection *aList);
|
||||
explicit Selection(nsFrameSelection *aList);
|
||||
|
||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_AMBIGUOUS(Selection, nsISelectionPrivate)
|
||||
|
@ -220,7 +220,7 @@ public:
|
||||
/**
|
||||
* Construct writing mode based on a style context
|
||||
*/
|
||||
WritingMode(const nsStyleVisibility* aStyleVisibility)
|
||||
explicit WritingMode(const nsStyleVisibility* aStyleVisibility)
|
||||
{
|
||||
NS_ASSERTION(aStyleVisibility, "we need an nsStyleVisibility here");
|
||||
|
||||
@ -301,7 +301,7 @@ private:
|
||||
* Constructing a WritingMode with an arbitrary value is a private operation
|
||||
* currently only used by the Unknown() static method.
|
||||
*/
|
||||
WritingMode(uint8_t aValue)
|
||||
explicit WritingMode(uint8_t aValue)
|
||||
: mWritingMode(aValue)
|
||||
{ }
|
||||
|
||||
@ -365,7 +365,7 @@ private:
|
||||
*/
|
||||
class LogicalPoint {
|
||||
public:
|
||||
LogicalPoint(WritingMode aWritingMode)
|
||||
explicit LogicalPoint(WritingMode aWritingMode)
|
||||
:
|
||||
#ifdef DEBUG
|
||||
mWritingMode(aWritingMode),
|
||||
@ -569,7 +569,7 @@ private:
|
||||
*/
|
||||
class LogicalSize {
|
||||
public:
|
||||
LogicalSize(WritingMode aWritingMode)
|
||||
explicit LogicalSize(WritingMode aWritingMode)
|
||||
:
|
||||
#ifdef DEBUG
|
||||
mWritingMode(aWritingMode),
|
||||
@ -734,7 +734,7 @@ private:
|
||||
*/
|
||||
class LogicalMargin {
|
||||
public:
|
||||
LogicalMargin(WritingMode aWritingMode)
|
||||
explicit LogicalMargin(WritingMode aWritingMode)
|
||||
:
|
||||
#ifdef DEBUG
|
||||
mWritingMode(aWritingMode),
|
||||
@ -1020,7 +1020,7 @@ private:
|
||||
*/
|
||||
class LogicalRect {
|
||||
public:
|
||||
LogicalRect(WritingMode aWritingMode)
|
||||
explicit LogicalRect(WritingMode aWritingMode)
|
||||
:
|
||||
#ifdef DEBUG
|
||||
mWritingMode(aWritingMode),
|
||||
|
@ -421,7 +421,7 @@ public:
|
||||
NS_DECLARE_FRAME_PROPERTY_FRAMELIST(ExcessOverflowContainersProperty)
|
||||
|
||||
protected:
|
||||
nsContainerFrame(nsStyleContext* aContext) : nsSplittableFrame(aContext) {}
|
||||
explicit nsContainerFrame(nsStyleContext* aContext) : nsSplittableFrame(aContext) {}
|
||||
~nsContainerFrame();
|
||||
|
||||
/**
|
||||
|
@ -517,7 +517,7 @@ public:
|
||||
|
||||
protected:
|
||||
// Protected constructor and destructor
|
||||
nsFrame(nsStyleContext* aContext);
|
||||
explicit nsFrame(nsStyleContext* aContext);
|
||||
virtual ~nsFrame();
|
||||
|
||||
/**
|
||||
@ -751,7 +751,7 @@ public:
|
||||
};
|
||||
|
||||
struct DR_layout_cookie {
|
||||
DR_layout_cookie(nsIFrame* aFrame);
|
||||
explicit DR_layout_cookie(nsIFrame* aFrame);
|
||||
~DR_layout_cookie();
|
||||
|
||||
nsIFrame* mFrame;
|
||||
|
@ -299,7 +299,7 @@ public:
|
||||
public:
|
||||
// Implicit on purpose, so that we can easily create enumerators from
|
||||
// nsFrameList via this impicit constructor.
|
||||
Slice(const nsFrameList& aList) :
|
||||
MOZ_IMPLICIT Slice(const nsFrameList& aList) :
|
||||
#ifdef DEBUG
|
||||
mList(aList),
|
||||
#endif
|
||||
@ -334,7 +334,7 @@ public:
|
||||
|
||||
class Enumerator {
|
||||
public:
|
||||
Enumerator(const Slice& aSlice) :
|
||||
explicit Enumerator(const Slice& aSlice) :
|
||||
#ifdef DEBUG
|
||||
mSlice(aSlice),
|
||||
#endif
|
||||
@ -415,7 +415,7 @@ public:
|
||||
public:
|
||||
friend class nsFrameList;
|
||||
|
||||
FrameLinkEnumerator(const nsFrameList& aList) :
|
||||
explicit FrameLinkEnumerator(const nsFrameList& aList) :
|
||||
Enumerator(aList),
|
||||
mPrev(nullptr)
|
||||
{}
|
||||
|
@ -204,7 +204,7 @@ public:
|
||||
// XXX width/height/ascent are OUT parameters and so they shouldn't
|
||||
// have to be initialized, but there are some bad frame classes that
|
||||
// aren't properly setting them when returning from Reflow()...
|
||||
nsHTMLReflowMetrics(mozilla::WritingMode aWritingMode, uint32_t aFlags = 0)
|
||||
explicit nsHTMLReflowMetrics(mozilla::WritingMode aWritingMode, uint32_t aFlags = 0)
|
||||
: mISize(0)
|
||||
, mBSize(0)
|
||||
, mBlockStartAscent(ASK_FOR_BASELINE)
|
||||
@ -212,7 +212,7 @@ public:
|
||||
, mWritingMode(aWritingMode)
|
||||
{}
|
||||
|
||||
nsHTMLReflowMetrics(const nsHTMLReflowState& aState, uint32_t aFlags = 0);
|
||||
explicit nsHTMLReflowMetrics(const nsHTMLReflowState& aState, uint32_t aFlags = 0);
|
||||
|
||||
// ISize and BSize are logical-coordinate dimensions:
|
||||
// ISize is the size in the writing mode's inline direction (which equates to
|
||||
|
@ -3178,7 +3178,7 @@ public:
|
||||
Init(aOther.GetFrame());
|
||||
}
|
||||
|
||||
nsWeakFrame(nsIFrame* aFrame) : mPrev(nullptr), mFrame(nullptr)
|
||||
MOZ_IMPLICIT nsWeakFrame(nsIFrame* aFrame) : mPrev(nullptr), mFrame(nullptr)
|
||||
{
|
||||
Init(aFrame);
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
nsLeafFrame(nsStyleContext* aContext) : nsFrame(aContext) {}
|
||||
explicit nsLeafFrame(nsStyleContext* aContext) : nsFrame(aContext) {}
|
||||
virtual ~nsLeafFrame();
|
||||
|
||||
/**
|
||||
|
@ -77,7 +77,13 @@ public:
|
||||
class do_QueryFrame
|
||||
{
|
||||
public:
|
||||
do_QueryFrame(nsQueryFrame *s) : mRawPtr(s) { }
|
||||
explicit do_QueryFrame(nsQueryFrame *s) : mRawPtr(s) { }
|
||||
|
||||
// The return and argument types here are arbitrarily selected so no
|
||||
// corresponding member function exists.
|
||||
typedef void (do_QueryFrame::* MatchNullptr)(double, float);
|
||||
// Implicit constructor for nullptr, trick borrowed from already_AddRefed.
|
||||
MOZ_IMPLICIT do_QueryFrame(MatchNullptr aRawPtr) : mRawPtr(nullptr) {}
|
||||
|
||||
template<class Dest>
|
||||
operator Dest*() {
|
||||
|
@ -74,7 +74,7 @@ public:
|
||||
static void RemoveFromFlow(nsIFrame* aFrame);
|
||||
|
||||
protected:
|
||||
nsSplittableFrame(nsStyleContext* aContext) : nsFrame(aContext) {}
|
||||
explicit nsSplittableFrame(nsStyleContext* aContext) : nsFrame(aContext) {}
|
||||
|
||||
/**
|
||||
* Determine the height consumed by our previous-in-flows.
|
||||
|
@ -21,7 +21,7 @@ public:
|
||||
NS_DECL_QUERYFRAME_TARGET(nsSubDocumentFrame)
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
|
||||
nsSubDocumentFrame(nsStyleContext* aContext);
|
||||
explicit nsSubDocumentFrame(nsStyleContext* aContext);
|
||||
|
||||
#ifdef DEBUG_FRAME_DUMP
|
||||
void List(FILE* out = stderr, const char* aPrefix = "", uint32_t aFlags = 0) const MOZ_OVERRIDE;
|
||||
|
@ -41,7 +41,7 @@ public:
|
||||
|
||||
typedef enum {eIsPrinting, eIsPrintPreview } ePrintDataType;
|
||||
|
||||
nsPrintData(ePrintDataType aType);
|
||||
explicit nsPrintData(ePrintDataType aType);
|
||||
~nsPrintData(); // non-virtual
|
||||
|
||||
// Listener Helper Methods
|
||||
|
@ -115,7 +115,7 @@ class CSSStyleSheet MOZ_FINAL : public nsIStyleSheet,
|
||||
public nsWrapperCache
|
||||
{
|
||||
public:
|
||||
CSSStyleSheet(CORSMode aCORSMode);
|
||||
explicit CSSStyleSheet(CORSMode aCORSMode);
|
||||
|
||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_AMBIGUOUS(CSSStyleSheet,
|
||||
|
@ -104,7 +104,7 @@ class CounterStyleManager MOZ_FINAL
|
||||
private:
|
||||
~CounterStyleManager();
|
||||
public:
|
||||
CounterStyleManager(nsPresContext* aPresContext);
|
||||
explicit CounterStyleManager(nsPresContext* aPresContext);
|
||||
|
||||
static void InitializeBuiltinCounterStyles();
|
||||
|
||||
|
@ -46,7 +46,7 @@ public:
|
||||
typedef URIPrincipalAndCORSModeHashKey* KeyType;
|
||||
typedef const URIPrincipalAndCORSModeHashKey* KeyTypePointer;
|
||||
|
||||
URIPrincipalAndCORSModeHashKey(const URIPrincipalAndCORSModeHashKey* aKey)
|
||||
explicit URIPrincipalAndCORSModeHashKey(const URIPrincipalAndCORSModeHashKey* aKey)
|
||||
: nsURIHashKey(aKey->mKey), mPrincipal(aKey->mPrincipal),
|
||||
mCORSMode(aKey->mCORSMode)
|
||||
{
|
||||
@ -130,7 +130,7 @@ enum StyleSheetState {
|
||||
class Loader MOZ_FINAL {
|
||||
public:
|
||||
Loader();
|
||||
Loader(nsIDocument*);
|
||||
explicit Loader(nsIDocument*);
|
||||
|
||||
private:
|
||||
// Private destructor, to discourage deletion outside of Release():
|
||||
|
@ -363,7 +363,7 @@ struct MOZ_STACK_CLASS nsCSSGridTemplateAreaToken {
|
||||
// Scanner for the grid-template-areas micro-syntax
|
||||
class nsCSSGridTemplateAreaScanner {
|
||||
public:
|
||||
nsCSSGridTemplateAreaScanner(const nsAString& aBuffer);
|
||||
explicit nsCSSGridTemplateAreaScanner(const nsAString& aBuffer);
|
||||
|
||||
// Get the next token. Return false on EOF.
|
||||
// aTokenResult is filled in with the data for the token.
|
||||
|
@ -208,7 +208,7 @@ public:
|
||||
MOZ_COUNT_CTOR(FontFamilyListRefCnt);
|
||||
}
|
||||
|
||||
FontFamilyListRefCnt(FontFamilyType aGenericType)
|
||||
explicit FontFamilyListRefCnt(FontFamilyType aGenericType)
|
||||
: FontFamilyList(aGenericType)
|
||||
{
|
||||
MOZ_COUNT_CTOR(FontFamilyListRefCnt);
|
||||
@ -823,7 +823,7 @@ private:
|
||||
for (nsCSSValue *var = First() + 1, *var##_end = First() + mCount; \
|
||||
var != var##_end; ++var)
|
||||
|
||||
Array(size_t aItemCount)
|
||||
explicit Array(size_t aItemCount)
|
||||
: mRefCnt(0)
|
||||
, mCount(aItemCount)
|
||||
{
|
||||
@ -904,7 +904,7 @@ struct nsCSSValueSharedList MOZ_FINAL {
|
||||
}
|
||||
|
||||
// Takes ownership of aList.
|
||||
nsCSSValueSharedList(nsCSSValueList* aList)
|
||||
explicit nsCSSValueSharedList(nsCSSValueList* aList)
|
||||
: mHead(aList)
|
||||
{
|
||||
MOZ_COUNT_CTOR(nsCSSValueSharedList);
|
||||
@ -1044,7 +1044,7 @@ struct nsCSSValuePair {
|
||||
{
|
||||
MOZ_COUNT_CTOR(nsCSSValuePair);
|
||||
}
|
||||
nsCSSValuePair(nsCSSUnit aUnit)
|
||||
explicit nsCSSValuePair(nsCSSUnit aUnit)
|
||||
: mXValue(aUnit), mYValue(aUnit)
|
||||
{
|
||||
MOZ_COUNT_CTOR(nsCSSValuePair);
|
||||
@ -1128,7 +1128,7 @@ struct nsCSSValueTriplet {
|
||||
{
|
||||
MOZ_COUNT_CTOR(nsCSSValueTriplet);
|
||||
}
|
||||
nsCSSValueTriplet(nsCSSUnit aUnit)
|
||||
explicit nsCSSValueTriplet(nsCSSUnit aUnit)
|
||||
: mXValue(aUnit), mYValue(aUnit), mZValue(aUnit)
|
||||
{
|
||||
MOZ_COUNT_CTOR(nsCSSValueTriplet);
|
||||
|
@ -82,7 +82,7 @@ public:
|
||||
Calc& operator=(const Calc&) MOZ_DELETE;
|
||||
};
|
||||
|
||||
nsStyleCoord(nsStyleUnit aUnit = eStyleUnit_Null);
|
||||
explicit nsStyleCoord(nsStyleUnit aUnit = eStyleUnit_Null);
|
||||
enum CoordConstructorType { CoordConstructor };
|
||||
inline nsStyleCoord(nscoord aValue, CoordConstructorType);
|
||||
nsStyleCoord(int32_t aValue, nsStyleUnit aUnit);
|
||||
|
@ -65,7 +65,7 @@ class imgIContainer;
|
||||
struct nsStyleFont {
|
||||
nsStyleFont(const nsFont& aFont, nsPresContext *aPresContext);
|
||||
nsStyleFont(const nsStyleFont& aStyleFont);
|
||||
nsStyleFont(nsPresContext *aPresContext);
|
||||
explicit nsStyleFont(nsPresContext *aPresContext);
|
||||
private:
|
||||
void Init(nsPresContext *aPresContext);
|
||||
public:
|
||||
@ -309,7 +309,7 @@ private:
|
||||
};
|
||||
|
||||
struct nsStyleColor {
|
||||
nsStyleColor(nsPresContext* aPresContext);
|
||||
explicit nsStyleColor(nsPresContext* aPresContext);
|
||||
nsStyleColor(const nsStyleColor& aOther);
|
||||
~nsStyleColor(void) {
|
||||
MOZ_COUNT_DTOR(nsStyleColor);
|
||||
@ -657,7 +657,7 @@ struct nsBorderColors {
|
||||
nscolor mColor;
|
||||
|
||||
nsBorderColors() : mNext(nullptr), mColor(NS_RGB(0,0,0)) {}
|
||||
nsBorderColors(const nscolor& aColor) : mNext(nullptr), mColor(aColor) {}
|
||||
explicit nsBorderColors(const nscolor& aColor) : mNext(nullptr), mColor(aColor) {}
|
||||
~nsBorderColors();
|
||||
|
||||
nsBorderColors* Clone() const { return Clone(true); }
|
||||
@ -724,7 +724,7 @@ class nsCSSShadowArray MOZ_FINAL {
|
||||
(aArrayLen - 1) * sizeof(nsCSSShadowItem));
|
||||
}
|
||||
|
||||
nsCSSShadowArray(uint32_t aArrayLen) :
|
||||
explicit nsCSSShadowArray(uint32_t aArrayLen) :
|
||||
mLength(aArrayLen)
|
||||
{
|
||||
MOZ_COUNT_CTOR(nsCSSShadowArray);
|
||||
@ -803,7 +803,7 @@ static bool IsVisibleBorderStyle(uint8_t aStyle)
|
||||
}
|
||||
|
||||
struct nsStyleBorder {
|
||||
nsStyleBorder(nsPresContext* aContext);
|
||||
explicit nsStyleBorder(nsPresContext* aContext);
|
||||
nsStyleBorder(const nsStyleBorder& aBorder);
|
||||
~nsStyleBorder();
|
||||
|
||||
@ -1029,7 +1029,7 @@ private:
|
||||
|
||||
|
||||
struct nsStyleOutline {
|
||||
nsStyleOutline(nsPresContext* aPresContext);
|
||||
explicit nsStyleOutline(nsPresContext* aPresContext);
|
||||
nsStyleOutline(const nsStyleOutline& aOutline);
|
||||
~nsStyleOutline(void) {
|
||||
MOZ_COUNT_DTOR(nsStyleOutline);
|
||||
@ -1126,7 +1126,7 @@ protected:
|
||||
|
||||
|
||||
struct nsStyleList {
|
||||
nsStyleList(nsPresContext* aPresContext);
|
||||
explicit nsStyleList(nsPresContext* aPresContext);
|
||||
nsStyleList(const nsStyleList& aStyleList);
|
||||
~nsStyleList(void);
|
||||
|
||||
@ -1724,7 +1724,7 @@ protected:
|
||||
};
|
||||
|
||||
struct nsStyleVisibility {
|
||||
nsStyleVisibility(nsPresContext* aPresContext);
|
||||
explicit nsStyleVisibility(nsPresContext* aPresContext);
|
||||
nsStyleVisibility(const nsStyleVisibility& aVisibility);
|
||||
~nsStyleVisibility() {
|
||||
MOZ_COUNT_DTOR(nsStyleVisibility);
|
||||
@ -2196,7 +2196,7 @@ struct nsStyleTable {
|
||||
};
|
||||
|
||||
struct nsStyleTableBorder {
|
||||
nsStyleTableBorder(nsPresContext* aContext);
|
||||
explicit nsStyleTableBorder(nsPresContext* aContext);
|
||||
nsStyleTableBorder(const nsStyleTableBorder& aOther);
|
||||
~nsStyleTableBorder(void);
|
||||
|
||||
@ -2619,7 +2619,7 @@ struct nsStyleXUL {
|
||||
};
|
||||
|
||||
struct nsStyleColumn {
|
||||
nsStyleColumn(nsPresContext* aPresContext);
|
||||
explicit nsStyleColumn(nsPresContext* aPresContext);
|
||||
nsStyleColumn(const nsStyleColumn& aSource);
|
||||
~nsStyleColumn();
|
||||
|
||||
|
@ -381,8 +381,8 @@ public:
|
||||
nsIWidget* GetNearestWidget(nsPoint* aOffset, const int32_t aAPD) const;
|
||||
|
||||
private:
|
||||
nsView(nsViewManager* aViewManager = nullptr,
|
||||
nsViewVisibility aVisibility = nsViewVisibility_kShow);
|
||||
explicit nsView(nsViewManager* aViewManager = nullptr,
|
||||
nsViewVisibility aVisibility = nsViewVisibility_kShow);
|
||||
|
||||
bool ForcedRepaint() { return mForcedRepaint; }
|
||||
|
||||
|
@ -250,7 +250,7 @@ public:
|
||||
*/
|
||||
class MOZ_STACK_CLASS AutoDisableRefresh {
|
||||
public:
|
||||
AutoDisableRefresh(nsViewManager* aVM) {
|
||||
explicit AutoDisableRefresh(nsViewManager* aVM) {
|
||||
if (aVM) {
|
||||
mRootVM = aVM->IncrementDisableRefreshCount();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user