author James Teh <>
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:

     Any copyright is dedicated to the Public Domain.
<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="">
  <link rel="help" href="">
  <link rel="match" href="grid-fragmentation-009-ref.html">

<script src="support/dyn.js"></script>
function runTest(text) {
  document.body.innerHTML = text;

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