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

Unified Diff: third_party/WebKit/Source/core/dom/Element.h

Issue 1449623002: IntersectionObserver: second cut. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Fix rootMargin parsing Created 5 years 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/Element.h
diff --git a/third_party/WebKit/Source/core/dom/Element.h b/third_party/WebKit/Source/core/dom/Element.h
index 5a54f02f8c593c6a5ba010bac182c45e0f6444e6..3b9bd243213c0a471f5dad6fb323e632fcb7e0d9 100644
--- a/third_party/WebKit/Source/core/dom/Element.h
+++ b/third_party/WebKit/Source/core/dom/Element.h
@@ -56,6 +56,8 @@ class ElementRareData;
class ElementShadow;
class ExceptionState;
class Image;
+class IntersectionObservation;
+class IntersectionObserver;
class IntSize;
class Locale;
class MutableStylePropertySet;
@@ -543,6 +545,13 @@ public:
SpellcheckAttributeState spellcheckAttributeState() const;
+ WeakPtrWillBeRawPtr<Element> createWeakPtr();
+
+ void addIntersectionObservation(IntersectionObservation&);
+ void removeIntersectionObservation(IntersectionObservation&);
+
+ bool computeIntersection(Element*, LayoutRect&, LayoutRect&, LayoutRect&);
+
protected:
Element(const QualifiedName& tagName, Document*, ConstructionType);

Powered by Google App Engine
This is Rietveld 408576698