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

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: Rebase Created 3 years, 7 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 04d7cdcdbc9c1b6652df120a152158b1a2b5b80d..0276381d9115b9a6cb5ed0c44bf19074e06cc3f3 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -514,6 +514,16 @@ class CORE_EXPORT Document : public ContainerNode,
PassRefPtr<ComputedStyle> StyleForElementIgnoringPendingStylesheets(Element*);
PassRefPtr<ComputedStyle> StyleForPage(int page_index);
+ // Ensures that location-based data will be valid for a given node.
+ //
+ // This will run style and layout if they are currently dirty, and it may also
+ // run compositing inputs if the node is in a sticky subtree (as the sticky
+ // offset may change the node's position).
+ //
+ // Due to this you should only call this if you definitely need valid location
+ // data, otherwise use one of the |UpdateStyleAndLayout...| methods above.
+ void EnsurePaintLocationDataValidForNode(const Node*);
+
// Returns true if page box (margin boxes and page borders) is visible.
bool IsPageBoxVisible(int page_index);
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698