Bug 26613
Summary: | [Qt] Severe performance degradation when using "float:" CSS properties | ||
---|---|---|---|
Product: | WebKit | Reporter: | Gustavo Carvalho <gcarvalho.pt> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Major | CC: | hausmann, kent.hansen |
Priority: | P2 | Keywords: | Qt |
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | OS X 10.5 |
Gustavo Carvalho
NOTE: I'm using Qt's main trunk version from their git repository (Not sure what webkit version it is).
When I have over 100 DIV's, each with text and images, if a lot of the elements within those DIV's are positioned by using "float", selecting text can take up to 5 seconds. Removing the float property causes selection to be instantaneous, even with thousands of DIV's. A quick ( not very scientific ) test with Safari 3 and 4 revealed no such degradation.
How to repoduce:
Load a file with a few hundred DIV's. Each DIV should have a <p> with text and an <img> with a small image ( it can be the same in all DIV's). The <img> should have a class (Let's call it "testicon" )
In the CSS set ".texticon { float:left }". Load the file and try to select some text. I get a 3 to 5 second delay with 200 DIV's, on a black macbook. Removing the float restores the performance to the expected level, no degradation with up to thousands of DIV's.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Simon Hausmann
Could you attach a testcase of yours that makes it easier for us to reproduce/verify this issue?
Kent Hansen
Closing this since we don't have a testcase.