Bug 6142 - intermittent failures in some paste tests
Summary: intermittent failures in some paste tests
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Darin Adler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-18 14:41 PST by Darin Adler
Modified: 2005-12-21 20:10 PST (History)
1 user (show)

See Also:


Attachments
use the more powerful flavor of updateLayout in cases that warrant it (20.68 KB, patch)
2005-12-18 14:54 PST, Darin Adler
justin.garcia: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Adler 2005-12-18 14:41:37 PST
I tracked down some intermittent failures in some paste-related tests to the fact that the tests are running 
early, when all style is "display: none" as part of our "FOUC-prevention". There's a simple fix.
Comment 1 Darin Adler 2005-12-18 14:54:57 PST
Created attachment 5143 [details]
use the more powerful flavor of updateLayout in cases that warrant it
Comment 2 Justin Garcia 2005-12-21 01:04:53 PST
So the vanilla updateLayout() will use display:none for an element whose style depends on a pending 
stylesheet?
Comment 3 Darin Adler 2005-12-21 10:07:06 PST
Yes. See the code at the start of CSSStyleSelector::styleForElement.
Comment 4 Justin Garcia 2005-12-21 14:22:00 PST
Comment on attachment 5143 [details]
use the more powerful flavor of updateLayout in cases that warrant it

r=me