aData->mDisplayData->mOverflowX = visible; aData->mDisplayData->mOverflowY = visible;
aData->mDisplayData->mOverflow = visible;
CSSDisablePropsRule::CommonMapRuleInfoInto(nsRuleData* aData){  /*   * Common code for disabling the properties that apply neither to   * :first-letter nor to :first-line.   */  // Disable 'unicode-bidi'.  if (aData->mSID == eStyleStruct_TextReset) {    nsCSSValue normal(eCSSUnit_Normal);    aData->mTextData->mUnicodeBidi = normal;  }  // NOTE: 'text-align', 'text-indent', and 'white-space' should not be  // handled by the frames so we don't need to bother.  // Disable everything in the nsRuleDataDisplay struct except 'float'  // and 'clear'.  if (aData->mSID == eStyleStruct_Visibility) {    nsCSSValue inherit(eCSSUnit_Inherit);    aData->mDisplayData->mVisibility = inherit;    aData->mDisplayData->mDirection = inherit;  }  if (aData->mSID == eStyleStruct_Display) {    nsCSSValue none(eCSSUnit_None);    aData->mDisplayData->mAppearance = none;    nsCSSValue autovalue(eCSSUnit_Auto);    aData->mDisplayData->mClip.mTop = autovalue;    aData->mDisplayData->mClip.mRight = autovalue;    aData->mDisplayData->mClip.mBottom = autovalue;    aData->mDisplayData->mClip.mLeft = autovalue;    nsCSSValue one(1.0f, eCSSUnit_Number);    aData->mDisplayData->mOpacity = one;    nsCSSValue inlinevalue(NS_STYLE_DISPLAY_INLINE, eCSSUnit_Enumerated);    aData->mDisplayData->mDisplay = inlinevalue;    aData->mDisplayData->mBinding = none;    nsCSSValue staticposition(NS_STYLE_POSITION_STATIC, eCSSUnit_Enumerated);    aData->mDisplayData->mPosition = staticposition;    nsCSSValue visible(NS_STYLE_OVERFLOW_VISIBLE, eCSSUnit_Enumerated);    aData->mDisplayData->mOverflowX = visible;    aData->mDisplayData->mOverflowY = visible;    // Nobody will care about 'break-before' or 'break-after', since    // they only apply to blocks (assuming we implement them correctly).  }  // NOTE:  We'll never do anything with what's in nsCSSList,  // nsCSSTable, nsCSSBreaks, nsCSSPage, nsCSSAural, nsCSSXUL, or  // nsCSSSVG, so don't bother.  // Disable everything in the position struct.  if (aData->mSID == eStyleStruct_Position) {    nsCSSValue autovalue(eCSSUnit_Auto);    nsCSSValue none(eCSSUnit_None);    nsCSSValue zero(0.0f, eCSSUnit_Point);    aData->mPositionData->mOffset.mTop = autovalue;    aData->mPositionData->mOffset.mRight = autovalue;    aData->mPositionData->mOffset.mBottom = autovalue;    aData->mPositionData->mOffset.mLeft = autovalue;    aData->mPositionData->mWidth = autovalue;    aData->mPositionData->mMinWidth = zero;    aData->mPositionData->mMaxWidth = none;    aData->mPositionData->mHeight = autovalue;    aData->mPositionData->mMinHeight = zero;    aData->mPositionData->mMaxHeight = none;    nsCSSValue content(NS_STYLE_BOX_SIZING_CONTENT, eCSSUnit_Enumerated);    aData->mPositionData->mBoxSizing = content;    aData->mPositionData->mZIndex = autovalue;  }  // Disable everything in the Content struct.  if (aData->mSID == eStyleStruct_Content) {    // Don't bother resetting 'content'.    // Don't bother with '-moz-counter-increment' and    // '-moz-counter-reset' since they're '-moz-'ed and should be    // removed soon.    nsCSSValue autovalue(eCSSUnit_Auto);    aData->mContentData->mMarkerOffset = autovalue;  }  if (aData->mSID == eStyleStruct_Quotes) {    // XXX |mQuotes| is a pain, because we have to have our own cursor    // structure allocated.  }  // Disable everything in the UserInterface struct.  if (aData->mSID == eStyleStruct_UserInterface) {    nsCSSValue inherit(eCSSUnit_Inherit);    aData->mUserInterfaceData->mUserInput = inherit;    aData->mUserInterfaceData->mUserModify = inherit;    aData->mUserInterfaceData->mUserFocus = inherit;    // XXX |mCursor| is a pain, because we have to have our own cursor    // structure allocated.  }  if (aData->mSID == eStyleStruct_UIReset) {    nsCSSValue autovalue(eCSSUnit_Auto);    nsCSSValue none(eCSSUnit_None);    // XXX |mKeyEquivalent| is a pain, because we have to have our own cursor    // structure allocated.    // Don't bother with '-moz-force-broken-image-icon' since it's only    // half a property.    // Don't bother with '-moz-user-select' because there's no way to    // specify the initial value.  }  // Disable all outline properties.  if (aData->mSID == eStyleStruct_Outline) {    nsCSSValue none(NS_STYLE_BORDER_STYLE_NONE, eCSSUnit_Enumerated);    aData->mMarginData->mOutlineStyle = none;  }}