Bug 931460. Part 1: When a <legend>'s frame is reparented to the <fieldset>, update StickyScrollContainers to match if necessary. r=mats

This commit is contained in:
Robert O'Callahan
2013-11-23 22:48:26 +13:00
parent af3bd7e27a
commit 003be5e875
7 changed files with 68 additions and 0 deletions

View File

@@ -67,6 +67,7 @@
#include "nsStyleStructInlines.h"
#include "nsPageContentFrame.h"
#include "RestyleManager.h"
#include "StickyScrollContainer.h"
#ifdef MOZ_XUL
#include "nsIRootBox.h"
@@ -3097,6 +3098,10 @@ nsCSSFrameConstructor::ConstructFieldSetFrame(nsFrameConstructorState& aState,
childItems.RemoveFrame(child);
// Make sure to reparent the legend so it has the fieldset as the parent.
fieldsetKids.InsertFrame(fieldsetFrame, nullptr, child);
if (scrollFrame) {
StickyScrollContainer::NotifyReparentedFrameAcrossScrollFrameBoundary(
child, blockFrame);
}
break;
}
}