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

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 intermediate sticky in StickySubtreesAreTrackedCorrectly test 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/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index c6033b5c88d6be9c45320c2ed0013d840fb9b8b5..2be75b5ebd13e5ddd505f809d88e55f572cc40df 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1480,6 +1480,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