зеркало из https://github.com/mozilla/pjs.git
Last checkin didn't fix 47309, so revert that part 'til we get a better fix
This commit is contained in:
Родитель
b96c318a90
Коммит
671e07e8fa
|
@ -4143,6 +4143,7 @@ PRBool
|
||||||
nsHTMLDocument::IsInSelection(nsIDOMSelection* aSelection,
|
nsHTMLDocument::IsInSelection(nsIDOMSelection* aSelection,
|
||||||
const nsIContent* aContent) const
|
const nsIContent* aContent) const
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
// HTML document has to include body in the selection,
|
// HTML document has to include body in the selection,
|
||||||
// so that output can see style nodes on the body
|
// so that output can see style nodes on the body
|
||||||
// in case the caller doesn't know to specify wrap column
|
// in case the caller doesn't know to specify wrap column
|
||||||
|
@ -4155,6 +4156,7 @@ nsHTMLDocument::IsInSelection(nsIDOMSelection* aSelection,
|
||||||
NS_IF_RELEASE(tag);
|
NS_IF_RELEASE(tag);
|
||||||
return PR_TRUE;
|
return PR_TRUE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// If it's a block node, return true if the node itself
|
// If it's a block node, return true if the node itself
|
||||||
// is in the selection. If it's inline, return true if
|
// is in the selection. If it's inline, return true if
|
||||||
|
|
|
@ -4143,6 +4143,7 @@ PRBool
|
||||||
nsHTMLDocument::IsInSelection(nsIDOMSelection* aSelection,
|
nsHTMLDocument::IsInSelection(nsIDOMSelection* aSelection,
|
||||||
const nsIContent* aContent) const
|
const nsIContent* aContent) const
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
// HTML document has to include body in the selection,
|
// HTML document has to include body in the selection,
|
||||||
// so that output can see style nodes on the body
|
// so that output can see style nodes on the body
|
||||||
// in case the caller doesn't know to specify wrap column
|
// in case the caller doesn't know to specify wrap column
|
||||||
|
@ -4155,6 +4156,7 @@ nsHTMLDocument::IsInSelection(nsIDOMSelection* aSelection,
|
||||||
NS_IF_RELEASE(tag);
|
NS_IF_RELEASE(tag);
|
||||||
return PR_TRUE;
|
return PR_TRUE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// If it's a block node, return true if the node itself
|
// If it's a block node, return true if the node itself
|
||||||
// is in the selection. If it's inline, return true if
|
// is in the selection. If it's inline, return true if
|
||||||
|
|
Загрузка…
Ссылка в новой задаче