| Summary: | new image style padding fails | ||
|---|---|---|---|
| Product: | [Applications] konqueror | Reporter: | Sebastian Werner <sw> |
| Component: | khtml ecma | Assignee: | Konqueror Bugs <konqueror-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | maksim |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
SVN commit 444388 by orlovich: Use HTMLImageElement for the JS Image class like other browsers do. Fixes #64702, #77085, and let's a hack for event sources to be removed. Based heavily on the patch to Apple WebCore by Anders Carlsson <andersca at mac.com> Also merged in handling of width, height parameters to Image from WC while I was at it. To support this, completed, width, height, in HTMLImageElementImpl adjusted to work well when not attached. Testcases upcoming. BUG:64072 BUG:77085 M +0 -5 dom/dom2_events.h M +3 -9 ecma/kjs_events.cpp M +1 -3 ecma/kjs_events.h M +21 -104 ecma/kjs_html.cpp M +0 -20 ecma/kjs_html.h M +19 -6 html/html_imageimpl.cpp |
Version: (using KDE KDE 3.2.0) Installed from: Gentoo Packages Compiler: gcc 3.3 if I create a var img = new Image(); I am unable to set the style of this image. All other browser have no problems with this: img.style.padding = "1px"; If I instead create the image with: var img = document.createElement("img"); it works like charm.