@@ -624,7 +624,7 @@ class nsDisplayListBuilder {
624624 : mContainingBlockClip (aContainingBlockClip)
625625 , mDirtyRect (aDirtyRect)
626626 {}
627- OutOfFlowDisplayData (const nsRect &aDirtyRect)
627+ explicit OutOfFlowDisplayData (const nsRect &aDirtyRect)
628628 : mDirtyRect(aDirtyRect)
629629 {}
630630 DisplayItemClip mContainingBlockClip ;
@@ -808,7 +808,7 @@ class nsDisplayItem : public nsDisplayItemLink {
808808 * This constructor is only used in rare cases when we need to construct
809809 * temporary items.
810810 */
811- nsDisplayItem (nsIFrame* aFrame)
811+ explicit nsDisplayItem (nsIFrame* aFrame)
812812 : mFrame(aFrame)
813813 , mClip(nullptr )
814814 , mReferenceFrame(nullptr )
@@ -830,7 +830,7 @@ class nsDisplayItem : public nsDisplayItemLink {
830830 struct HitTestState {
831831 typedef nsTArray<ViewID> ShadowArray;
832832
833- HitTestState (ShadowArray* aShadows = nullptr )
833+ explicit HitTestState (ShadowArray* aShadows = nullptr )
834834 : mShadows(aShadows) {
835835 }
836836
@@ -1744,7 +1744,7 @@ struct nsDisplayListCollection : public nsDisplayListSet {
17441744 nsDisplayListCollection () :
17451745 nsDisplayListSet (&mLists [0 ], &mLists [1 ], &mLists [2 ], &mLists [3 ], &mLists [4 ],
17461746 &mLists [5 ]) {}
1747- nsDisplayListCollection (nsDisplayList* aBorderBackground) :
1747+ explicit nsDisplayListCollection (nsDisplayList* aBorderBackground) :
17481748 nsDisplayListSet(aBorderBackground, &mLists [1 ], &mLists [2 ], &mLists [3 ], &mLists [4 ],
17491749 &mLists [5 ]) {}
17501750
@@ -3412,7 +3412,7 @@ class nsCharClipDisplayItem : public nsDisplayItem {
34123412 nsCharClipDisplayItem (nsDisplayListBuilder* aBuilder, nsIFrame* aFrame)
34133413 : nsDisplayItem(aBuilder, aFrame), mLeftEdge (0 ), mRightEdge (0 ) {}
34143414
3415- nsCharClipDisplayItem (nsIFrame* aFrame)
3415+ explicit nsCharClipDisplayItem (nsIFrame* aFrame)
34163416 : nsDisplayItem(aFrame) {}
34173417
34183418 struct ClipEdges {
0 commit comments