Bug 109759 - getComputedStyle returns truncated value for margin-right
Summary: getComputedStyle returns truncated value for margin-right
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Emil A Eklund
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-13 15:40 PST by Emil A Eklund
Modified: 2013-02-13 17:04 PST (History)
9 users (show)

See Also:


Attachments
Patch (4.49 KB, patch)
2013-02-13 15:42 PST, Emil A Eklund
no flags Details | Formatted Diff | Diff
Patch for landing (6.25 KB, patch)
2013-02-13 16:17 PST, Emil A Eklund
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Emil A Eklund 2013-02-13 15:40:55 PST
Due to an unfortunate cast in CSSComputedStyleDeclaration::getPropertyCSSValue getComputedStyle returns truncated styles for margin-right in cases where it isn't set to a specific pixel value.
Comment 1 Emil A Eklund 2013-02-13 15:42:16 PST
Created attachment 188200 [details]
Patch
Comment 2 Emil A Eklund 2013-02-13 16:04:00 PST
Comment on attachment 188200 [details]
Patch

Thanks Tony!
Comment 3 Emil A Eklund 2013-02-13 16:17:15 PST
Created attachment 188211 [details]
Patch for landing
Comment 4 WebKit Review Bot 2013-02-13 17:04:39 PST
Comment on attachment 188211 [details]
Patch for landing

Clearing flags on attachment: 188211

Committed r142824: <http://trac.webkit.org/changeset/142824>
Comment 5 WebKit Review Bot 2013-02-13 17:04:46 PST
All reviewed patches have been landed.  Closing bug.