mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +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*
|
||||
FindNearestCommonAncestorFrame(nsIFrame* aFrame1, nsIFrame* aFrame2)
|
||||
nsIFrame*
|
||||
nsLayoutUtils::FindNearestCommonAncestorFrame(nsIFrame* aFrame1, nsIFrame* aFrame2)
|
||||
{
|
||||
nsAutoTArray<nsIFrame*,100> ancestors1;
|
||||
nsAutoTArray<nsIFrame*,100> ancestors2;
|
||||
|
@ -794,6 +794,13 @@ public:
|
||||
*/
|
||||
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
|
||||
* account all relevant transformations on the frames up to (but excluding)
|
||||
|
Loading…
x
Reference in New Issue
Block a user