Opened 11 years ago
Closed 11 years ago
#11076 closed defect (fixed)
[ccla][patch] GFX performance degradation on WebKit
Reported by: | Scott Andrews | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | high | Milestone: | 1.5 |
Component: | DojoX GFX | Version: | 1.4.2 |
Keywords: | webkit, gfx, border-style, border-color | Cc: | |
Blocked By: | Blocking: |
Description
dojox.gfx._base._getTextBox uses a DOM node positioned off screen to calculate font sizes. Over time with WebKit? browsers, the style attribute of the node becomes excessively large with repeated redefinition of "border-style: initial; border-color: initial;" with a duplicate entry for every invocation of the function.
Verified with Dojo 1.4.2.
A simple work around is to set the borderWidth property instead of border. For example: if(dojo.isWebKit){
s.borderWidth = "0";
}else{
s.border = "0";
}
WebKit? issue: https://bugs.webkit.org/show_bug.cgi?id=38442
Change History (4)
comment:1 Changed 11 years ago by
Milestone: | tbd → 1.5 |
---|---|
Status: | new → assigned |
comment:2 Changed 11 years ago by
comment:3 Changed 11 years ago by
comment:4 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
(In [22078]) gfx: correcting html metrics to work around Webkit bug, thx scothis, !strict, refs #11076.