Bug 893117: Remove nsIDOMHTMLLegendElement r=bz
This commit is contained in:
@@ -42,7 +42,6 @@
|
||||
#include "nsIDOMXULElement.h"
|
||||
#include "nsContainerFrame.h"
|
||||
#include "nsINameSpaceManager.h"
|
||||
#include "nsIDOMHTMLLegendElement.h"
|
||||
#include "nsIComboboxControlFrame.h"
|
||||
#include "nsIListControlFrame.h"
|
||||
#include "nsISelectControlFrame.h"
|
||||
@@ -5879,7 +5878,7 @@ nsCSSFrameConstructor::IsValidSibling(nsIFrame* aSibling,
|
||||
nsGkAtoms::blockFrame == parentType)) {
|
||||
// Legends can be sibling of legends but not of other content in the fieldset
|
||||
nsIAtom* sibType = aSibling->GetContentInsertionFrame()->GetType();
|
||||
nsCOMPtr<nsIDOMHTMLLegendElement> legendContent(do_QueryInterface(aContent));
|
||||
bool legendContent = aContent->IsHTML(nsGkAtoms::legend);
|
||||
|
||||
if ((legendContent && (nsGkAtoms::legendFrame != sibType)) ||
|
||||
(!legendContent && (nsGkAtoms::legendFrame == sibType)))
|
||||
@@ -5987,8 +5986,7 @@ GetAdjustedParentFrame(nsIFrame* aParentFrame,
|
||||
if (nsGkAtoms::fieldSetFrame == aParentFrameType) {
|
||||
// If the parent is a fieldSet, use the fieldSet's area frame as the
|
||||
// parent unless the new content is a legend.
|
||||
nsCOMPtr<nsIDOMHTMLLegendElement> legendContent(do_QueryInterface(aChildContent));
|
||||
if (!legendContent) {
|
||||
if (!aChildContent->IsHTML(nsGkAtoms::legend)) {
|
||||
newParent = GetFieldSetBlockFrame(aParentFrame);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user