mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
90bbf4505c
When comparing a Maybe<WrScrollId> to another WrScrollId we need to properly handle the case where Nothing() signifies the root scroll frame. This is equivalent to calling scrollId.valueOr(FrameMetrics::NULL_SCROLL_ID), as was done before WrScrolLId replaced ViewId in the WebRender ScrollingLayersHelper. We also have DisplayListBuilder::TopmostScrollId always return a value instead of a Maybe, since an empty clip stack means that the current scroll id is that of the root scroll frame. Previously Nothing() was not equivalent to WrScrollId { 0 }, which caused the ScrollingLayersHelper to fill the mClipAndScroll value and push another set of clip and scroll nodes onto the WebRender display list builder. MozReview-Commit-ID: CeatZlRXtuI
27 lines
417 B
HTML
27 lines
417 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
#header {
|
|
position: fixed;
|
|
}
|
|
#green {
|
|
position: absolute;
|
|
background: green;
|
|
border-radius: 1px;
|
|
transform: translateX(100px);
|
|
}
|
|
#text {
|
|
visibility: hidden;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="header">
|
|
<div id="green"><span id="text">Text.</span></div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|