зеркало из https://github.com/mozilla/pjs.git
Use a reflow (without forced repaint) hint for position struct changes. Bug
243882, r+sr=roc
This commit is contained in:
Родитель
6b67dc7e1d
Коммит
a3fa8cf8c9
|
@ -860,6 +860,10 @@ nsStylePosition::nsStylePosition(const nsStylePosition& aSource)
|
|||
|
||||
nsChangeHint nsStylePosition::CalcDifference(const nsStylePosition& aOther) const
|
||||
{
|
||||
if (mZIndex != aOther.mZIndex) {
|
||||
return NS_STYLE_HINT_REFLOW;
|
||||
}
|
||||
|
||||
if ((mOffset == aOther.mOffset) &&
|
||||
(mWidth == aOther.mWidth) &&
|
||||
(mMinWidth == aOther.mMinWidth) &&
|
||||
|
@ -867,10 +871,10 @@ nsChangeHint nsStylePosition::CalcDifference(const nsStylePosition& aOther) cons
|
|||
(mHeight == aOther.mHeight) &&
|
||||
(mMinHeight == aOther.mMinHeight) &&
|
||||
(mMaxHeight == aOther.mMaxHeight) &&
|
||||
(mBoxSizing == aOther.mBoxSizing) &&
|
||||
(mZIndex == aOther.mZIndex))
|
||||
(mBoxSizing == aOther.mBoxSizing))
|
||||
return NS_STYLE_HINT_NONE;
|
||||
return NS_STYLE_HINT_REFLOW;
|
||||
|
||||
return nsChangeHint_ReflowFrame;
|
||||
}
|
||||
|
||||
// --------------------
|
||||
|
|
|
@ -860,6 +860,10 @@ nsStylePosition::nsStylePosition(const nsStylePosition& aSource)
|
|||
|
||||
nsChangeHint nsStylePosition::CalcDifference(const nsStylePosition& aOther) const
|
||||
{
|
||||
if (mZIndex != aOther.mZIndex) {
|
||||
return NS_STYLE_HINT_REFLOW;
|
||||
}
|
||||
|
||||
if ((mOffset == aOther.mOffset) &&
|
||||
(mWidth == aOther.mWidth) &&
|
||||
(mMinWidth == aOther.mMinWidth) &&
|
||||
|
@ -867,10 +871,10 @@ nsChangeHint nsStylePosition::CalcDifference(const nsStylePosition& aOther) cons
|
|||
(mHeight == aOther.mHeight) &&
|
||||
(mMinHeight == aOther.mMinHeight) &&
|
||||
(mMaxHeight == aOther.mMaxHeight) &&
|
||||
(mBoxSizing == aOther.mBoxSizing) &&
|
||||
(mZIndex == aOther.mZIndex))
|
||||
(mBoxSizing == aOther.mBoxSizing))
|
||||
return NS_STYLE_HINT_NONE;
|
||||
return NS_STYLE_HINT_REFLOW;
|
||||
|
||||
return nsChangeHint_ReflowFrame;
|
||||
}
|
||||
|
||||
// --------------------
|
||||
|
|
Загрузка…
Ссылка в новой задаче