layout/reftests/css-grid/grid-fragmentation-dyn3-009.html
author James Teh <jteh@mozilla.com>
Wed, 01 Feb 2023 05:02:01 +0000
changeset 651150 dd0fdd1daa69783be36acd5c50544f3694eaa8f9
parent 288318 552aabbcd11631edd38087a55e8730db1384bdfc
permissions -rw-r--r--
Bug 1813980: Check IsDoc before Parent in RemoteAccessibleBase::ApplyCrossDocOffset. r=morgan We call this function on every ancestor when calculating bounds. RemoteParent() currently requires a hash lookup, so it's more efficient to early return for !IsDoc() first. This is a micro-optimisation, but it might have some impact given that we call this on every ancestor, especially when hit testing, where we call Bounds() a lot. As a bit of drive-by cleanup, use RemoteParent() rather than calling Parent() and IsRemote/AsRemote(). Differential Revision: https://phabricator.services.mozilla.com/D168346

<!DOCTYPE HTML>
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<html class="reftest-wait"><head>
  <meta charset="utf-8">
  <title>CSS Grid Test: test 009 dynamic remove/insert second item</title>
  <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1144096">
  <link rel="help" href="https://drafts.csswg.org/css-grid/#pagination">
  <link rel="match" href="grid-fragmentation-009-ref.html">

<script src="support/dyn.js"></script>
<script>
function runTest(text) {
  document.body.innerHTML = text;
  dyn3('.grid');
  document.documentElement.removeAttribute("class");
}
</script>

</head>
<body onload='dynamicTest("grid-fragmentation-009.html", runTest)'></body>
</html>