зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1697890 - Use IsRootContentDocumentCrossProcess in ScrollbarAreaToExcludeFromCompositionBoundsFor. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D108143
This commit is contained in:
Родитель
801cf30e07
Коммит
f048161880
|
@ -7943,7 +7943,7 @@ nsMargin nsLayoutUtils::ScrollbarAreaToExcludeFromCompositionBoundsFor(
|
|||
}
|
||||
bool isRootScrollFrame = aScrollFrame == presShell->GetRootScrollFrame();
|
||||
bool isRootContentDocRootScrollFrame =
|
||||
isRootScrollFrame && presContext->IsRootContentDocument();
|
||||
isRootScrollFrame && presContext->IsRootContentDocumentCrossProcess();
|
||||
if (!isRootContentDocRootScrollFrame) {
|
||||
return nsMargin();
|
||||
}
|
||||
|
|
|
@ -100,3 +100,4 @@ fuzzy(0-1,0-2) fuzzy-if(asyncPan&&!layersGPUAccelerated,0-102,0-2420) fuzzy-if(g
|
|||
== propagated-overflow-style-2e.html propagated-overflow-style-2-ref.html
|
||||
|
||||
fuzzy-if(Android,54-54,8-8) == xul-scrollbar-iterate.html xul-scrollbar-iterate-ref.html
|
||||
== scrollbars-area-in-iframe.html scrollbars-area-in-iframe-ref.html
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<meta charset='utf-8'>
|
||||
<style>
|
||||
html {
|
||||
border: 5px solid lime;
|
||||
height: 100vh;
|
||||
box-sizing: border-box;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
</style>
|
||||
</html>
|
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<iframe style="width:300px; height:300px; border:2px solid blue"
|
||||
src="scrollbars-area-in-iframe-ref-child.html">
|
||||
</html>
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<iframe style="width:300px; height:300px; border:2px solid blue"
|
||||
src="data:text/html,<!DOCTYPE HTML>
|
||||
<html>
|
||||
<meta charset='utf-8'>
|
||||
<style>
|
||||
html {
|
||||
border: 5px solid lime;
|
||||
height: 100vh;
|
||||
box-sizing: border-box;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
</style>"></iframe>
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче