зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1193762 part 6 - Return raw pointer, not nsCOMPtr; r=froydnj
This could alternatively have been fixed by changing AccessibleCaret::CaretElement to return an nsCOMPtr instead of a raw pointer, but I chose to change this in the other direction instead, to match the accepted convention.
This commit is contained in:
Родитель
161a269dc0
Коммит
931f67e573
|
@ -29,7 +29,7 @@ AnonymousContent::~AnonymousContent()
|
|||
{
|
||||
}
|
||||
|
||||
nsCOMPtr<Element>
|
||||
Element*
|
||||
AnonymousContent::GetContentNode()
|
||||
{
|
||||
return mContentNode;
|
||||
|
|
|
@ -25,7 +25,7 @@ public:
|
|||
NS_DECL_CYCLE_COLLECTION_NATIVE_CLASS(AnonymousContent)
|
||||
|
||||
explicit AnonymousContent(Element* aContentNode);
|
||||
nsCOMPtr<Element> GetContentNode();
|
||||
Element* GetContentNode();
|
||||
void SetContentNode(Element* aContentNode);
|
||||
bool WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче