Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Unified Diff: third_party/WebKit/Source/core/dom/IntersectionObserver.cpp

Issue 1858163002: Rename inDocument() to inShadowIncludingDocument() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/IntersectionObserver.cpp
diff --git a/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp b/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp
index c784a1c8efd22d64cf9bb9da19c9a0efbf1731e0..14f97d86709cf26e969c0c82f9bfe054091a36da 100644
--- a/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp
+++ b/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp
@@ -196,7 +196,7 @@ void IntersectionObserver::unobserve(Element* target)
void IntersectionObserver::computeIntersectionObservations()
{
- if (!m_root || !m_root->inDocument())
+ if (!m_root || !m_root->inShadowIncludingDocument())
return;
Document* callbackDocument = toDocument(m_callback->getExecutionContext());
if (!callbackDocument)

Powered by Google App Engine
This is Rietveld 408576698