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

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: Refactor clipping code 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 461c72d39c1d354e8769c1dd9f3a3341dd96e390..ef6dfb69618d5909d10af8c37229a9bdfd1d8c40 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;
@@ -537,6 +539,13 @@ public:
SpellcheckAttributeState spellcheckAttributeState() const;
+ WeakPtrWillBeRawPtr<Element> createWeakPtr();
+
+ void addIntersectionObservation(IntersectionObservation&);
+ void removeIntersectionObservation(IntersectionObservation&);
+
+ bool computeIntersection(Element*, LayoutRect&, LayoutRect&, LayoutRect&);
esprehn 2015/12/12 00:14:12 const, also const Element* hopefully.
szager1 2015/12/16 19:15:33 This method has been refactored out.
+
protected:
Element(const QualifiedName& tagName, Document*, ConstructionType);
@@ -671,6 +680,9 @@ private:
bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const QualifiedName&, const AtomicString&);
+ bool computeElementIntersection(Element*, LayoutRect&, LayoutRect&);
+ Element* computeFrameIntersection(LayoutRect&, LayoutRect&);
+
ElementRareData* elementRareData() const;
ElementRareData& ensureElementRareData();
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698