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

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

Issue 2404393003: Tie scroll anchoring adjustments to frame lifecycle instead of layout. (Closed)
Patch Set: Created 4 years, 2 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 dbf24300948695646d45183b83c1007d842adeab..37f5a678ac82a3676837032340b05d63d74a6a99 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -495,6 +495,9 @@ class CORE_EXPORT Document : public ContainerNode,
void updateStyleAndLayoutTreeIgnorePendingStylesheets();
void updateStyleAndLayoutTreeForNode(const Node*);
void updateStyleAndLayout();
+ // Equivalent to updateStyleAndLayoutIgnorePendingStylesheets, plus scroll
+ // anchoring adjustments.
+ void updateScrollPosition(const Node* = nullptr);
void layoutUpdated();
enum RunPostLayoutTasks {
RunPostLayoutTasksAsyhnchronously,
@@ -502,7 +505,7 @@ class CORE_EXPORT Document : public ContainerNode,
};
void updateStyleAndLayoutIgnorePendingStylesheets(
RunPostLayoutTasks = RunPostLayoutTasksAsyhnchronously);
- void updateStyleAndLayoutIgnorePendingStylesheetsForNode(Node*);
+ void updateStyleAndLayoutIgnorePendingStylesheetsForNode(const Node*);
PassRefPtr<ComputedStyle> styleForElementIgnoringPendingStylesheets(Element*);
PassRefPtr<ComputedStyle> styleForPage(int pageIndex);

Powered by Google App Engine
This is Rietveld 408576698