mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Change some uses of nsChangeHint_ReflowFrame to check nsChangeHint_NeedReflow. (Bug 789592, patch 1) r=bzbarsky
This commit is contained in:
parent
97226255be
commit
d069ca43c9
@ -498,7 +498,7 @@ nsChangeHint nsStyleBorder::CalcDifference(const nsStyleBorder& aOther) const
|
||||
GetComputedBorder() != aOther.GetComputedBorder() ||
|
||||
mFloatEdge != aOther.mFloatEdge ||
|
||||
mBorderImageOutset != aOther.mBorderImageOutset ||
|
||||
(shadowDifference & nsChangeHint_ReflowFrame))
|
||||
(shadowDifference & nsChangeHint_NeedReflow))
|
||||
return NS_STYLE_HINT_REFLOW;
|
||||
|
||||
NS_FOR_CSS_SIDES(ix) {
|
||||
|
@ -277,7 +277,7 @@ nsSVGMarkerProperty::DoUpdate()
|
||||
// Don't need to request ReflowFrame if we're being reflowed.
|
||||
if (!(mFrame->GetStateBits() & NS_FRAME_IN_REFLOW)) {
|
||||
// XXXjwatt: We need to unify SVG into standard reflow so we can just use
|
||||
// nsChangeHint_ReflowFrame here.
|
||||
// nsChangeHint_NeedReflow | nsChangeHint_NeedDirtyReflow here.
|
||||
nsSVGUtils::InvalidateAndScheduleReflowSVG(mFrame);
|
||||
}
|
||||
mFramePresShell->FrameConstructor()->PostRestyleEvent(
|
||||
|
@ -4615,7 +4615,7 @@ nsTableFrame::BCRecalcNeeded(nsStyleContext* aOldStyleContext,
|
||||
nsChangeHint change = newStyleData->CalcDifference(*oldStyleData);
|
||||
if (!change)
|
||||
return false;
|
||||
if (change & nsChangeHint_ReflowFrame)
|
||||
if (change & nsChangeHint_NeedReflow)
|
||||
return true; // the caller only needs to mark the bc damage area
|
||||
if (change & nsChangeHint_RepaintFrame) {
|
||||
// we need to recompute the borders and the caller needs to mark
|
||||
|
Loading…
Reference in New Issue
Block a user