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

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: Clarify the tear-down path for observers and observations. Created 5 years, 1 month 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 b4b5cbbf086bb47984c4ae36cce8ae609a699e61..002973d2ee2fb2931e4aeff864503e13c0170f16 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;
@@ -538,6 +540,13 @@ public:
SpellcheckAttributeState spellcheckAttributeState() const;
+ WeakPtr<Element> createWeakPtr();
+
+ void addIntersectionObservation(IntersectionObservation&);
+ void removeIntersectionObservation(IntersectionObservation&);
+
+ bool computeIntersection(Element*, LayoutRect&, LayoutRect&, LayoutRect&);
+
protected:
Element(const QualifiedName& tagName, Document*, ConstructionType);
@@ -681,6 +690,8 @@ private:
void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value);
void detachAttrNodeAtIndex(Attr*, size_t index);
+ void disconnectIntersectionObservations();
+
v8::Local<v8::Object> wrapCustomElement(v8::Isolate*, v8::Local<v8::Object> creationContext);
RefPtrWillBeMember<ElementData> m_elementData;

Powered by Google App Engine
This is Rietveld 408576698