Always promote fixed and sticky positioned elements, if they
stick to a scroller.

Note that we will promote sticky-positioned elements even if the
scroller is not composited. This allows us to remove a large amount
of complex code having to do with ordering of decisions about
compositing scroll vs the sticky-positioned element.

Bug: 921242

Change-Id: I29d1ede06312325b1ee13c5b7d5d4987d7053d1e
Reviewed-on: https://chromium-review.googlesource.com/c/1407922
Commit-Queue: Chris Harrelson <chrishtr@chromium.org>
Reviewed-by: Robert Flack <flackr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#624999}
diff --git a/css/css-position/position-sticky-hyperlink-ref.html b/css/css-position/position-sticky-hyperlink-ref.html
index 74a48fb..0f8100e 100644
--- a/css/css-position/position-sticky-hyperlink-ref.html
+++ b/css/css-position/position-sticky-hyperlink-ref.html
@@ -15,6 +15,7 @@
 .positioned {
   position: relative;
   top: 100px;
+  will-change: transform;
 }
 
 .spacer {
diff --git a/css/css-position/position-sticky-hyperlink.html b/css/css-position/position-sticky-hyperlink.html
index 466876e..fc1c2fc 100644
--- a/css/css-position/position-sticky-hyperlink.html
+++ b/css/css-position/position-sticky-hyperlink.html
@@ -18,6 +18,7 @@
 .sticky {
   position: sticky;
   top: 0;
+  will-change: transform;
 }
 
 .spacer {