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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user