mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-30 18:31:08 +00:00
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:
parent
161a269dc0
commit
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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user