[Webkit-unassigned] [Bug 9119] Calculator Dashboard widget memory usage increases rapidly

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Fri May 26 05:13:20 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=9119


ap at nypop.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Comment #4 from ap at nypop.com  2006-05-26 05:13 PDT -------
I've just finished debugging this, too, and the conclusion is correct, it is a
Calculator widget bug. 

Additionally, there is a good potential for optimization - the code tries to
pick the exact font size, but ignores any value under 14. This change results
in a significant performance improvement on my G4 (I encourage you to add this
information to the Radar report):

  element.style.fontSize = (fontSize - 0.1).toString() + "px";
+  if (fontSize < 14.1) 
+    break;

  computedStyle = document.defaultView.getComputedStyle(element,'');
  elementWidth = parseInt(computedStyle.getPropertyValue("width"));


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list