mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 02:14:43 +00:00
Bug 1060985 - Fix more bad implicit constructors in layout; r=roc
This commit is contained in:
parent
7dc5883ffa
commit
60360fc645
@ -27,7 +27,7 @@ namespace mozilla {
|
||||
*/
|
||||
class LayerActivity {
|
||||
public:
|
||||
LayerActivity(nsIFrame* aFrame)
|
||||
explicit LayerActivity(nsIFrame* aFrame)
|
||||
: mFrame(aFrame)
|
||||
, mContent(nullptr)
|
||||
, mOpacityRestyleCount(0)
|
||||
|
@ -184,7 +184,7 @@ FrameLayerBuilder::DisplayItemData::GetFrameListChanges()
|
||||
*/
|
||||
class LayerManagerData : public LayerUserData {
|
||||
public:
|
||||
LayerManagerData(LayerManager *aManager)
|
||||
explicit LayerManagerData(LayerManager *aManager)
|
||||
: mLayerManager(aManager)
|
||||
#ifdef DEBUG_DISPLAY_ITEM_DATA
|
||||
, mParent(nullptr)
|
||||
|
@ -186,7 +186,7 @@ protected:
|
||||
typedef const MaskLayerImageKey& KeyType;
|
||||
typedef const MaskLayerImageKey* KeyTypePointer;
|
||||
|
||||
MaskLayerImageEntry(KeyTypePointer aKey)
|
||||
explicit MaskLayerImageEntry(KeyTypePointer aKey)
|
||||
: mKey(aKey)
|
||||
{
|
||||
MOZ_COUNT_CTOR(MaskLayerImageEntry);
|
||||
|
@ -37,7 +37,7 @@ public:
|
||||
|
||||
typedef mozilla::dom::Element Element;
|
||||
|
||||
RestyleManager(nsPresContext* aPresContext);
|
||||
explicit RestyleManager(nsPresContext* aPresContext);
|
||||
|
||||
private:
|
||||
// Private destructor, to discourage deletion outside of Release():
|
||||
|
@ -233,7 +233,7 @@ public:
|
||||
|
||||
friend class ElementRestyler; // for AddPendingRestyleToTable
|
||||
|
||||
RestyleTracker(Element::FlagsType aRestyleBits) :
|
||||
explicit RestyleTracker(Element::FlagsType aRestyleBits) :
|
||||
mRestyleBits(aRestyleBits),
|
||||
mHaveLaterSiblingRestyles(false)
|
||||
{
|
||||
|
@ -34,7 +34,7 @@ namespace mozilla { class WritingMode; }
|
||||
*/
|
||||
struct nsFrameContinuationState : public nsVoidPtrHashKey
|
||||
{
|
||||
nsFrameContinuationState(const void *aFrame) : nsVoidPtrHashKey(aFrame) {}
|
||||
explicit nsFrameContinuationState(const void *aFrame) : nsVoidPtrHashKey(aFrame) {}
|
||||
|
||||
/**
|
||||
* The first visual frame in the continuation chain containing this frame, or
|
||||
|
@ -672,7 +672,7 @@ struct nsAbsoluteItems : nsFrameItems {
|
||||
// containing block for absolutely positioned elements
|
||||
nsContainerFrame* containingBlock;
|
||||
|
||||
nsAbsoluteItems(nsContainerFrame* aContainingBlock);
|
||||
explicit nsAbsoluteItems(nsContainerFrame* aContainingBlock);
|
||||
#ifdef DEBUG
|
||||
// XXXbz Does this need a debug-only assignment operator that nulls out the
|
||||
// childList in the nsAbsoluteItems we're copying? Introducing a difference
|
||||
|
@ -763,7 +763,7 @@ private:
|
||||
|
||||
class Iterator {
|
||||
public:
|
||||
Iterator(FrameConstructionItemList& list) :
|
||||
explicit Iterator(FrameConstructionItemList& list) :
|
||||
mCurrent(PR_NEXT_LINK(&list.mItems)),
|
||||
mEnd(&list.mItems),
|
||||
mList(list)
|
||||
|
@ -312,7 +312,7 @@ nsCounterManager::SetAllCounterStylesDirty()
|
||||
}
|
||||
|
||||
struct DestroyNodesData {
|
||||
DestroyNodesData(nsIFrame *aFrame)
|
||||
explicit DestroyNodesData(nsIFrame *aFrame)
|
||||
: mFrame(aFrame)
|
||||
, mDestroyedAny(false)
|
||||
{
|
||||
|
@ -1441,7 +1441,7 @@ IsFrameReceivingPointerEvents(nsIFrame* aFrame)
|
||||
// the results of hit testing.
|
||||
struct FramesWithDepth
|
||||
{
|
||||
FramesWithDepth(float aDepth) :
|
||||
explicit FramesWithDepth(float aDepth) :
|
||||
mDepth(aDepth)
|
||||
{}
|
||||
|
||||
|
@ -84,7 +84,7 @@ static const PLDHashTableOps PlaceholderMapOps = {
|
||||
|
||||
class nsFrameManagerBase::UndisplayedMap {
|
||||
public:
|
||||
UndisplayedMap(uint32_t aNumBuckets = 16);
|
||||
explicit UndisplayedMap(uint32_t aNumBuckets = 16);
|
||||
~UndisplayedMap(void);
|
||||
|
||||
UndisplayedNode* GetFirstNode(nsIContent* aParentContent);
|
||||
|
@ -32,7 +32,7 @@ struct nsGenConNode : public PRCList {
|
||||
// counter nodes for increments and resets (rather than uses)
|
||||
nsRefPtr<nsTextNode> mText;
|
||||
|
||||
nsGenConNode(int32_t aContentIndex)
|
||||
explicit nsGenConNode(int32_t aContentIndex)
|
||||
: mPseudoFrame(nullptr)
|
||||
, mContentIndex(aContentIndex)
|
||||
{
|
||||
|
@ -284,7 +284,7 @@ static const char kGrandTotalsStr[] = "Grand Totals";
|
||||
// Counting Class
|
||||
class ReflowCounter {
|
||||
public:
|
||||
ReflowCounter(ReflowCountMgr * aMgr = nullptr);
|
||||
explicit ReflowCounter(ReflowCountMgr * aMgr = nullptr);
|
||||
~ReflowCounter();
|
||||
|
||||
void ClearTotals();
|
||||
@ -315,7 +315,7 @@ protected:
|
||||
// Counting Class
|
||||
class IndiReflowCounter {
|
||||
public:
|
||||
IndiReflowCounter(ReflowCountMgr * aMgr = nullptr)
|
||||
explicit IndiReflowCounter(ReflowCountMgr * aMgr = nullptr)
|
||||
: mFrame(nullptr),
|
||||
mCount(0),
|
||||
mMgr(aMgr),
|
||||
@ -440,7 +440,7 @@ struct nsCallbackEventRequest
|
||||
class nsAutoCauseReflowNotifier
|
||||
{
|
||||
public:
|
||||
nsAutoCauseReflowNotifier(PresShell* aShell)
|
||||
explicit nsAutoCauseReflowNotifier(PresShell* aShell)
|
||||
: mShell(aShell)
|
||||
{
|
||||
mShell->WillCauseReflow();
|
||||
@ -463,7 +463,7 @@ public:
|
||||
class MOZ_STACK_CLASS nsPresShellEventCB : public EventDispatchingCallback
|
||||
{
|
||||
public:
|
||||
nsPresShellEventCB(PresShell* aPresShell) : mPresShell(aPresShell) {}
|
||||
explicit nsPresShellEventCB(PresShell* aPresShell) : mPresShell(aPresShell) {}
|
||||
|
||||
virtual void HandleEvent(EventChainPostVisitor& aVisitor) MOZ_OVERRIDE
|
||||
{
|
||||
@ -513,7 +513,7 @@ public:
|
||||
class nsBeforeFirstPaintDispatcher : public nsRunnable
|
||||
{
|
||||
public:
|
||||
nsBeforeFirstPaintDispatcher(nsIDocument* aDocument)
|
||||
explicit nsBeforeFirstPaintDispatcher(nsIDocument* aDocument)
|
||||
: mDocument(aDocument) {}
|
||||
|
||||
// Fires the "before-first-paint" event so that interested parties (right now, the
|
||||
@ -3747,7 +3747,7 @@ PresShell::GetRectVisibility(nsIFrame* aFrame,
|
||||
class PaintTimerCallBack MOZ_FINAL : public nsITimerCallback
|
||||
{
|
||||
public:
|
||||
PaintTimerCallBack(PresShell* aShell) : mShell(aShell) {}
|
||||
explicit PaintTimerCallBack(PresShell* aShell) : mShell(aShell) {}
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
|
@ -440,7 +440,7 @@ protected:
|
||||
friend struct RenderingState;
|
||||
|
||||
struct RenderingState {
|
||||
RenderingState(PresShell* aPresShell)
|
||||
explicit RenderingState(PresShell* aPresShell)
|
||||
: mXResolution(aPresShell->mXResolution)
|
||||
, mYResolution(aPresShell->mYResolution)
|
||||
, mRenderFlags(aPresShell->mRenderFlags)
|
||||
@ -451,7 +451,7 @@ protected:
|
||||
};
|
||||
|
||||
struct AutoSaveRestoreRenderingState {
|
||||
AutoSaveRestoreRenderingState(PresShell* aPresShell)
|
||||
explicit AutoSaveRestoreRenderingState(PresShell* aPresShell)
|
||||
: mPresShell(aPresShell)
|
||||
, mOldState(aPresShell)
|
||||
{}
|
||||
@ -583,13 +583,13 @@ protected:
|
||||
class DelayedMouseEvent : public DelayedInputEvent
|
||||
{
|
||||
public:
|
||||
DelayedMouseEvent(mozilla::WidgetMouseEvent* aEvent);
|
||||
explicit DelayedMouseEvent(mozilla::WidgetMouseEvent* aEvent);
|
||||
};
|
||||
|
||||
class DelayedKeyEvent : public DelayedInputEvent
|
||||
{
|
||||
public:
|
||||
DelayedKeyEvent(mozilla::WidgetKeyboardEvent* aEvent);
|
||||
explicit DelayedKeyEvent(mozilla::WidgetKeyboardEvent* aEvent);
|
||||
};
|
||||
|
||||
// Check if aEvent is a mouse event and record the mouse location for later
|
||||
|
@ -81,7 +81,7 @@ public:
|
||||
/*
|
||||
* aRate -- the delay, in milliseconds, requested between timer firings
|
||||
*/
|
||||
RefreshDriverTimer(double aRate)
|
||||
explicit RefreshDriverTimer(double aRate)
|
||||
{
|
||||
SetRate(aRate);
|
||||
}
|
||||
@ -200,7 +200,7 @@ class SimpleTimerBasedRefreshDriverTimer :
|
||||
public RefreshDriverTimer
|
||||
{
|
||||
public:
|
||||
SimpleTimerBasedRefreshDriverTimer(double aRate)
|
||||
explicit SimpleTimerBasedRefreshDriverTimer(double aRate)
|
||||
: RefreshDriverTimer(aRate)
|
||||
{
|
||||
mTimer = do_CreateInstance(NS_TIMER_CONTRACTID);
|
||||
@ -246,7 +246,7 @@ class PreciseRefreshDriverTimer :
|
||||
public SimpleTimerBasedRefreshDriverTimer
|
||||
{
|
||||
public:
|
||||
PreciseRefreshDriverTimer(double aRate)
|
||||
explicit PreciseRefreshDriverTimer(double aRate)
|
||||
: SimpleTimerBasedRefreshDriverTimer(aRate)
|
||||
{
|
||||
}
|
||||
@ -435,7 +435,7 @@ class InactiveRefreshDriverTimer MOZ_FINAL :
|
||||
public RefreshDriverTimer
|
||||
{
|
||||
public:
|
||||
InactiveRefreshDriverTimer(double aRate)
|
||||
explicit InactiveRefreshDriverTimer(double aRate)
|
||||
: RefreshDriverTimer(aRate),
|
||||
mNextTickDuration(aRate),
|
||||
mDisableAfterMilliseconds(-1.0),
|
||||
@ -1037,7 +1037,7 @@ nsRefreshDriver::DoTick()
|
||||
}
|
||||
|
||||
struct DocumentFrameCallbacks {
|
||||
DocumentFrameCallbacks(nsIDocument* aDocument) :
|
||||
explicit DocumentFrameCallbacks(nsIDocument* aDocument) :
|
||||
mDocument(aDocument)
|
||||
{}
|
||||
|
||||
|
@ -53,7 +53,7 @@ public:
|
||||
nsresult UpdateColor();
|
||||
|
||||
private:
|
||||
nsColorControlFrame(nsStyleContext* aContext);
|
||||
explicit nsColorControlFrame(nsStyleContext* aContext);
|
||||
|
||||
nsCOMPtr<Element> mColorContent;
|
||||
};
|
||||
|
@ -86,7 +86,7 @@ public:
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsComboButtonListener(nsComboboxControlFrame* aCombobox)
|
||||
explicit nsComboButtonListener(nsComboboxControlFrame* aCombobox)
|
||||
{
|
||||
mComboBox = aCombobox;
|
||||
}
|
||||
@ -364,7 +364,7 @@ class nsResizeDropdownAtFinalPosition MOZ_FINAL
|
||||
: public nsIReflowCallback, public nsRunnable
|
||||
{
|
||||
public:
|
||||
nsResizeDropdownAtFinalPosition(nsComboboxControlFrame* aFrame)
|
||||
explicit nsResizeDropdownAtFinalPosition(nsComboboxControlFrame* aFrame)
|
||||
: mFrame(aFrame)
|
||||
{
|
||||
MOZ_COUNT_CTOR(nsResizeDropdownAtFinalPosition);
|
||||
@ -494,7 +494,7 @@ nsComboboxControlFrame::GetCSSTransformTranslation()
|
||||
class nsAsyncRollup : public nsRunnable
|
||||
{
|
||||
public:
|
||||
nsAsyncRollup(nsComboboxControlFrame* aFrame) : mFrame(aFrame) {}
|
||||
explicit nsAsyncRollup(nsComboboxControlFrame* aFrame) : mFrame(aFrame) {}
|
||||
NS_IMETHODIMP Run()
|
||||
{
|
||||
if (mFrame.IsAlive()) {
|
||||
@ -509,7 +509,7 @@ public:
|
||||
class nsAsyncResize : public nsRunnable
|
||||
{
|
||||
public:
|
||||
nsAsyncResize(nsComboboxControlFrame* aFrame) : mFrame(aFrame) {}
|
||||
explicit nsAsyncResize(nsComboboxControlFrame* aFrame) : mFrame(aFrame) {}
|
||||
NS_IMETHODIMP Run()
|
||||
{
|
||||
if (mFrame.IsAlive()) {
|
||||
|
@ -51,7 +51,7 @@ public:
|
||||
nsFrameState aFlags);
|
||||
friend class nsComboboxDisplayFrame;
|
||||
|
||||
nsComboboxControlFrame(nsStyleContext* aContext);
|
||||
explicit nsComboboxControlFrame(nsStyleContext* aContext);
|
||||
~nsComboboxControlFrame();
|
||||
|
||||
NS_DECL_QUERYFRAME
|
||||
@ -223,7 +223,7 @@ protected:
|
||||
class RedisplayTextEvent : public nsRunnable {
|
||||
public:
|
||||
NS_DECL_NSIRUNNABLE
|
||||
RedisplayTextEvent(nsComboboxControlFrame *c) : mControlFrame(c) {}
|
||||
explicit RedisplayTextEvent(nsComboboxControlFrame *c) : mControlFrame(c) {}
|
||||
void Revoke() { mControlFrame = nullptr; }
|
||||
private:
|
||||
nsComboboxControlFrame *mControlFrame;
|
||||
|
@ -14,7 +14,7 @@ class nsFieldSetFrame MOZ_FINAL : public nsContainerFrame
|
||||
public:
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
|
||||
nsFieldSetFrame(nsStyleContext* aContext);
|
||||
explicit nsFieldSetFrame(nsStyleContext* aContext);
|
||||
|
||||
nscoord
|
||||
GetIntrinsicISize(nsRenderingContext* aRenderingContext,
|
||||
|
@ -21,7 +21,7 @@ class nsFileControlFrame : public nsBlockFrame,
|
||||
public nsIAnonymousContentCreator
|
||||
{
|
||||
public:
|
||||
nsFileControlFrame(nsStyleContext* aContext);
|
||||
explicit nsFileControlFrame(nsStyleContext* aContext);
|
||||
|
||||
virtual void Init(nsIContent* aContent,
|
||||
nsContainerFrame* aParent,
|
||||
@ -74,7 +74,7 @@ protected:
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
MouseListener(nsFileControlFrame* aFrame)
|
||||
explicit MouseListener(nsFileControlFrame* aFrame)
|
||||
: mFrame(aFrame)
|
||||
{}
|
||||
|
||||
@ -93,7 +93,7 @@ protected:
|
||||
class SyncDisabledStateEvent : public nsRunnable
|
||||
{
|
||||
public:
|
||||
SyncDisabledStateEvent(nsFileControlFrame* aFrame)
|
||||
explicit SyncDisabledStateEvent(nsFileControlFrame* aFrame)
|
||||
: mFrame(aFrame)
|
||||
{}
|
||||
|
||||
@ -111,7 +111,7 @@ protected:
|
||||
|
||||
class DnDListener: public MouseListener {
|
||||
public:
|
||||
DnDListener(nsFileControlFrame* aFrame)
|
||||
explicit DnDListener(nsFileControlFrame* aFrame)
|
||||
: MouseListener(aFrame)
|
||||
{}
|
||||
|
||||
|
@ -24,7 +24,7 @@ public:
|
||||
* @param aContent the content representing this frame
|
||||
* @param aParentFrame the parent frame
|
||||
*/
|
||||
nsFormControlFrame(nsStyleContext*);
|
||||
explicit nsFormControlFrame(nsStyleContext*);
|
||||
|
||||
virtual nsIAtom* GetType() const MOZ_OVERRIDE;
|
||||
|
||||
|
@ -22,7 +22,7 @@ class nsGfxButtonControlFrame : public nsHTMLButtonControlFrame,
|
||||
public:
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
|
||||
nsGfxButtonControlFrame(nsStyleContext* aContext);
|
||||
explicit nsGfxButtonControlFrame(nsStyleContext* aContext);
|
||||
|
||||
virtual void DestroyFrom(nsIFrame* aDestructRoot) MOZ_OVERRIDE;
|
||||
|
||||
|
@ -13,7 +13,7 @@ class nsGfxCheckboxControlFrame : public nsFormControlFrame
|
||||
public:
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
|
||||
nsGfxCheckboxControlFrame(nsStyleContext* aContext);
|
||||
explicit nsGfxCheckboxControlFrame(nsStyleContext* aContext);
|
||||
virtual ~nsGfxCheckboxControlFrame();
|
||||
|
||||
#ifdef DEBUG_FRAME_DUMP
|
||||
|
@ -15,7 +15,7 @@
|
||||
class nsGfxRadioControlFrame : public nsFormControlFrame
|
||||
{
|
||||
public:
|
||||
nsGfxRadioControlFrame(nsStyleContext* aContext);
|
||||
explicit nsGfxRadioControlFrame(nsStyleContext* aContext);
|
||||
~nsGfxRadioControlFrame();
|
||||
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
|
@ -18,7 +18,7 @@ class nsHTMLButtonControlFrame : public nsContainerFrame,
|
||||
public nsIFormControlFrame
|
||||
{
|
||||
public:
|
||||
nsHTMLButtonControlFrame(nsStyleContext* aContext);
|
||||
explicit nsHTMLButtonControlFrame(nsStyleContext* aContext);
|
||||
~nsHTMLButtonControlFrame();
|
||||
|
||||
virtual void DestroyFrom(nsIFrame* aDestructRoot) MOZ_OVERRIDE;
|
||||
|
@ -20,7 +20,7 @@ class nsImageControlFrame : public nsImageControlFrameSuper,
|
||||
public nsIFormControlFrame
|
||||
{
|
||||
public:
|
||||
nsImageControlFrame(nsStyleContext* aContext);
|
||||
explicit nsImageControlFrame(nsStyleContext* aContext);
|
||||
~nsImageControlFrame();
|
||||
|
||||
virtual void DestroyFrom(nsIFrame* aDestructRoot) MOZ_OVERRIDE;
|
||||
|
@ -15,7 +15,7 @@ public:
|
||||
NS_DECL_QUERYFRAME
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
|
||||
nsLegendFrame(nsStyleContext* aContext) : nsBlockFrame(aContext) {}
|
||||
explicit nsLegendFrame(nsStyleContext* aContext) : nsBlockFrame(aContext) {}
|
||||
|
||||
virtual void Reflow(nsPresContext* aPresContext,
|
||||
nsHTMLReflowMetrics& aDesiredSize,
|
||||
|
@ -62,7 +62,7 @@ DOMTimeStamp nsListControlFrame::gLastKeyTime = 0;
|
||||
class nsListEventListener MOZ_FINAL : public nsIDOMEventListener
|
||||
{
|
||||
public:
|
||||
nsListEventListener(nsListControlFrame *aFrame)
|
||||
explicit nsListEventListener(nsListControlFrame *aFrame)
|
||||
: mFrame(aFrame) { }
|
||||
|
||||
void SetFrame(nsListControlFrame *aFrame) { mFrame = aFrame; }
|
||||
|
@ -22,7 +22,7 @@ public:
|
||||
NS_DECL_QUERYFRAME
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
|
||||
nsMeterFrame(nsStyleContext* aContext);
|
||||
explicit nsMeterFrame(nsStyleContext* aContext);
|
||||
virtual ~nsMeterFrame();
|
||||
|
||||
virtual void DestroyFrom(nsIFrame* aDestructRoot) MOZ_OVERRIDE;
|
||||
|
@ -38,7 +38,7 @@ class nsNumberControlFrame MOZ_FINAL : public nsContainerFrame
|
||||
typedef mozilla::WidgetEvent WidgetEvent;
|
||||
typedef mozilla::WidgetGUIEvent WidgetGUIEvent;
|
||||
|
||||
nsNumberControlFrame(nsStyleContext* aContext);
|
||||
explicit nsNumberControlFrame(nsStyleContext* aContext);
|
||||
|
||||
public:
|
||||
NS_DECL_QUERYFRAME_TARGET(nsNumberControlFrame)
|
||||
@ -204,7 +204,7 @@ private:
|
||||
class SyncDisabledStateEvent : public nsRunnable
|
||||
{
|
||||
public:
|
||||
SyncDisabledStateEvent(nsNumberControlFrame* aFrame)
|
||||
explicit SyncDisabledStateEvent(nsNumberControlFrame* aFrame)
|
||||
: mFrame(aFrame)
|
||||
{}
|
||||
|
||||
|
@ -23,7 +23,7 @@ public:
|
||||
NS_DECL_QUERYFRAME
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
|
||||
nsProgressFrame(nsStyleContext* aContext);
|
||||
explicit nsProgressFrame(nsStyleContext* aContext);
|
||||
virtual ~nsProgressFrame();
|
||||
|
||||
virtual void DestroyFrom(nsIFrame* aDestructRoot) MOZ_OVERRIDE;
|
||||
|
@ -24,7 +24,7 @@ class nsRangeFrame : public nsContainerFrame,
|
||||
|
||||
friend class nsDisplayRangeFocusRing;
|
||||
|
||||
nsRangeFrame(nsStyleContext* aContext);
|
||||
explicit nsRangeFrame(nsStyleContext* aContext);
|
||||
virtual ~nsRangeFrame();
|
||||
|
||||
typedef mozilla::dom::Element Element;
|
||||
|
@ -33,7 +33,7 @@ public:
|
||||
nscoord HeightOfARow() const { return mHeightOfARow; }
|
||||
|
||||
protected:
|
||||
nsSelectsAreaFrame(nsStyleContext* aContext) :
|
||||
explicit nsSelectsAreaFrame(nsStyleContext* aContext) :
|
||||
nsBlockFrame(aContext),
|
||||
mHeightOfARow(0)
|
||||
{}
|
||||
|
@ -204,7 +204,7 @@ protected:
|
||||
|
||||
class EditorInitializer : public nsRunnable {
|
||||
public:
|
||||
EditorInitializer(nsTextControlFrame* aFrame) :
|
||||
explicit EditorInitializer(nsTextControlFrame* aFrame) :
|
||||
mFrame(aFrame) {}
|
||||
|
||||
NS_IMETHOD Run() MOZ_OVERRIDE;
|
||||
@ -223,7 +223,7 @@ protected:
|
||||
|
||||
class ScrollOnFocusEvent : public nsRunnable {
|
||||
public:
|
||||
ScrollOnFocusEvent(nsTextControlFrame* aFrame) :
|
||||
explicit ScrollOnFocusEvent(nsTextControlFrame* aFrame) :
|
||||
mFrame(aFrame) {}
|
||||
|
||||
NS_DECL_NSIRUNNABLE
|
||||
|
@ -58,7 +58,7 @@ namespace layout {
|
||||
class ScrollbarActivity MOZ_FINAL : public nsIDOMEventListener,
|
||||
public nsARefreshObserver {
|
||||
public:
|
||||
ScrollbarActivity(nsIScrollbarMediator* aScrollableFrame)
|
||||
explicit ScrollbarActivity(nsIScrollbarMediator* aScrollableFrame)
|
||||
: mScrollableFrame(aScrollableFrame)
|
||||
, mNestedActivityCounter(0)
|
||||
, mIsActive(false)
|
||||
|
@ -87,7 +87,7 @@ public:
|
||||
virtual void ScrollPositionDidChange(nscoord aX, nscoord aY) MOZ_OVERRIDE;
|
||||
|
||||
private:
|
||||
StickyScrollContainer(nsIScrollableFrame* aScrollFrame);
|
||||
explicit StickyScrollContainer(nsIScrollableFrame* aScrollFrame);
|
||||
~StickyScrollContainer();
|
||||
|
||||
/**
|
||||
|
@ -30,7 +30,7 @@ namespace css {
|
||||
class LazyReferenceRenderingContextGetterFromFrame MOZ_FINAL :
|
||||
public gfxFontGroup::LazyReferenceContextGetter {
|
||||
public:
|
||||
LazyReferenceRenderingContextGetterFromFrame(nsIFrame* aFrame)
|
||||
explicit LazyReferenceRenderingContextGetterFromFrame(nsIFrame* aFrame)
|
||||
: mFrame(aFrame) {}
|
||||
virtual already_AddRefed<gfxContext> GetRefContext() MOZ_OVERRIDE
|
||||
{
|
||||
|
@ -36,7 +36,7 @@ class nsAbsoluteContainingBlock
|
||||
public:
|
||||
typedef nsIFrame::ChildListID ChildListID;
|
||||
|
||||
nsAbsoluteContainingBlock(ChildListID aChildListID)
|
||||
explicit nsAbsoluteContainingBlock(ChildListID aChildListID)
|
||||
#ifdef DEBUG
|
||||
: mChildListID(aChildListID)
|
||||
#endif
|
||||
|
@ -59,7 +59,7 @@ public:
|
||||
#endif
|
||||
|
||||
protected:
|
||||
BRFrame(nsStyleContext* aContext) : nsFrame(aContext) {}
|
||||
explicit BRFrame(nsStyleContext* aContext) : nsFrame(aContext) {}
|
||||
virtual ~BRFrame();
|
||||
|
||||
nscoord mAscent;
|
||||
|
@ -352,7 +352,7 @@ public:
|
||||
};
|
||||
|
||||
protected:
|
||||
nsBlockFrame(nsStyleContext* aContext)
|
||||
explicit nsBlockFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext)
|
||||
, mMinWidth(NS_INTRINSIC_WIDTH_UNKNOWN)
|
||||
, mPrefWidth(NS_INTRINSIC_WIDTH_UNKNOWN)
|
||||
@ -805,7 +805,7 @@ protected:
|
||||
struct nsAutoOOFFrameList {
|
||||
nsFrameList mList;
|
||||
|
||||
nsAutoOOFFrameList(nsBlockFrame* aBlock)
|
||||
explicit nsAutoOOFFrameList(nsBlockFrame* aBlock)
|
||||
: mPropValue(aBlock->GetOverflowOutOfFlows())
|
||||
, mBlock(aBlock) {
|
||||
if (mPropValue) {
|
||||
@ -898,7 +898,7 @@ protected:
|
||||
#ifdef DEBUG
|
||||
class AutoNoisyIndenter {
|
||||
public:
|
||||
AutoNoisyIndenter(bool aDoIndent) : mIndented(aDoIndent) {
|
||||
explicit AutoNoisyIndenter(bool aDoIndent) : mIndented(aDoIndent) {
|
||||
if (mIndented) {
|
||||
nsBlockFrame::gNoiseIndent++;
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ public:
|
||||
NS_DECL_QUERYFRAME
|
||||
#endif
|
||||
|
||||
nsBulletFrame(nsStyleContext* aContext)
|
||||
explicit nsBulletFrame(nsStyleContext* aContext)
|
||||
: nsFrame(aContext)
|
||||
, mPadding(GetWritingMode())
|
||||
, mIntrinsicSize(GetWritingMode())
|
||||
|
@ -30,7 +30,7 @@ class nsCanvasFrame MOZ_FINAL : public nsContainerFrame,
|
||||
public nsIAnonymousContentCreator
|
||||
{
|
||||
public:
|
||||
nsCanvasFrame(nsStyleContext* aContext)
|
||||
explicit nsCanvasFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext),
|
||||
mDoPaintFocus(false),
|
||||
mAddedScrollPositionListener(false) {}
|
||||
|
@ -16,7 +16,7 @@ class nsColumnSetFrame MOZ_FINAL : public nsContainerFrame {
|
||||
public:
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
|
||||
nsColumnSetFrame(nsStyleContext* aContext);
|
||||
explicit nsColumnSetFrame(nsStyleContext* aContext);
|
||||
|
||||
virtual void Reflow(nsPresContext* aPresContext,
|
||||
nsHTMLReflowMetrics& aDesiredSize,
|
||||
|
@ -17,7 +17,7 @@ public:
|
||||
NS_DECL_QUERYFRAME
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
|
||||
nsFirstLetterFrame(nsStyleContext* aContext) : nsContainerFrame(aContext) {}
|
||||
explicit nsFirstLetterFrame(nsStyleContext* aContext) : nsContainerFrame(aContext) {}
|
||||
|
||||
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
const nsRect& aDirtyRect,
|
||||
|
@ -172,7 +172,7 @@ PhysicalPosFromLogicalPos(nscoord aLogicalPosn,
|
||||
// Encapsulates our flex container's main & cross axes.
|
||||
class MOZ_STACK_CLASS nsFlexContainerFrame::FlexboxAxisTracker {
|
||||
public:
|
||||
FlexboxAxisTracker(nsFlexContainerFrame* aFlexContainerFrame);
|
||||
explicit FlexboxAxisTracker(nsFlexContainerFrame* aFlexContainerFrame);
|
||||
|
||||
// Accessors:
|
||||
AxisOrientationType GetMainAxis() const { return mMainAxis; }
|
||||
@ -1659,7 +1659,7 @@ public:
|
||||
|
||||
protected:
|
||||
// Protected constructor, to be sure we're only instantiated via a subclass.
|
||||
PositionTracker(AxisOrientationType aAxis)
|
||||
explicit PositionTracker(AxisOrientationType aAxis)
|
||||
: mPosition(0),
|
||||
mAxis(aAxis)
|
||||
{}
|
||||
@ -1746,7 +1746,7 @@ private:
|
||||
// single flex line.
|
||||
class MOZ_STACK_CLASS SingleLineCrossAxisPositionTracker : public PositionTracker {
|
||||
public:
|
||||
SingleLineCrossAxisPositionTracker(const FlexboxAxisTracker& aAxisTracker);
|
||||
explicit SingleLineCrossAxisPositionTracker(const FlexboxAxisTracker& aAxisTracker);
|
||||
|
||||
void ResolveAutoMarginsInCrossAxis(const FlexLine& aLine,
|
||||
FlexItem& aItem);
|
||||
@ -3443,8 +3443,8 @@ nsFlexContainerFrame::Reflow(nsPresContext* aPresContext,
|
||||
class MOZ_STACK_CLASS AutoFlexLineListClearer
|
||||
{
|
||||
public:
|
||||
AutoFlexLineListClearer(LinkedList<FlexLine>& aLines
|
||||
MOZ_GUARD_OBJECT_NOTIFIER_PARAM)
|
||||
explicit AutoFlexLineListClearer(LinkedList<FlexLine>& aLines
|
||||
MOZ_GUARD_OBJECT_NOTIFIER_PARAM)
|
||||
: mLines(aLines)
|
||||
{
|
||||
MOZ_GUARD_OBJECT_NOTIFIER_INIT;
|
||||
|
@ -61,7 +61,7 @@ public:
|
||||
|
||||
protected:
|
||||
// Protected constructor & destructor
|
||||
nsFlexContainerFrame(nsStyleContext* aContext) :
|
||||
explicit nsFlexContainerFrame(nsStyleContext* aContext) :
|
||||
nsFlexContainerFrameSuper(aContext)
|
||||
{}
|
||||
virtual ~nsFlexContainerFrame();
|
||||
|
@ -42,7 +42,7 @@ struct nsFlowAreaRect {
|
||||
|
||||
class nsFloatManager {
|
||||
public:
|
||||
nsFloatManager(nsIPresShell* aPresShell);
|
||||
explicit nsFloatManager(nsIPresShell* aPresShell);
|
||||
~nsFloatManager();
|
||||
|
||||
void* operator new(size_t aSize) CPP_THROW_NEW;
|
||||
@ -325,7 +325,7 @@ private:
|
||||
*/
|
||||
class nsAutoFloatManager {
|
||||
public:
|
||||
nsAutoFloatManager(nsHTMLReflowState& aReflowState)
|
||||
explicit nsAutoFloatManager(nsHTMLReflowState& aReflowState)
|
||||
: mReflowState(aReflowState),
|
||||
mNew(nullptr),
|
||||
mOld(nullptr) {}
|
||||
|
@ -38,7 +38,7 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
nsFontInflationData(nsIFrame* aBFCFrame);
|
||||
explicit nsFontInflationData(nsIFrame* aBFCFrame);
|
||||
|
||||
nsFontInflationData(const nsFontInflationData&) MOZ_DELETE;
|
||||
void operator=(const nsFontInflationData&) MOZ_DELETE;
|
||||
|
@ -1875,7 +1875,7 @@ class AutoSaveRestoreBlendMode
|
||||
nsDisplayListBuilder& mBuilder;
|
||||
EnumSet<gfx::CompositionOp> mSavedBlendModes;
|
||||
public:
|
||||
AutoSaveRestoreBlendMode(nsDisplayListBuilder& aBuilder)
|
||||
explicit AutoSaveRestoreBlendMode(nsDisplayListBuilder& aBuilder)
|
||||
: mBuilder(aBuilder)
|
||||
, mSavedBlendModes(aBuilder.ContainedBlendModes())
|
||||
{ }
|
||||
@ -8959,7 +8959,7 @@ static DR_State *DR_state; // the one and only DR_State
|
||||
|
||||
struct DR_RulePart
|
||||
{
|
||||
DR_RulePart(nsIAtom* aFrameType) : mFrameType(aFrameType), mNext(0) {}
|
||||
explicit DR_RulePart(nsIAtom* aFrameType) : mFrameType(aFrameType), mNext(0) {}
|
||||
void Destroy();
|
||||
|
||||
nsIAtom* mFrameType;
|
||||
|
@ -153,7 +153,7 @@ public:
|
||||
nsReflowStatus& aStatus) MOZ_OVERRIDE;
|
||||
|
||||
protected:
|
||||
nsHTMLFramesetBlankFrame(nsStyleContext* aContext) : nsLeafFrame(aContext) {}
|
||||
explicit nsHTMLFramesetBlankFrame(nsStyleContext* aContext) : nsLeafFrame(aContext) {}
|
||||
virtual ~nsHTMLFramesetBlankFrame();
|
||||
virtual nscoord GetIntrinsicISize() MOZ_OVERRIDE;
|
||||
virtual nscoord GetIntrinsicBSize() MOZ_OVERRIDE;
|
||||
|
@ -68,7 +68,7 @@ public:
|
||||
NS_DECL_QUERYFRAME
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
|
||||
nsHTMLFramesetFrame(nsStyleContext* aContext);
|
||||
explicit nsHTMLFramesetFrame(nsStyleContext* aContext);
|
||||
|
||||
virtual ~nsHTMLFramesetFrame();
|
||||
|
||||
|
@ -1486,7 +1486,7 @@ public:
|
||||
typedef mozilla::TimeStamp TimeStamp;
|
||||
typedef mozilla::TimeDuration TimeDuration;
|
||||
|
||||
AsyncScroll(nsPoint aStartPos)
|
||||
explicit AsyncScroll(nsPoint aStartPos)
|
||||
: mIsFirstIteration(true)
|
||||
, mStartPos(aStartPos)
|
||||
, mCallee(nullptr)
|
||||
|
@ -95,7 +95,7 @@ public:
|
||||
class ScrollEvent : public nsRunnable {
|
||||
public:
|
||||
NS_DECL_NSIRUNNABLE
|
||||
ScrollEvent(ScrollFrameHelper *helper) : mHelper(helper) {}
|
||||
explicit ScrollEvent(ScrollFrameHelper *helper) : mHelper(helper) {}
|
||||
void Revoke() { mHelper = nullptr; }
|
||||
private:
|
||||
ScrollFrameHelper *mHelper;
|
||||
@ -104,7 +104,7 @@ public:
|
||||
class AsyncScrollPortEvent : public nsRunnable {
|
||||
public:
|
||||
NS_DECL_NSIRUNNABLE
|
||||
AsyncScrollPortEvent(ScrollFrameHelper *helper) : mHelper(helper) {}
|
||||
explicit AsyncScrollPortEvent(ScrollFrameHelper *helper) : mHelper(helper) {}
|
||||
void Revoke() { mHelper = nullptr; }
|
||||
private:
|
||||
ScrollFrameHelper *mHelper;
|
||||
@ -113,7 +113,7 @@ public:
|
||||
class ScrolledAreaEvent : public nsRunnable {
|
||||
public:
|
||||
NS_DECL_NSIRUNNABLE
|
||||
ScrolledAreaEvent(ScrollFrameHelper *helper) : mHelper(helper) {}
|
||||
explicit ScrolledAreaEvent(ScrollFrameHelper *helper) : mHelper(helper) {}
|
||||
void Revoke() { mHelper = nullptr; }
|
||||
private:
|
||||
ScrollFrameHelper *mHelper;
|
||||
|
@ -39,7 +39,7 @@ public:
|
||||
protected:
|
||||
friend nsContainerFrame* NS_NewGridContainerFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext);
|
||||
nsGridContainerFrame(nsStyleContext* aContext) : nsContainerFrame(aContext) {}
|
||||
explicit nsGridContainerFrame(nsStyleContext* aContext) : nsContainerFrame(aContext) {}
|
||||
|
||||
#ifdef DEBUG
|
||||
void SanityCheckAnonymousGridItems() const;
|
||||
|
@ -36,7 +36,7 @@ public:
|
||||
NS_DECL_QUERYFRAME
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
|
||||
nsHTMLCanvasFrame(nsStyleContext* aContext)
|
||||
explicit nsHTMLCanvasFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext)
|
||||
, mBorderPadding(GetWritingMode()) {}
|
||||
|
||||
|
@ -31,7 +31,7 @@ public:
|
||||
NS_DECL_QUERYFRAME_TARGET(nsIAnonymousContentCreator)
|
||||
|
||||
struct ContentInfo {
|
||||
ContentInfo(nsIContent* aContent) :
|
||||
explicit ContentInfo(nsIContent* aContent) :
|
||||
mContent(aContent)
|
||||
{}
|
||||
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
#include "nscore.h"
|
||||
#include "nsCoord.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
class nsIFrame;
|
||||
struct nsRect;
|
||||
@ -105,7 +106,7 @@ class nsAutoLineIterator
|
||||
{
|
||||
public:
|
||||
nsAutoLineIterator() : mRawPtr(nullptr) { }
|
||||
nsAutoLineIterator(nsILineIterator *i) : mRawPtr(i) { }
|
||||
MOZ_IMPLICIT nsAutoLineIterator(nsILineIterator *i) : mRawPtr(i) { }
|
||||
|
||||
~nsAutoLineIterator() {
|
||||
if (mRawPtr)
|
||||
|
@ -46,7 +46,7 @@ protected:
|
||||
virtual ~nsImageListener();
|
||||
|
||||
public:
|
||||
nsImageListener(nsImageFrame *aFrame);
|
||||
explicit nsImageListener(nsImageFrame *aFrame);
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_IMGINOTIFICATIONOBSERVER
|
||||
@ -68,7 +68,7 @@ public:
|
||||
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
|
||||
nsImageFrame(nsStyleContext* aContext);
|
||||
explicit nsImageFrame(nsStyleContext* aContext);
|
||||
|
||||
NS_DECL_QUERYFRAME_TARGET(nsImageFrame)
|
||||
NS_DECL_QUERYFRAME
|
||||
|
@ -29,7 +29,7 @@ using namespace mozilla;
|
||||
|
||||
class Area {
|
||||
public:
|
||||
Area(nsIContent* aArea);
|
||||
explicit Area(nsIContent* aArea);
|
||||
virtual ~Area();
|
||||
|
||||
virtual void ParseCoords(const nsAString& aSpec);
|
||||
@ -264,7 +264,7 @@ void Area::HasFocus(bool aHasFocus)
|
||||
|
||||
class DefaultArea : public Area {
|
||||
public:
|
||||
DefaultArea(nsIContent* aArea);
|
||||
explicit DefaultArea(nsIContent* aArea);
|
||||
|
||||
virtual bool IsInside(nscoord x, nscoord y) const MOZ_OVERRIDE;
|
||||
virtual void Draw(nsIFrame* aFrame, nsRenderingContext& aRC) MOZ_OVERRIDE;
|
||||
@ -309,7 +309,7 @@ void DefaultArea::GetRect(nsIFrame* aFrame, nsRect& aRect)
|
||||
|
||||
class RectArea : public Area {
|
||||
public:
|
||||
RectArea(nsIContent* aArea);
|
||||
explicit RectArea(nsIContent* aArea);
|
||||
|
||||
virtual void ParseCoords(const nsAString& aSpec) MOZ_OVERRIDE;
|
||||
virtual bool IsInside(nscoord x, nscoord y) const MOZ_OVERRIDE;
|
||||
@ -411,7 +411,7 @@ void RectArea::GetRect(nsIFrame* aFrame, nsRect& aRect)
|
||||
|
||||
class PolyArea : public Area {
|
||||
public:
|
||||
PolyArea(nsIContent* aArea);
|
||||
explicit PolyArea(nsIContent* aArea);
|
||||
|
||||
virtual void ParseCoords(const nsAString& aSpec) MOZ_OVERRIDE;
|
||||
virtual bool IsInside(nscoord x, nscoord y) const MOZ_OVERRIDE;
|
||||
@ -551,7 +551,7 @@ void PolyArea::GetRect(nsIFrame* aFrame, nsRect& aRect)
|
||||
|
||||
class CircleArea : public Area {
|
||||
public:
|
||||
CircleArea(nsIContent* aArea);
|
||||
explicit CircleArea(nsIContent* aArea);
|
||||
|
||||
virtual void ParseCoords(const nsAString& aSpec) MOZ_OVERRIDE;
|
||||
virtual bool IsInside(nscoord x, nscoord y) const MOZ_OVERRIDE;
|
||||
|
@ -132,7 +132,7 @@ protected:
|
||||
}
|
||||
};
|
||||
|
||||
nsInlineFrame(nsStyleContext* aContext) : nsContainerFrame(aContext) {}
|
||||
explicit nsInlineFrame(nsStyleContext* aContext) : nsContainerFrame(aContext) {}
|
||||
|
||||
virtual LogicalSides GetLogicalSkipSides(const nsHTMLReflowState* aReflowState = nullptr) const MOZ_OVERRIDE;
|
||||
|
||||
@ -217,7 +217,7 @@ public:
|
||||
virtual bool DrainSelfOverflowList() MOZ_OVERRIDE;
|
||||
|
||||
protected:
|
||||
nsFirstLineFrame(nsStyleContext* aContext) : nsInlineFrame(aContext) {}
|
||||
explicit nsFirstLineFrame(nsStyleContext* aContext) : nsInlineFrame(aContext) {}
|
||||
|
||||
virtual nsIFrame* PullOneFrame(nsPresContext* aPresContext,
|
||||
InlineReflowState& rs,
|
||||
|
@ -639,13 +639,13 @@ public:
|
||||
};
|
||||
|
||||
struct ExtraData {
|
||||
ExtraData(const nsRect& aBounds) : mOverflowAreas(aBounds, aBounds) {
|
||||
explicit ExtraData(const nsRect& aBounds) : mOverflowAreas(aBounds, aBounds) {
|
||||
}
|
||||
nsOverflowAreas mOverflowAreas;
|
||||
};
|
||||
|
||||
struct ExtraBlockData : public ExtraData {
|
||||
ExtraBlockData(const nsRect& aBounds)
|
||||
explicit ExtraBlockData(const nsRect& aBounds)
|
||||
: ExtraData(aBounds),
|
||||
mCarriedOutBEndMargin()
|
||||
{
|
||||
@ -654,7 +654,7 @@ public:
|
||||
};
|
||||
|
||||
struct ExtraInlineData : public ExtraData {
|
||||
ExtraInlineData(const nsRect& aBounds) : ExtraData(aBounds) {
|
||||
explicit ExtraInlineData(const nsRect& aBounds) : ExtraData(aBounds) {
|
||||
}
|
||||
nsFloatCacheList mFloats;
|
||||
};
|
||||
|
@ -357,7 +357,7 @@ protected:
|
||||
friend struct PerFrameData;
|
||||
struct PerFrameData
|
||||
{
|
||||
PerFrameData(mozilla::WritingMode aWritingMode)
|
||||
explicit PerFrameData(mozilla::WritingMode aWritingMode)
|
||||
: mBounds(aWritingMode)
|
||||
, mMargin(aWritingMode)
|
||||
, mBorderPadding(aWritingMode)
|
||||
|
@ -211,7 +211,7 @@ public:
|
||||
void SetInstanceOwner(nsPluginInstanceOwner* aOwner);
|
||||
|
||||
protected:
|
||||
nsObjectFrame(nsStyleContext* aContext);
|
||||
explicit nsObjectFrame(nsStyleContext* aContext);
|
||||
virtual ~nsObjectFrame();
|
||||
|
||||
// NOTE: This frame class does not inherit from |nsLeafFrame|, so
|
||||
@ -260,7 +260,7 @@ private:
|
||||
|
||||
class PluginEventNotifier : public nsRunnable {
|
||||
public:
|
||||
PluginEventNotifier(const nsString &aEventType) :
|
||||
explicit PluginEventNotifier(const nsString &aEventType) :
|
||||
mEventType(aEventType) {}
|
||||
|
||||
NS_IMETHOD Run() MOZ_OVERRIDE;
|
||||
|
@ -49,7 +49,7 @@ public:
|
||||
#endif
|
||||
|
||||
protected:
|
||||
nsPageContentFrame(nsStyleContext* aContext) : ViewportFrame(aContext) {}
|
||||
explicit nsPageContentFrame(nsStyleContext* aContext) : ViewportFrame(aContext) {}
|
||||
|
||||
nsSharedPageData* mPD;
|
||||
};
|
||||
|
@ -57,7 +57,7 @@ public:
|
||||
nsPoint aPt);
|
||||
|
||||
protected:
|
||||
nsPageFrame(nsStyleContext* aContext);
|
||||
explicit nsPageFrame(nsStyleContext* aContext);
|
||||
virtual ~nsPageFrame();
|
||||
|
||||
typedef enum {
|
||||
@ -101,7 +101,7 @@ class nsPageBreakFrame : public nsLeafFrame
|
||||
{
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
|
||||
nsPageBreakFrame(nsStyleContext* aContext);
|
||||
explicit nsPageBreakFrame(nsStyleContext* aContext);
|
||||
~nsPageBreakFrame();
|
||||
|
||||
virtual void Reflow(nsPresContext* aPresContext,
|
||||
|
@ -48,7 +48,7 @@ protected:
|
||||
friend nsContainerFrame*
|
||||
NS_NewRubyBaseContainerFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext);
|
||||
nsRubyBaseContainerFrame(nsStyleContext* aContext) : nsContainerFrame(aContext) {}
|
||||
explicit nsRubyBaseContainerFrame(nsStyleContext* aContext) : nsContainerFrame(aContext) {}
|
||||
/*
|
||||
* The ruby text containers that belong to the ruby segment defined by
|
||||
* this ruby base container. These text containers are located at the start
|
||||
|
@ -49,7 +49,7 @@ public:
|
||||
protected:
|
||||
friend nsContainerFrame* NS_NewRubyBaseFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext);
|
||||
nsRubyBaseFrame(nsStyleContext* aContext) : nsContainerFrame(aContext) {}
|
||||
explicit nsRubyBaseFrame(nsStyleContext* aContext) : nsContainerFrame(aContext) {}
|
||||
nscoord mBaseline;
|
||||
};
|
||||
|
||||
|
@ -47,7 +47,7 @@ public:
|
||||
protected:
|
||||
friend nsContainerFrame* NS_NewRubyFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext);
|
||||
nsRubyFrame(nsStyleContext* aContext) : nsContainerFrame(aContext) {}
|
||||
explicit nsRubyFrame(nsStyleContext* aContext) : nsContainerFrame(aContext) {}
|
||||
void CalculateColSizes(nsRenderingContext* aRenderingContext,
|
||||
nsTArray<nscoord>& aColSizes);
|
||||
nscoord mBaseline;
|
||||
|
@ -54,7 +54,7 @@ protected:
|
||||
friend nsContainerFrame*
|
||||
NS_NewRubyTextContainerFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext);
|
||||
nsRubyTextContainerFrame(nsStyleContext* aContext) : nsBlockFrame(aContext) {}
|
||||
explicit nsRubyTextContainerFrame(nsStyleContext* aContext) : nsBlockFrame(aContext) {}
|
||||
// This pointer is active only during reflow of the ruby structure. It gets
|
||||
// created when the corresponding ruby base container is reflowed, and it is
|
||||
// destroyed when the ruby text container itself is reflowed.
|
||||
|
@ -48,7 +48,7 @@ public:
|
||||
protected:
|
||||
friend nsContainerFrame* NS_NewRubyTextFrame(nsIPresShell* aPresShell,
|
||||
nsStyleContext* aContext);
|
||||
nsRubyTextFrame(nsStyleContext* aContext) : nsContainerFrame(aContext) {}
|
||||
explicit nsRubyTextFrame(nsStyleContext* aContext) : nsContainerFrame(aContext) {}
|
||||
nscoord mBaseline;
|
||||
};
|
||||
|
||||
|
@ -151,7 +151,7 @@ class MOZ_STACK_CLASS nsSelectionBatcher MOZ_FINAL
|
||||
private:
|
||||
nsCOMPtr<nsISelectionPrivate> mSelection;
|
||||
public:
|
||||
nsSelectionBatcher(nsISelectionPrivate *aSelection) : mSelection(aSelection)
|
||||
explicit nsSelectionBatcher(nsISelectionPrivate *aSelection) : mSelection(aSelection)
|
||||
{
|
||||
if (mSelection) mSelection->StartBatchChanges();
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ public:
|
||||
#endif
|
||||
|
||||
protected:
|
||||
nsSimplePageSequenceFrame(nsStyleContext* aContext);
|
||||
explicit nsSimplePageSequenceFrame(nsStyleContext* aContext);
|
||||
virtual ~nsSimplePageSequenceFrame();
|
||||
|
||||
void SetPageNumberFormat(const char* aPropName, const char* aDefPropVal, bool aPageNumOnly);
|
||||
|
@ -76,7 +76,7 @@ NS_QUERYFRAME_TAIL_INHERITING(nsLeafFrame)
|
||||
class AsyncFrameInit : public nsRunnable
|
||||
{
|
||||
public:
|
||||
AsyncFrameInit(nsIFrame* aFrame) : mFrame(aFrame) {}
|
||||
explicit AsyncFrameInit(nsIFrame* aFrame) : mFrame(aFrame) {}
|
||||
NS_IMETHOD Run()
|
||||
{
|
||||
if (mFrame.IsAlive()) {
|
||||
|
@ -98,7 +98,7 @@ struct TabWidth {
|
||||
};
|
||||
|
||||
struct TabWidthStore {
|
||||
TabWidthStore(int32_t aValidForContentOffset)
|
||||
explicit TabWidthStore(int32_t aValidForContentOffset)
|
||||
: mLimit(0)
|
||||
, mValidForContentOffset(aValidForContentOffset)
|
||||
{ }
|
||||
@ -276,7 +276,7 @@ struct TextRunUserData {
|
||||
*/
|
||||
class nsTextPaintStyle {
|
||||
public:
|
||||
nsTextPaintStyle(nsTextFrame* aFrame);
|
||||
explicit nsTextPaintStyle(nsTextFrame* aFrame);
|
||||
|
||||
void SetResolveColors(bool aResolveColors) {
|
||||
NS_ASSERTION(mFrame->IsSVGText() || aResolveColors,
|
||||
@ -3979,7 +3979,7 @@ public:
|
||||
{ return NS_ERROR_NOT_IMPLEMENTED; } // Call on a primary text frame only
|
||||
|
||||
protected:
|
||||
nsContinuingTextFrame(nsStyleContext* aContext) : nsTextFrame(aContext) {}
|
||||
explicit nsContinuingTextFrame(nsStyleContext* aContext) : nsTextFrame(aContext) {}
|
||||
nsIFrame* mPrevContinuation;
|
||||
};
|
||||
|
||||
|
@ -39,7 +39,7 @@ public:
|
||||
friend class nsDisplayTextGeometry;
|
||||
friend class nsDisplayText;
|
||||
|
||||
nsTextFrame(nsStyleContext* aContext)
|
||||
explicit nsTextFrame(nsStyleContext* aContext)
|
||||
: nsTextFrameBase(aContext)
|
||||
{
|
||||
NS_ASSERTION(mContentOffset == 0, "Bogus content offset");
|
||||
@ -318,7 +318,7 @@ public:
|
||||
/**
|
||||
* @param aShouldPaintSVGGlyphs Whether SVG glyphs should be painted.
|
||||
*/
|
||||
DrawPathCallbacks(bool aShouldPaintSVGGlyphs = false)
|
||||
explicit DrawPathCallbacks(bool aShouldPaintSVGGlyphs = false)
|
||||
: gfxTextRunDrawCallbacks(aShouldPaintSVGGlyphs)
|
||||
{
|
||||
}
|
||||
|
@ -234,7 +234,7 @@ nsVideoFrame::BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
class DispatchResizeToControls : public nsRunnable
|
||||
{
|
||||
public:
|
||||
DispatchResizeToControls(nsIContent* aContent)
|
||||
explicit DispatchResizeToControls(nsIContent* aContent)
|
||||
: mContent(aContent) {}
|
||||
NS_IMETHOD Run() MOZ_OVERRIDE {
|
||||
nsContentUtils::DispatchTrustedEvent(mContent->OwnerDoc(), mContent,
|
||||
|
@ -33,7 +33,7 @@ public:
|
||||
typedef mozilla::layers::LayerManager LayerManager;
|
||||
typedef mozilla::ContainerLayerParameters ContainerLayerParameters;
|
||||
|
||||
nsVideoFrame(nsStyleContext* aContext);
|
||||
explicit nsVideoFrame(nsStyleContext* aContext);
|
||||
|
||||
NS_DECL_QUERYFRAME
|
||||
NS_DECL_QUERYFRAME_TARGET(nsVideoFrame)
|
||||
|
@ -29,7 +29,7 @@ public:
|
||||
|
||||
typedef nsContainerFrame Super;
|
||||
|
||||
ViewportFrame(nsStyleContext* aContext)
|
||||
explicit ViewportFrame(nsStyleContext* aContext)
|
||||
: nsContainerFrame(aContext)
|
||||
{}
|
||||
virtual ~ViewportFrame() { } // useful for debugging
|
||||
|
@ -40,7 +40,7 @@ class inDOMViewNode
|
||||
{
|
||||
public:
|
||||
inDOMViewNode() {}
|
||||
inDOMViewNode(nsIDOMNode* aNode);
|
||||
explicit inDOMViewNode(nsIDOMNode* aNode);
|
||||
~inDOMViewNode();
|
||||
|
||||
nsCOMPtr<nsIDOMNode> node;
|
||||
|
@ -12,7 +12,7 @@
|
||||
class inSearchLoop
|
||||
{
|
||||
public:
|
||||
inSearchLoop(inISearchProcess* aSearchProcess);
|
||||
explicit inSearchLoop(inISearchProcess* aSearchProcess);
|
||||
virtual ~inSearchLoop();
|
||||
|
||||
nsresult Start();
|
||||
|
@ -78,7 +78,7 @@ GetFrom(nsFrameLoader* aFrameLoader)
|
||||
|
||||
class RemoteContentController : public GeckoContentController {
|
||||
public:
|
||||
RemoteContentController(RenderFrameParent* aRenderFrame)
|
||||
explicit RemoteContentController(RenderFrameParent* aRenderFrame)
|
||||
: mUILoop(MessageLoop::current())
|
||||
, mRenderFrame(aRenderFrame)
|
||||
, mHaveZoomConstraints(false)
|
||||
|
@ -31,7 +31,7 @@ class nsMathMLContainerFrame : public nsContainerFrame,
|
||||
public nsMathMLFrame {
|
||||
friend class nsMathMLmfencedFrame;
|
||||
public:
|
||||
nsMathMLContainerFrame(nsStyleContext* aContext) : nsContainerFrame(aContext) {}
|
||||
explicit nsMathMLContainerFrame(nsStyleContext* aContext) : nsContainerFrame(aContext) {}
|
||||
|
||||
NS_DECL_QUERYFRAME_TARGET(nsMathMLContainerFrame)
|
||||
NS_DECL_QUERYFRAME
|
||||
@ -472,7 +472,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
nsMathMLmathBlockFrame(nsStyleContext* aContext) : nsBlockFrame(aContext) {
|
||||
explicit nsMathMLmathBlockFrame(nsStyleContext* aContext) : nsBlockFrame(aContext) {
|
||||
// We should always have a float manager. Not that things can really try
|
||||
// to float out of us anyway, but we need one for line layout.
|
||||
AddStateBits(NS_BLOCK_FLOAT_MGR);
|
||||
@ -548,7 +548,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
nsMathMLmathInlineFrame(nsStyleContext* aContext) : nsInlineFrame(aContext) {}
|
||||
explicit nsMathMLmathInlineFrame(nsStyleContext* aContext) : nsInlineFrame(aContext) {}
|
||||
virtual ~nsMathMLmathInlineFrame() {}
|
||||
};
|
||||
|
||||
|
@ -43,7 +43,7 @@ public:
|
||||
virtual nsQueryFrame::FrameIID GetFrameId() = 0;
|
||||
|
||||
protected:
|
||||
nsMathMLSelectedFrame(nsStyleContext* aContext) :
|
||||
explicit nsMathMLSelectedFrame(nsStyleContext* aContext) :
|
||||
nsMathMLContainerFrame(aContext) {}
|
||||
virtual ~nsMathMLSelectedFrame();
|
||||
|
||||
|
@ -59,7 +59,7 @@ public:
|
||||
nsHTMLReflowMetrics& aDesiredSize) MOZ_OVERRIDE;
|
||||
|
||||
protected:
|
||||
nsMathMLTokenFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {}
|
||||
explicit nsMathMLTokenFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {}
|
||||
virtual ~nsMathMLTokenFrame();
|
||||
|
||||
void MarkTextFramesAsTokenMathML();
|
||||
|
@ -52,13 +52,13 @@ private:
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_NSIDOMEVENTLISTENER
|
||||
|
||||
MouseListener(nsMathMLmactionFrame* aOwner) : mOwner(aOwner) { }
|
||||
explicit MouseListener(nsMathMLmactionFrame* aOwner) : mOwner(aOwner) { }
|
||||
|
||||
nsMathMLmactionFrame* mOwner;
|
||||
};
|
||||
|
||||
protected:
|
||||
nsMathMLmactionFrame(nsStyleContext* aContext) :
|
||||
explicit nsMathMLmactionFrame(nsStyleContext* aContext) :
|
||||
nsMathMLSelectedFrame(aContext) {}
|
||||
virtual ~nsMathMLmactionFrame();
|
||||
|
||||
|
@ -89,7 +89,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
nsMathMLmencloseFrame(nsStyleContext* aContext);
|
||||
explicit nsMathMLmencloseFrame(nsStyleContext* aContext);
|
||||
virtual ~nsMathMLmencloseFrame();
|
||||
|
||||
nsresult PlaceInternal(nsRenderingContext& aRenderingContext,
|
||||
|
@ -92,7 +92,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
nsMathMLmfencedFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {}
|
||||
explicit nsMathMLmfencedFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {}
|
||||
virtual ~nsMathMLmfencedFrame();
|
||||
|
||||
nsMathMLChar* mOpenChar;
|
||||
|
@ -89,7 +89,7 @@ public:
|
||||
ScriptIncrement(nsIFrame* aFrame) MOZ_OVERRIDE;
|
||||
|
||||
protected:
|
||||
nsMathMLmfracFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {}
|
||||
explicit nsMathMLmfracFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {}
|
||||
virtual ~nsMathMLmfracFrame();
|
||||
|
||||
nsresult PlaceInternal(nsRenderingContext& aRenderingContext,
|
||||
|
@ -43,7 +43,7 @@ public:
|
||||
ScriptIncrement(nsIFrame* aFrame) MOZ_OVERRIDE;
|
||||
|
||||
protected:
|
||||
nsMathMLmmultiscriptsFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {}
|
||||
explicit nsMathMLmmultiscriptsFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {}
|
||||
virtual ~nsMathMLmmultiscriptsFrame();
|
||||
|
||||
|
||||
|
@ -75,7 +75,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
nsMathMLmoFrame(nsStyleContext* aContext) : nsMathMLTokenFrame(aContext) {}
|
||||
explicit nsMathMLmoFrame(nsStyleContext* aContext) : nsMathMLTokenFrame(aContext) {}
|
||||
virtual ~nsMathMLmoFrame();
|
||||
|
||||
nsMathMLChar mMathMLChar; // Here is the MathMLChar that will deal with the operator.
|
||||
|
@ -45,7 +45,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
nsMathMLmpaddedFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {}
|
||||
explicit nsMathMLmpaddedFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {}
|
||||
virtual ~nsMathMLmpaddedFrame();
|
||||
|
||||
virtual nsresult
|
||||
|
@ -38,7 +38,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
nsMathMLmphantomFrame(nsStyleContext* aContext)
|
||||
explicit nsMathMLmphantomFrame(nsStyleContext* aContext)
|
||||
: nsMathMLContainerFrame(aContext) {}
|
||||
virtual ~nsMathMLmphantomFrame();
|
||||
};
|
||||
|
@ -61,7 +61,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
nsMathMLmrootFrame(nsStyleContext* aContext);
|
||||
explicit nsMathMLmrootFrame(nsStyleContext* aContext);
|
||||
virtual ~nsMathMLmrootFrame();
|
||||
|
||||
nsMathMLChar mSqrChar;
|
||||
|
@ -45,7 +45,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
nsMathMLmrowFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {}
|
||||
explicit nsMathMLmrowFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {}
|
||||
virtual ~nsMathMLmrowFrame();
|
||||
};
|
||||
|
||||
|
@ -36,7 +36,7 @@ public:
|
||||
nsReflowStatus& aStatus) MOZ_OVERRIDE;
|
||||
|
||||
protected:
|
||||
nsMathMLmspaceFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {}
|
||||
explicit nsMathMLmspaceFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {}
|
||||
virtual ~nsMathMLmspaceFrame();
|
||||
|
||||
virtual nsresult
|
||||
|
@ -60,7 +60,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
nsMathMLmsqrtFrame(nsStyleContext* aContext);
|
||||
explicit nsMathMLmsqrtFrame(nsStyleContext* aContext);
|
||||
virtual ~nsMathMLmsqrtFrame();
|
||||
};
|
||||
|
||||
|
@ -46,7 +46,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
nsMathMLmtableOuterFrame(nsStyleContext* aContext) : nsTableOuterFrame(aContext) {}
|
||||
explicit nsMathMLmtableOuterFrame(nsStyleContext* aContext) : nsTableOuterFrame(aContext) {}
|
||||
virtual ~nsMathMLmtableOuterFrame();
|
||||
|
||||
// helper to find the row frame at a given index, positive or negative, e.g.,
|
||||
@ -157,7 +157,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
nsMathMLmtableFrame(nsStyleContext* aContext) : nsTableFrame(aContext) {}
|
||||
explicit nsMathMLmtableFrame(nsStyleContext* aContext) : nsTableFrame(aContext) {}
|
||||
virtual ~nsMathMLmtableFrame();
|
||||
|
||||
private:
|
||||
@ -226,7 +226,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
nsMathMLmtrFrame(nsStyleContext* aContext) : nsTableRowFrame(aContext) {}
|
||||
explicit nsMathMLmtrFrame(nsStyleContext* aContext) : nsTableRowFrame(aContext) {}
|
||||
virtual ~nsMathMLmtrFrame();
|
||||
}; // class nsMathMLmtrFrame
|
||||
|
||||
@ -264,7 +264,7 @@ public:
|
||||
virtual nsMargin GetBorderOverflow() MOZ_OVERRIDE;
|
||||
|
||||
protected:
|
||||
nsMathMLmtdFrame(nsStyleContext* aContext) : nsTableCellFrame(aContext) {}
|
||||
explicit nsMathMLmtdFrame(nsStyleContext* aContext) : nsTableCellFrame(aContext) {}
|
||||
virtual ~nsMathMLmtdFrame();
|
||||
}; // class nsMathMLmtdFrame
|
||||
|
||||
@ -313,7 +313,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
nsMathMLmtdInnerFrame(nsStyleContext* aContext);
|
||||
explicit nsMathMLmtdInnerFrame(nsStyleContext* aContext);
|
||||
virtual ~nsMathMLmtdInnerFrame();
|
||||
|
||||
nsStyleText* mUniqueStyleText;
|
||||
|
@ -43,9 +43,9 @@ public:
|
||||
ScriptIncrement(nsIFrame* aFrame) MOZ_OVERRIDE;
|
||||
|
||||
protected:
|
||||
nsMathMLmunderoverFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext),
|
||||
mIncrementUnder(false),
|
||||
mIncrementOver(false) {}
|
||||
explicit nsMathMLmunderoverFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext),
|
||||
mIncrementUnder(false),
|
||||
mIncrementOver(false) {}
|
||||
virtual ~nsMathMLmunderoverFrame();
|
||||
|
||||
private:
|
||||
|
@ -21,7 +21,7 @@ public:
|
||||
nsStyleContext* aContext);
|
||||
|
||||
protected:
|
||||
nsMathMLsemanticsFrame(nsStyleContext* aContext) :
|
||||
explicit nsMathMLsemanticsFrame(nsStyleContext* aContext) :
|
||||
nsMathMLSelectedFrame(aContext) {}
|
||||
virtual ~nsMathMLsemanticsFrame();
|
||||
|
||||
|
@ -188,7 +188,7 @@ static void DumpPrintObjectsTreeLayout(nsPrintObject * aPO,nsDeviceContext * aDC
|
||||
class nsScriptSuppressor
|
||||
{
|
||||
public:
|
||||
nsScriptSuppressor(nsPrintEngine* aPrintEngine)
|
||||
explicit nsScriptSuppressor(nsPrintEngine* aPrintEngine)
|
||||
: mPrintEngine(aPrintEngine), mSuppressed(false) {}
|
||||
|
||||
~nsScriptSuppressor() { Unsuppress(); }
|
||||
@ -3601,7 +3601,7 @@ nsPrintEngine::Observe(nsISupports *aSubject, const char *aTopic, const char16_t
|
||||
//---------------------------------------------------------------
|
||||
class nsPrintCompletionEvent : public nsRunnable {
|
||||
public:
|
||||
nsPrintCompletionEvent(nsIDocumentViewerPrint *docViewerPrint)
|
||||
explicit nsPrintCompletionEvent(nsIDocumentViewerPrint *docViewerPrint)
|
||||
: mDocViewerPrint(docViewerPrint) {
|
||||
NS_ASSERTION(mDocViewerPrint, "mDocViewerPrint is null.");
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user