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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 2825343003: Clean compositing inputs for location APIs for sticky-affected elements. (Closed)
Patch Set: Add test for sticky subtrees 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/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 840807efafc28841032b7312a96c91a507dffabf..8ed444c45182d69a93dde0099d2004990e088d32 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1562,6 +1562,14 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
SET_VAR(rare_non_inherited_data_, page_size_type_, t);
}
+ // sticky subtrees
+ bool IsInStickySubtree() const {
+ return rare_inherited_data_->is_in_sticky_subtree_;
+ }
+ void SetIsInStickySubtree(bool b) {
+ SET_VAR(rare_inherited_data_, is_in_sticky_subtree_, b);
+ }
+
// Text decoration properties.
// text-decoration-line
static TextDecoration InitialTextDecoration() { return kTextDecorationNone; }

Powered by Google App Engine
This is Rietveld 408576698