Suppress reflows before RefreshTick or FirstLoad

This fixes a bug where partially loaded content is displayed to the user
before it should be, usually before stylesheets have loaded. This commit
supresses reflows until either FirstLoad or RefreshTick, whichever comes
first.

Unfortunately, hit_test and mouse_over did not do reflows if they were
necessary, and so by suppressing the initial spurious reflows, these
methods started to panic without a display list to query. This patch
also transforms these into queries similar to the other existing
queries.
This commit is contained in:
Jack Moffitt 2016-03-01 15:09:04 -07:00
parent 056a7cf1a2
commit 2507bfb2cf
9 changed files with 91 additions and 78 deletions

View file

@ -1,5 +0,0 @@
[CaretPosition-001.htm]
type: testharness
[Element at (400, 100)]
expected: FAIL

View file

@ -1,5 +0,0 @@
[elementFromPoint-001.htm]
type: testharness
[CSSOM View - 5 - extensions to the Document interface]
expected: FAIL

View file

@ -1,20 +1,8 @@
[elementFromPosition.htm]
type: testharness
[test some point of the element: top left corner]
expected: FAIL
[test some point of the element: top line]
expected: FAIL
[test some point of the element: top right corner]
expected: FAIL
[test some point of the element: left line]
expected: FAIL
[test some point of the element: inside]
expected: FAIL
[test some point of the element: right line]
expected: FAIL