Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(35)

Unified Diff: Source/WebCore/dom/Document.h

Issue 359780043: WIP for IO
Patch Set: 22 tests pass Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | Source/WebCore/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/dom/Document.h
diff --git a/Source/WebCore/dom/Document.h b/Source/WebCore/dom/Document.h
index 87b016015f6919912aa32f6304b5d9d00fdceea1..6042e7c24f5e92e7fd0ba8b71b0ce6398327d006 100644
--- a/Source/WebCore/dom/Document.h
+++ b/Source/WebCore/dom/Document.h
@@ -235,6 +235,10 @@ class MediaSession;
class HTMLAttachmentElement;
#endif
+#if ENABLE(INTERSECTION_OBSERVER)
+class IntersectionObserver;
+#endif
+
namespace Style {
class Scope;
};
@@ -1340,6 +1344,12 @@ public:
void addViewportDependentPicture(HTMLPictureElement&);
void removeViewportDependentPicture(HTMLPictureElement&);
+#if ENABLE(INTERSECTION_OBSERVER)
+ void addToIntersectionObserverTargets(Element&);
+ void removeFromIntersectionObserverTargets(Element&);
+ void updateIntersectionObservations();
+#endif
+
#if ENABLE(MEDIA_STREAM)
void setHasCaptureMediaStreamTrack() { m_hasHadCaptureMediaStreamTrack = true; }
bool hasHadCaptureMediaStreamTrack() const { return m_hasHadCaptureMediaStreamTrack; }
@@ -1549,6 +1559,13 @@ private:
void checkViewportDependentPictures();
+#if ENABLE(INTERSECTION_OBSERVER)
+ // Return true if any need notifying.
+ bool updateIntersectionObserveration(IntersectionObserver&, double timeStamp);
+ void collectIntersectionObservers(HashSet<IntersectionObserver*>&);
+ void notifyIntersectionObserversTimerFired();
+#endif
+
#if USE(QUICK_LOOK)
bool shouldEnforceQuickLookSandbox() const;
void applyQuickLookSandbox();
@@ -1726,6 +1743,11 @@ private:
HashSet<HTMLPictureElement*> m_viewportDependentPictures;
+#if ENABLE(INTERSECTION_OBSERVER)
+ HashSet<Element*> m_intersectionObserverTargets;
+ Timer m_intersectionObserversNotifyTimer;
+#endif
+
Timer m_loadEventDelayTimer;
ViewportArguments m_viewportArguments;
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | Source/WebCore/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b