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

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

Issue 2825343003: Clean compositing inputs for location APIs for sticky-affected elements. (Closed)
Patch Set: Created 3 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/Element.h
diff --git a/third_party/WebKit/Source/core/dom/Element.h b/third_party/WebKit/Source/core/dom/Element.h
index 732a418bc8b010999b9489897b639eb9c439ef16..aa8915fa6a456ee42afbf999ca33854d60a9fd34 100644
--- a/third_party/WebKit/Source/core/dom/Element.h
+++ b/third_party/WebKit/Source/core/dom/Element.h
@@ -847,6 +847,10 @@ class CORE_EXPORT Element : public ContainerNode {
virtual void ParserDidSetAttributes() {}
+ // Helper method which ensures that the lifecycle is valid to calculate
+ // location based APIs such as offsetTop.
+ void EnsureLifecycleValidForLocationAPIs();
+
private:
void ScrollLayoutBoxBy(const ScrollToOptions&);
void ScrollLayoutBoxTo(const ScrollToOptions&);

Powered by Google App Engine
This is Rietveld 408576698