зеркало из https://github.com/mozilla/pjs.git
Fix XBL extension of XHTML namespaced nodes. Bug 176606, patch by hyatt,
r=jst, sr=bzbarsky
This commit is contained in:
Родитель
af6ee19088
Коммит
198fe5168a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче