haikuwebkit/LayoutTests/compositing/layer-creation/fixed-position-no-content-s...

38 lines
757 B
HTML
Raw Permalink Normal View History

Non-paintsContent fixed position layer should not cause slow scrolling https://bugs.webkit.org/show_bug.cgi?id=113238 Reviewed by James Robinson. Source/WebCore: Added NotCompositedForNoVisibleContent in ViewportConstrainedNotCompositedReason and set it in RLC. Test: compositing/layer-creation/fixed-position-no-content-scroll-reason.html * rendering/RenderLayer.h: Add NotCompositedForNoVisibleContent. * rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::requiresCompositingForPosition): Set NotCompositedForNoVisibleContent reason when the fixed position layer has no visible content. LayoutTests: * compositing/layer-creation/fixed-position-no-content-scroll-reason-expected.txt: Added. * compositing/layer-creation/fixed-position-no-content-scroll-reason.html: Copied from LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scroll-reason.html. Test case for the bug. * compositing/layer-creation/fixed-position-in-view-dynamic.html: Set background of fixed layer to distinguish out-of-view case from no-content case. * compositing/layer-creation/fixed-position-out-of-view-dynamic.html: Ditto. * compositing/layer-creation/fixed-position-out-of-view-scroll-reason.html: Ditto. * platform/chromium/compositing/layer-creation/fixed-position-in-view-dynamic-expected.txt: Removed. This was a wrong rebaseline related to this bug. * platform/chromium/platform/chromium/virtual/softwarecompositing/layer-creation/fixed-position-in-view-dynamic-expected.txt: Removed. This was a wrong rebaseline related to this bug. Canonical link: https://commits.webkit.org/131686@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@146940 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-03-26 22:12:00 +00:00
<!DOCTYPE html>
<html>
<head>
<style>
.fixed {
position: fixed;
width: 50px;
height: 50px;
top: 10px;
left: 10px;
z-index: -1;
}
</style>
<script type="text/javascript">
if (window.internals)
window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
if (window.testRunner) {
testRunner.dumpAsText();
window.addEventListener("load", function() {
document.getElementById("synchronousScrollingReasons").innerText = window.internals.synchronousScrollingReasons();
Non-paintsContent fixed position layer should not cause slow scrolling https://bugs.webkit.org/show_bug.cgi?id=113238 Reviewed by James Robinson. Source/WebCore: Added NotCompositedForNoVisibleContent in ViewportConstrainedNotCompositedReason and set it in RLC. Test: compositing/layer-creation/fixed-position-no-content-scroll-reason.html * rendering/RenderLayer.h: Add NotCompositedForNoVisibleContent. * rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::requiresCompositingForPosition): Set NotCompositedForNoVisibleContent reason when the fixed position layer has no visible content. LayoutTests: * compositing/layer-creation/fixed-position-no-content-scroll-reason-expected.txt: Added. * compositing/layer-creation/fixed-position-no-content-scroll-reason.html: Copied from LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scroll-reason.html. Test case for the bug. * compositing/layer-creation/fixed-position-in-view-dynamic.html: Set background of fixed layer to distinguish out-of-view case from no-content case. * compositing/layer-creation/fixed-position-out-of-view-dynamic.html: Ditto. * compositing/layer-creation/fixed-position-out-of-view-scroll-reason.html: Ditto. * platform/chromium/compositing/layer-creation/fixed-position-in-view-dynamic-expected.txt: Removed. This was a wrong rebaseline related to this bug. * platform/chromium/platform/chromium/virtual/softwarecompositing/layer-creation/fixed-position-in-view-dynamic-expected.txt: Removed. This was a wrong rebaseline related to this bug. Canonical link: https://commits.webkit.org/131686@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@146940 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-03-26 22:12:00 +00:00
}, false);
}
</script>
</head>
<body>
<div style="height: 1000px">
Synchronous scrolling reasons should be blank:
<pre id="synchronousScrollingReasons"></pre>
Non-paintsContent fixed position layer should not cause slow scrolling https://bugs.webkit.org/show_bug.cgi?id=113238 Reviewed by James Robinson. Source/WebCore: Added NotCompositedForNoVisibleContent in ViewportConstrainedNotCompositedReason and set it in RLC. Test: compositing/layer-creation/fixed-position-no-content-scroll-reason.html * rendering/RenderLayer.h: Add NotCompositedForNoVisibleContent. * rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::requiresCompositingForPosition): Set NotCompositedForNoVisibleContent reason when the fixed position layer has no visible content. LayoutTests: * compositing/layer-creation/fixed-position-no-content-scroll-reason-expected.txt: Added. * compositing/layer-creation/fixed-position-no-content-scroll-reason.html: Copied from LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scroll-reason.html. Test case for the bug. * compositing/layer-creation/fixed-position-in-view-dynamic.html: Set background of fixed layer to distinguish out-of-view case from no-content case. * compositing/layer-creation/fixed-position-out-of-view-dynamic.html: Ditto. * compositing/layer-creation/fixed-position-out-of-view-scroll-reason.html: Ditto. * platform/chromium/compositing/layer-creation/fixed-position-in-view-dynamic-expected.txt: Removed. This was a wrong rebaseline related to this bug. * platform/chromium/platform/chromium/virtual/softwarecompositing/layer-creation/fixed-position-in-view-dynamic-expected.txt: Removed. This was a wrong rebaseline related to this bug. Canonical link: https://commits.webkit.org/131686@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@146940 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-03-26 22:12:00 +00:00
</div>
<div class="fixed"></div>
</body>
</html>