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

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

Issue 2825343003: Clean compositing inputs for location APIs for sticky-affected elements. (Closed)
Patch Set: First pass addressing reviewer comments 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/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index 9b0ab6e6ced219e4f512f65ba15156b7e9a98393..42d4d30d7836df4ae0e6b93008eef33cf3155d24 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -513,6 +513,10 @@ class CORE_EXPORT Document : public ContainerNode,
PassRefPtr<ComputedStyle> StyleForElementIgnoringPendingStylesheets(Element*);
PassRefPtr<ComputedStyle> StyleForPage(int page_index);
+ // Ensure that the document lifecycle is in a valid state to call
+ // location-based APIs on a given node, advancing the lifecycle if not.
+ void EnsureLifecycleValidForLocationAPIsForNode(const Node*);
+
// Returns true if page box (margin boxes and page borders) is visible.
bool IsPageBoxVisible(int page_index);

Powered by Google App Engine
This is Rietveld 408576698