diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-12-22 07:33:31 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-12-22 07:33:31 +0100 |
commit | 0626e1cef06081bf93ee45eab47f6520816c967f (patch) | |
tree | c96e93c6ac7e30a89694929aa12c1e2f5f0f8d5e /dom | |
parent | 107a68cb1d12aa6ed74e4ca414e5f05e4a92c963 (diff) | |
download | UXP-0626e1cef06081bf93ee45eab47f6520816c967f.tar UXP-0626e1cef06081bf93ee45eab47f6520816c967f.tar.gz UXP-0626e1cef06081bf93ee45eab47f6520816c967f.tar.lz UXP-0626e1cef06081bf93ee45eab47f6520816c967f.tar.xz UXP-0626e1cef06081bf93ee45eab47f6520816c967f.zip |
Use targetFrame->GetRectRelativeToSelf() as the initial intersection rect.
Tag #249.
Diffstat (limited to 'dom')
-rw-r--r-- | dom/base/DOMIntersectionObserver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/base/DOMIntersectionObserver.cpp b/dom/base/DOMIntersectionObserver.cpp index 0834bc05c..f0be34ec0 100644 --- a/dom/base/DOMIntersectionObserver.cpp +++ b/dom/base/DOMIntersectionObserver.cpp @@ -344,7 +344,7 @@ DOMIntersectionObserver::Update(nsIDocument* aDocument, DOMHighResTimeStamp time nsLayoutUtils::GetContainingBlockForClientRect(targetFrame), nsLayoutUtils::RECTS_ACCOUNT_FOR_TRANSFORMS ); - intersectionRect = Some(targetFrame->GetVisualOverflowRect()); + intersectionRect = Some(targetFrame->GetRectRelativeToSelf()); nsIFrame* containerFrame = nsLayoutUtils::GetCrossDocParentFrame(targetFrame); while (containerFrame && containerFrame != rootFrame) { |