Opened 10 years ago

Closed 10 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 10 years ago by Eugene Lazutkin

Milestone: tbd1.5
Status: newassigned

comment:2 Changed 10 years ago by Eugene Lazutkin

(In [22078]) gfx: correcting html metrics to work around Webkit bug, thx scothis, !strict, refs #11076.

comment:3 Changed 10 years ago by Eugene Lazutkin

(In [22079]) gfx: correcting html metrics to work around Webkit bug, thx scothis, !strict, refs #11076.

comment:4 Changed 10 years ago by Eugene Lazutkin

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.