Bug 1082486 - Part 2 - Make GetCanvasFrame() returns nsCanvasFrame*. r=roc

PresShell::GetCanvasFrame() already returns nsCanvasFrame*, and it's
needed to access nsCanvasFrame's method in a later patch.
This commit is contained in:
Ting-Yu Lin 2014-10-14 03:07:00 +02:00
parent 521e2843ab
commit 8ebb8ad565
2 changed files with 3 additions and 2 deletions

View File

@ -113,7 +113,7 @@ TouchCaret::GetCaretFocusFrame(nsRect* aOutRect)
return frame;
}
nsIFrame*
nsCanvasFrame*
TouchCaret::GetCanvasFrame()
{
nsCOMPtr<nsIPresShell> presShell = do_QueryReferent(mPresShell);

View File

@ -15,6 +15,7 @@
#include "mozilla/TouchEvents.h"
#include "Units.h"
class nsCanvasFrame;
class nsIFrame;
class nsIPresShell;
@ -84,7 +85,7 @@ private:
/**
* Find the nsCanvasFrame which holds the touch caret.
*/
nsIFrame* GetCanvasFrame();
nsCanvasFrame* GetCanvasFrame();
/**
* Retrieve the bounding rectangle of the touch caret.