mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
DeCOMify GetParent/GetBindingParent/GetDocument on nsIContent. Bug 213823,
r+sr=jst
This commit is contained in:
parent
3089eb2c8a
commit
947cbde304
@ -316,11 +316,8 @@ inDOMView::GetCellProperties(PRInt32 row, const PRUnichar *colID, nsISupportsArr
|
||||
if (!node) return NS_ERROR_FAILURE;
|
||||
|
||||
nsCOMPtr<nsIContent> content = do_QueryInterface(node->node);
|
||||
if (content) {
|
||||
nsCOMPtr<nsIContent> bparent;
|
||||
content->GetBindingParent(getter_AddRefs(bparent));
|
||||
if (bparent)
|
||||
properties->AppendElement(kAnonymousAtom);
|
||||
if (content && content->GetBindingParent()) {
|
||||
properties->AppendElement(kAnonymousAtom);
|
||||
}
|
||||
|
||||
PRUint16 nodeType;
|
||||
|
@ -174,8 +174,7 @@ inLayoutUtils::GetScreenOrigin(nsIDOMElement* aElement)
|
||||
nsRect* rect = new nsRect(0,0,0,0);
|
||||
|
||||
nsCOMPtr<nsIContent> content = do_QueryInterface(aElement);
|
||||
nsCOMPtr<nsIDocument> doc;
|
||||
content->GetDocument(getter_AddRefs(doc));
|
||||
nsCOMPtr<nsIDocument> doc = content->GetDocument();
|
||||
|
||||
if (doc) {
|
||||
// Get Presentation shell 0
|
||||
@ -260,8 +259,7 @@ inLayoutUtils::GetSubDocumentFor(nsIDOMNode* aNode)
|
||||
{
|
||||
nsCOMPtr<nsIContent> content = do_QueryInterface(aNode);
|
||||
if (content) {
|
||||
nsCOMPtr<nsIDocument> doc;
|
||||
content->GetDocument(getter_AddRefs(doc));
|
||||
nsCOMPtr<nsIDocument> doc = content->GetDocument();
|
||||
if (doc) {
|
||||
nsCOMPtr<nsIDocument> sub_doc;
|
||||
doc->GetSubDocumentFor(content, getter_AddRefs(sub_doc));
|
||||
|
Loading…
Reference in New Issue
Block a user