mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1116714
part 3 - Use GetParentOrPlaceholderFor (not GetParent) so that reframing anonymous content frames works also for fixed pos frames. r=roc
This commit is contained in:
parent
d76290891a
commit
8b28082cae
@ -9293,9 +9293,9 @@ nsCSSFrameConstructor::RecreateFramesForContent(nsIContent* aContent,
|
||||
// nsIAnonymousContentCreator that created this content knows how to make
|
||||
// that happen.
|
||||
nsIAnonymousContentCreator* acc = nullptr;
|
||||
nsIFrame* ancestor = frame->GetParent();
|
||||
nsIFrame* ancestor = nsLayoutUtils::GetParentOrPlaceholderFor(frame);
|
||||
while (!(acc = do_QueryFrame(ancestor))) {
|
||||
ancestor = ancestor->GetParent();
|
||||
ancestor = nsLayoutUtils::GetParentOrPlaceholderFor(ancestor);
|
||||
}
|
||||
NS_ASSERTION(acc, "Where is the nsIAnonymousContentCreator? We may fail "
|
||||
"to recreate its content correctly");
|
||||
|
Loading…
Reference in New Issue
Block a user