зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug #9733. Changed CantRenderReplacedElement() so it resets the primary
frame mapping for the image
This commit is contained in:
Родитель
89b7456d30
Коммит
3423003ece
|
@ -5441,6 +5441,10 @@ nsCSSFrameConstructor::CantRenderReplacedElement(nsIPresContext* aPresContext,
|
|||
if (NS_SUCCEEDED(rv)) {
|
||||
// Delete the current frame
|
||||
parentFrame->RemoveFrame(*aPresContext, *presShell, listName, aFrame);
|
||||
|
||||
// Reset the primary frame mapping
|
||||
presShell->SetPrimaryFrameFor(content, newFrame);
|
||||
|
||||
if (placeholderFrame) {
|
||||
// Remove the association between the old frame and its placeholder
|
||||
presShell->SetPlaceholderFrameFor(aFrame, nsnull);
|
||||
|
|
|
@ -5441,6 +5441,10 @@ nsCSSFrameConstructor::CantRenderReplacedElement(nsIPresContext* aPresContext,
|
|||
if (NS_SUCCEEDED(rv)) {
|
||||
// Delete the current frame
|
||||
parentFrame->RemoveFrame(*aPresContext, *presShell, listName, aFrame);
|
||||
|
||||
// Reset the primary frame mapping
|
||||
presShell->SetPrimaryFrameFor(content, newFrame);
|
||||
|
||||
if (placeholderFrame) {
|
||||
// Remove the association between the old frame and its placeholder
|
||||
presShell->SetPlaceholderFrameFor(aFrame, nsnull);
|
||||
|
|
Загрузка…
Ссылка в новой задаче