mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
43fb101b11
- Bug 1145017. Use the new proto setup for custom element prototypes when possible. r=wchen,bholley (67789348c)
- Bug 1183450, properly wrappercache URL object, r=baku (ce6ef8436)
- space cleanup (2de44c12c)
- Bug 1155477 - Convert nsINode::Slots::mChildNodes to an nsRefPtr; r=baku (721d52f31)
- Bug 1156009 - Mark nsChildContentList::mNode as MOZ_NON_OWNING_REF; r=baku (acaba6531)
- remaining of 1155477 (d1dc03fc0)
- spacing like gecko, even if bad (7ff16eeae)
- Bug 1155475 - Mark nsINode::Slots::mWeakReference as MOZ_NON_OWNING_REF; r=baku (59b241ae6)
- Bug 1156011 - Mark nsINode::mFirstChild as MOZ_NON_OWNING_REF; r=baku (5255acaa5)
- Bug 1156013 - Mark nsINode::mSubtreeRoot as MOZ_NON_OWNING_REF; r=baku (4da7e61cf)
- Bug 1156012 - Mark nsINode::m{Next,Previous}Sibling as MOZ_NON_OWNING_REF; r=baku (33022b4e0)
- Bug 1156010 - Mark nsINode::mParent as MOZ_OWNING_REF; r=smaug (3c975656a)
- fix typo (c06ca0d92)
- Bug 1165184 - Move nsChildContentList to its own header. r=peterv (408a2cb2e)
- Bug 1167390 - Mark nsNodeWeakReference::mNode as MOZ_NON_OWNING_REF. r=smaug (5a2ab3838)
- missing bit 1117172 part 3 (ab0b032b9)
- Bug 1184065, properly support WrapperCache on DestinationInsertionPointList, r=wchen (4afc484a7)
- missing bit of Bug 1095098 - followup - add back some static analysis attributes lost in a rebase; r=me (08d509ef7)
- Bug 1156790 - mark various nsCOMPtr_helper-esque classes as final; r=mccr8 (826d1f5ca)
65 lines
1.6 KiB
C++
65 lines
1.6 KiB
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef nsINodeList_h___
|
|
#define nsINodeList_h___
|
|
|
|
#include "nsIDOMNodeList.h"
|
|
#include "nsWrapperCache.h"
|
|
#include "nsIContent.h"
|
|
|
|
// IID for the nsINodeList interface
|
|
#define NS_INODELIST_IID \
|
|
{ 0xadb5e54c, 0x6e96, 0x4102, \
|
|
{ 0x8d, 0x40, 0xe0, 0x12, 0x3d, 0xcf, 0x48, 0x7a } }
|
|
|
|
class nsIContent;
|
|
class nsINode;
|
|
|
|
/**
|
|
* An internal interface for a reasonably fast indexOf.
|
|
*/
|
|
class nsINodeList : public nsIDOMNodeList,
|
|
public nsWrapperCache
|
|
{
|
|
public:
|
|
NS_DECLARE_STATIC_IID_ACCESSOR(NS_INODELIST_IID)
|
|
|
|
/**
|
|
* Get the index of the given node in the list. Will return -1 if the node
|
|
* is not in the list.
|
|
*/
|
|
virtual int32_t IndexOf(nsIContent* aContent) = 0;
|
|
|
|
/**
|
|
* Get the root node for this nodelist.
|
|
*/
|
|
virtual nsINode* GetParentObject() = 0;
|
|
|
|
using nsIDOMNodeList::Item;
|
|
|
|
uint32_t Length()
|
|
{
|
|
uint32_t length;
|
|
GetLength(&length);
|
|
return length;
|
|
}
|
|
virtual nsIContent* Item(uint32_t aIndex) = 0;
|
|
nsIContent* IndexedGetter(uint32_t aIndex, bool& aFound)
|
|
{
|
|
nsIContent* item = Item(aIndex);
|
|
aFound = !!item;
|
|
return item;
|
|
}
|
|
};
|
|
|
|
#define NS_NODELIST_OFFSET_AND_INTERFACE_TABLE_BEGIN(_class) \
|
|
NS_OFFSET_AND_INTERFACE_TABLE_BEGIN_AMBIGUOUS(_class, nsINodeList)
|
|
|
|
NS_DEFINE_STATIC_IID_ACCESSOR(nsINodeList, NS_INODELIST_IID)
|
|
|
|
#endif /* nsINodeList_h___ */
|