|
Lines 1010-1025
nsInlineFrame::UpdateStyleOfOwnedAnonBox
|
Link Here
|
---|
|
1010 |
// We don't want to just walk through using GetNextContinuationWithSameStyle |
1010 |
// We don't want to just walk through using GetNextContinuationWithSameStyle |
1011 |
// here, because we want to set updated style contexts on both our |
1011 |
// here, because we want to set updated style contexts on both our |
1012 |
// ib-sibling blocks and inlines. |
1012 |
// ib-sibling blocks and inlines. |
1013 |
for (nsIFrame* cont = blockFrame; cont; cont = cont->GetNextContinuation()) { |
1013 |
for (nsIFrame* cont = blockFrame; cont; cont = cont->GetNextContinuation()) { |
1014 |
cont->SetStyleContext(newContext); |
1014 |
cont->SetStyleContext(newContext); |
1015 |
} |
1015 |
} |
1016 |
|
1016 |
|
1017 |
nsIFrame* nextInline = blockFrame->GetProperty(nsIFrame::IBSplitSibling()); |
1017 |
nsIFrame* nextInline = blockFrame->GetProperty(nsIFrame::IBSplitSibling()); |
|
|
1018 |
|
1019 |
// This check is here due to bug 1405443. Please remove it once |
1020 |
// that bug is fixed. |
1021 |
if (!nextInline) { |
1022 |
break; |
1023 |
} |
1024 |
|
1018 |
MOZ_ASSERT(nextInline, "There is always a trailing inline in an IB split"); |
1025 |
MOZ_ASSERT(nextInline, "There is always a trailing inline in an IB split"); |
1019 |
|
1026 |
|
1020 |
for (nsIFrame* cont = nextInline; cont; cont = cont->GetNextContinuation()) { |
1027 |
for (nsIFrame* cont = nextInline; cont; cont = cont->GetNextContinuation()) { |
1021 |
cont->SetStyleContext(ourStyle); |
1028 |
cont->SetStyleContext(ourStyle); |
1022 |
} |
1029 |
} |
1023 |
blockFrame = nextInline->GetProperty(nsIFrame::IBSplitSibling()); |
1030 |
blockFrame = nextInline->GetProperty(nsIFrame::IBSplitSibling()); |
1024 |
} |
1031 |
} |
1025 |
} |
1032 |
} |