Bug 26031 - InputElement still uses more memory than needed
Summary: InputElement still uses more memory than needed
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nikolas Zimmermann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-26 14:50 PDT by Nikolas Zimmermann
Modified: 2009-05-27 05:25 PDT (History)
1 user (show)

See Also:


Attachments
Initial patch (27.01 KB, patch)
2009-05-26 15:02 PDT, Nikolas Zimmermann
staikos: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolas Zimmermann 2009-05-26 14:50:11 PDT
Instead of storing Element and InputElement pointers in InputElementData these pointers can just be provided by the callee of the static functions. No need to waste memory for that.

OptionElement/ScriptElement/.. have the same problem. I'm going to fix them all.
Comment 1 Nikolas Zimmermann 2009-05-26 15:02:28 PDT
Created attachment 30684 [details]
Initial patch

No regressions.
Comment 2 Nikolas Zimmermann 2009-05-27 05:25:51 PDT
Landed in r44187.