Skip to content

Commit

Permalink
Change some uses of nsChangeHint_ReflowFrame to check nsChangeHint_Ne…
Browse files Browse the repository at this point in the history
…edReflow. (Bug 789592, patch 1) r=bzbarsky
  • Loading branch information
dbaron committed Sep 7, 2012
1 parent a838329 commit a4096f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion layout/style/nsStyleStruct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion layout/svg/base/src/nsSVGEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion layout/tables/nsTableFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4096f1

Please sign in to comment.