зеркало из https://github.com/mozilla/gecko-dev.git
removing annoying assertions that bug us when positioning popups from script, rs=hyatt
This commit is contained in:
Родитель
47c288148a
Коммит
da15f79b87
|
@ -609,7 +609,7 @@ nsMenuPopupFrame::AdjustClientXYForNestedDocuments ( nsIDOMXULDocument* inPopupD
|
||||||
else
|
else
|
||||||
inPopupDoc->GetPopupNode(getter_AddRefs(targetNode));
|
inPopupDoc->GetPopupNode(getter_AddRefs(targetNode));
|
||||||
|
|
||||||
NS_WARN_IF_FALSE(targetNode, "no popup/tooltip node on document!");
|
//NS_WARN_IF_FALSE(targetNode, "no popup/tooltip node on document!");
|
||||||
nsCOMPtr<nsIContent> targetAsContent ( do_QueryInterface(targetNode) );
|
nsCOMPtr<nsIContent> targetAsContent ( do_QueryInterface(targetNode) );
|
||||||
nsCOMPtr<nsIWidget> targetDocumentWidget;
|
nsCOMPtr<nsIWidget> targetDocumentWidget;
|
||||||
if ( targetAsContent ) {
|
if ( targetAsContent ) {
|
||||||
|
@ -632,7 +632,7 @@ nsMenuPopupFrame::AdjustClientXYForNestedDocuments ( nsIDOMXULDocument* inPopupD
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
NS_WARN_IF_FALSE(targetDocumentWidget, "ACK, BAD TARGET");
|
//NS_WARN_IF_FALSE(targetDocumentWidget, "ACK, BAD TARGET");
|
||||||
|
|
||||||
// the offset we need is the difference between the upper left corner of the two widgets. Use
|
// the offset we need is the difference between the upper left corner of the two widgets. Use
|
||||||
// screen coordinates to find the global offset between them.
|
// screen coordinates to find the global offset between them.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче