mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
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:
parent
02389a3aba
commit
459c649699
@ -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)
|
||||
{
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user