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:
Aryeh Gregor 2016-05-01 21:29:23 +03:00
Родитель 161a269dc0
Коммит 931f67e573
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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);