summaryrefslogtreecommitdiffstats
path: root/dom/base/DOMIntersectionObserver.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-12-22 07:33:31 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-12-22 07:33:31 +0100
commit0626e1cef06081bf93ee45eab47f6520816c967f (patch)
treec96e93c6ac7e30a89694929aa12c1e2f5f0f8d5e /dom/base/DOMIntersectionObserver.cpp
parent107a68cb1d12aa6ed74e4ca414e5f05e4a92c963 (diff)
downloadUXP-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/base/DOMIntersectionObserver.cpp')
-rw-r--r--dom/base/DOMIntersectionObserver.cpp2
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) {