mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Bug 1067728 - Part 3 - Expose FindNearestCommonAncestorFrame. r=roc
This commit is contained in:
parent
048aed18a4
commit
9ce9133a81
@ -2295,8 +2295,8 @@ nsLayoutUtils::GetTransformToAncestorScale(nsIFrame* aFrame)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static nsIFrame*
|
nsIFrame*
|
||||||
FindNearestCommonAncestorFrame(nsIFrame* aFrame1, nsIFrame* aFrame2)
|
nsLayoutUtils::FindNearestCommonAncestorFrame(nsIFrame* aFrame1, nsIFrame* aFrame2)
|
||||||
{
|
{
|
||||||
nsAutoTArray<nsIFrame*,100> ancestors1;
|
nsAutoTArray<nsIFrame*,100> ancestors1;
|
||||||
nsAutoTArray<nsIFrame*,100> ancestors2;
|
nsAutoTArray<nsIFrame*,100> ancestors2;
|
||||||
|
@ -794,6 +794,13 @@ public:
|
|||||||
*/
|
*/
|
||||||
static gfxSize GetTransformToAncestorScale(nsIFrame* aFrame);
|
static gfxSize GetTransformToAncestorScale(nsIFrame* aFrame);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find the nearest common ancestor frame for aFrame1 and aFrame2. The
|
||||||
|
* ancestor frame could be cross-doc.
|
||||||
|
*/
|
||||||
|
static nsIFrame* FindNearestCommonAncestorFrame(nsIFrame* aFrame1,
|
||||||
|
nsIFrame* aFrame2);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Transforms a list of CSSPoints from aFromFrame to aToFrame, taking into
|
* Transforms a list of CSSPoints from aFromFrame to aToFrame, taking into
|
||||||
* account all relevant transformations on the frames up to (but excluding)
|
* account all relevant transformations on the frames up to (but excluding)
|
||||||
|
Loading…
Reference in New Issue
Block a user