зеркало из https://github.com/mozilla/gecko-dev.git
Fix XBL extension of XHTML namespaced nodes. Bug 176606, patch by hyatt,
r=jst, sr=bzbarsky
This commit is contained in:
Родитель
18539dc21e
Коммит
fe7960ecb6
|
@ -4432,8 +4432,10 @@ nsCSSFrameConstructor::ConstructHTMLFrame(nsIPresShell* aPresShell,
|
|||
nsStyleContext* aStyleContext,
|
||||
nsFrameItems& aFrameItems)
|
||||
{
|
||||
// Ignore the tag if it's not HTML content
|
||||
if (!aContent->IsContentOfType(nsIContent::eHTML)) {
|
||||
// Ignore the tag if it's not HTML content and if it doesn't extend (via XBL)
|
||||
// a valid HTML namespace.
|
||||
if (!aContent->IsContentOfType(nsIContent::eHTML) &&
|
||||
aNameSpaceID != kNameSpaceID_XHTML) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -4432,8 +4432,10 @@ nsCSSFrameConstructor::ConstructHTMLFrame(nsIPresShell* aPresShell,
|
|||
nsStyleContext* aStyleContext,
|
||||
nsFrameItems& aFrameItems)
|
||||
{
|
||||
// Ignore the tag if it's not HTML content
|
||||
if (!aContent->IsContentOfType(nsIContent::eHTML)) {
|
||||
// Ignore the tag if it's not HTML content and if it doesn't extend (via XBL)
|
||||
// a valid HTML namespace.
|
||||
if (!aContent->IsContentOfType(nsIContent::eHTML) &&
|
||||
aNameSpaceID != kNameSpaceID_XHTML) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче