Handle nested position:sticky elements correctly (main thread)
In order to correctly calculate the sticky offset for nested sticky, we
must track the accumulated sticky offset from our ancestor sticky
elements. This accumulation must then be used to adjust the location of
the two constraint rects.
This patch fixed nested position: sticky only for the main thread side.
A compositor fix will follow in a later patch. To ensure that nested
sticky behaves properly in the meantime, we also disallow compositing of
sticky elements if nesting is detected.
BUG=
672710
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Review-Url:
https://codereview.chromium.org/2708883005
Cr-Commit-Position: refs/heads/master@{#452944}
Committed:
https://chromium.googlesource.com/chromium/src/+/b693f94a81551da0334f9fb297813e617d9539c0