@@ -88,57 +88,33 @@ enum nsBorderStyle {
8888 */
8989
9090struct nsWidgetInitData {
91- nsWidgetInitData ()
92- : mWindowType (eWindowType_child),
93- mBorderStyle (eBorderStyle_default),
94- mPopupHint(ePopupTypePanel),
95- mPopupLevel(ePopupLevelTop),
96- mScreenId(0 ),
97- clipChildren(false ),
98- clipSiblings(false ),
99- mDropShadow(false ),
100- mRTL(false ),
101- mNoAutoHide(false ),
102- mIsDragPopup(false ),
103- mIsAnimationSuppressed(false ),
104- mSupportTranslucency(false ),
105- mMouseTransparent(false ),
106- mHasRemoteContent(false ),
107- mAlwaysOnTop(false ),
108- mPIPWindow(false ),
109- mFissionWindow(false ),
110- mResizable(false ),
111- mIsPrivate(false ) {}
91+ nsWidgetInitData () = default ;
11292
113- nsWindowType mWindowType ;
114- nsBorderStyle mBorderStyle ;
115- nsPopupType mPopupHint ;
116- nsPopupLevel mPopupLevel ;
117- // B2G multi-screen support. Screen ID is for differentiating screens of
118- // windows, and due to the hardware limitation, it is platform-specific for
119- // now, which align with the value of display type defined in HWC.
120- uint32_t mScreenId ;
93+ nsWindowType mWindowType = eWindowType_child;
94+ nsBorderStyle mBorderStyle = eBorderStyle_default;
95+ nsPopupType mPopupHint = ePopupTypePanel;
96+ nsPopupLevel mPopupLevel = ePopupLevelTop;
12197 // when painting exclude area occupied by child windows and sibling windows
122- bool clipChildren, clipSiblings, mDropShadow ;
123- bool mRTL ;
124- bool mNoAutoHide ; // true for noautohide panels
125- bool mIsDragPopup ; // true for drag feedback panels
98+ bool mClipChildren = false ;
99+ bool mClipSiblings = false ;
100+ bool mDropShadow = false ;
101+ bool mRTL = false ;
102+ bool mNoAutoHide = false ; // true for noautohide panels
103+ bool mIsDragPopup = false ; // true for drag feedback panels
126104 // true if window creation animation is suppressed, e.g. for session restore
127- bool mIsAnimationSuppressed ;
105+ bool mIsAnimationSuppressed = false ;
128106 // true if the window should support an alpha channel, if available.
129- bool mSupportTranslucency ;
107+ bool mSupportTranslucency = false ;
130108 // true if the window should be transparent to mouse events. Currently this is
131109 // only valid for eWindowType_popup widgets
132- bool mMouseTransparent ;
133- bool mHasRemoteContent ;
134- bool mAlwaysOnTop ;
110+ bool mMouseTransparent = false ;
111+ bool mHasRemoteContent = false ;
112+ bool mAlwaysOnTop = false ;
135113 // Is PictureInPicture window
136- bool mPIPWindow ;
137- // True if fission is enabled for this window
138- bool mFissionWindow ;
114+ bool mPIPWindow = false ;
139115 // True if the window is user-resizable.
140- bool mResizable ;
141- bool mIsPrivate ;
116+ bool mResizable = false ;
117+ bool mIsPrivate = false ;
142118};
143119
144120#endif // nsWidgetInitData_h__
0 commit comments