mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
45754 ('hidden' borders should be treated as 'none')
This commit is contained in:
parent
59e9d15a43
commit
e0bfdfa04d
@ -861,7 +861,9 @@ PRInt32 StyleSpacingImpl::CalcDifference(const StyleSpacingImpl& aOther) const
|
||||
(mBorderColor[ix] != aOther.mBorderColor[ix])) {
|
||||
if ((mBorderStyle[ix] != aOther.mBorderStyle[ix]) &&
|
||||
((NS_STYLE_BORDER_STYLE_NONE == mBorderStyle[ix]) ||
|
||||
(NS_STYLE_BORDER_STYLE_NONE == aOther.mBorderStyle[ix]))) {
|
||||
(NS_STYLE_BORDER_STYLE_NONE == aOther.mBorderStyle[ix]) ||
|
||||
(NS_STYLE_BORDER_STYLE_HIDDEN == mBorderStyle[ix]) || // bug 45754
|
||||
(NS_STYLE_BORDER_STYLE_HIDDEN == aOther.mBorderStyle[ix]))) {
|
||||
return NS_STYLE_HINT_REFLOW; // border on or off
|
||||
}
|
||||
return NS_STYLE_HINT_VISUAL;
|
||||
|
@ -861,7 +861,9 @@ PRInt32 StyleSpacingImpl::CalcDifference(const StyleSpacingImpl& aOther) const
|
||||
(mBorderColor[ix] != aOther.mBorderColor[ix])) {
|
||||
if ((mBorderStyle[ix] != aOther.mBorderStyle[ix]) &&
|
||||
((NS_STYLE_BORDER_STYLE_NONE == mBorderStyle[ix]) ||
|
||||
(NS_STYLE_BORDER_STYLE_NONE == aOther.mBorderStyle[ix]))) {
|
||||
(NS_STYLE_BORDER_STYLE_NONE == aOther.mBorderStyle[ix]) ||
|
||||
(NS_STYLE_BORDER_STYLE_HIDDEN == mBorderStyle[ix]) || // bug 45754
|
||||
(NS_STYLE_BORDER_STYLE_HIDDEN == aOther.mBorderStyle[ix]))) {
|
||||
return NS_STYLE_HINT_REFLOW; // border on or off
|
||||
}
|
||||
return NS_STYLE_HINT_VISUAL;
|
||||
|
@ -861,7 +861,9 @@ PRInt32 StyleSpacingImpl::CalcDifference(const StyleSpacingImpl& aOther) const
|
||||
(mBorderColor[ix] != aOther.mBorderColor[ix])) {
|
||||
if ((mBorderStyle[ix] != aOther.mBorderStyle[ix]) &&
|
||||
((NS_STYLE_BORDER_STYLE_NONE == mBorderStyle[ix]) ||
|
||||
(NS_STYLE_BORDER_STYLE_NONE == aOther.mBorderStyle[ix]))) {
|
||||
(NS_STYLE_BORDER_STYLE_NONE == aOther.mBorderStyle[ix]) ||
|
||||
(NS_STYLE_BORDER_STYLE_HIDDEN == mBorderStyle[ix]) || // bug 45754
|
||||
(NS_STYLE_BORDER_STYLE_HIDDEN == aOther.mBorderStyle[ix]))) {
|
||||
return NS_STYLE_HINT_REFLOW; // border on or off
|
||||
}
|
||||
return NS_STYLE_HINT_VISUAL;
|
||||
|
Loading…
Reference in New Issue
Block a user