mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
Fix invalid optimization that prevented style changes on inline elements that caused a reflow from applying to more than the first line. b=98783 r=attinasi sr=hyatt
This commit is contained in:
parent
8e0def5119
commit
bd8feefd91
@ -2196,9 +2196,10 @@ FrameManager::ComputeStyleChangeFor(nsIPresContext* aPresContext,
|
||||
aTopLevelChange = frameChange;
|
||||
}
|
||||
|
||||
if (aTopLevelChange >= NS_STYLE_HINT_REFLOW) {
|
||||
// If it's going to cause a reflow (or worse), then don't touch
|
||||
// the any continuations: they must be taken care of by the reflow.
|
||||
if (aTopLevelChange >= NS_STYLE_HINT_FRAMECHANGE) {
|
||||
// If it's going to cause a framechange, then don't bother with
|
||||
// the continutaions since they'll be clobbered by the frame
|
||||
// reconstruct anyway.
|
||||
#ifdef NS_DEBUG
|
||||
nsIFrame* prevInFlow;
|
||||
frame->GetPrevInFlow(&prevInFlow);
|
||||
|
@ -2196,9 +2196,10 @@ FrameManager::ComputeStyleChangeFor(nsIPresContext* aPresContext,
|
||||
aTopLevelChange = frameChange;
|
||||
}
|
||||
|
||||
if (aTopLevelChange >= NS_STYLE_HINT_REFLOW) {
|
||||
// If it's going to cause a reflow (or worse), then don't touch
|
||||
// the any continuations: they must be taken care of by the reflow.
|
||||
if (aTopLevelChange >= NS_STYLE_HINT_FRAMECHANGE) {
|
||||
// If it's going to cause a framechange, then don't bother with
|
||||
// the continutaions since they'll be clobbered by the frame
|
||||
// reconstruct anyway.
|
||||
#ifdef NS_DEBUG
|
||||
nsIFrame* prevInFlow;
|
||||
frame->GetPrevInFlow(&prevInFlow);
|
||||
|
Loading…
Reference in New Issue
Block a user