Skip to content

Commit

Permalink
Bug 1067728 - Part 3 - Expose FindNearestCommonAncestorFrame. r=roc
Browse files Browse the repository at this point in the history
  • Loading branch information
aethanyc committed Dec 10, 2014
1 parent 048aed1 commit 9ce9133
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layout/base/nsLayoutUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 7 additions & 0 deletions layout/base/nsLayoutUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,13 @@ class nsLayoutUtils
*/
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)
Expand Down

0 comments on commit 9ce9133

Please sign in to comment.