Bug 1251519 Part 2 - Remove nsLayoutUtils::IsRectVisibleInScrollFrames(). r=mats

nsLayoutUtils::IsRectVisibleInScrollFrames() was used only by
SelectionCarets which was removed in bug 1221459.

MozReview-Commit-ID: 4dQAq1umHY7

--HG--
extra : rebase_source : 9c35effc9ac44bb9de5df1e4ddfc0d32edcfb9c9
This commit is contained in:
Ting-Yu Lin 2016-03-10 17:38:31 +08:00
parent 02389a3aba
commit 459c649699
2 changed files with 0 additions and 13 deletions

View File

@ -2676,12 +2676,6 @@ nsLayoutUtils::ContainsPoint(const nsRect& aRect, const nsPoint& aPoint,
return rect.Contains(aPoint);
}
bool
nsLayoutUtils::IsRectVisibleInScrollFrames(nsIFrame* aFrame, const nsRect& aRect)
{
return !ClampRectToScrollFrames(aFrame, aRect).IsEmpty();
}
nsRect
nsLayoutUtils::ClampRectToScrollFrames(nsIFrame* aFrame, const nsRect& aRect)
{

View File

@ -890,13 +890,6 @@ public:
static bool ContainsPoint(const nsRect& aRect, const nsPoint& aPoint,
nscoord aInflateSize);
/**
* Check whether aRect is visible in the boundary of the scroll frames
* boundary.
*/
static bool IsRectVisibleInScrollFrames(nsIFrame* aFrame,
const nsRect& aRect);
/**
* Clamp aRect relative to aFrame to the scroll frames boundary searching from
* aFrame.