Summary: | [CSS Shapes] Image valued shape size and position should conform to the spec | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Hans Muller <giles_joplin> | ||||||||
Component: | CSS | Assignee: | Hans Muller <giles_joplin> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | commit-queue, esprehn+autocc, glenn, kling, kondapallykalyan, lmcliste, zalan | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Bug Depends on: | |||||||||||
Bug Blocks: | 116348 | ||||||||||
Attachments: |
|
Description
Hans Muller
2013-10-24 15:32:09 PDT
Created attachment 221886 [details] Patch Implement image valued shape-outside scaling and translation per the spec, http://dev.w3.org/csswg/css-shapes/#shapes-from-image: "The image is sized and positioned as if it were a replaced element whose specified width and height are the same as the elements used content box size." This change doesn't completely fulfill the spec, it's limited to image elements and shape-outside. Created attachment 221921 [details]
Patch
Just a cosmetic change - removed the createRasterShape() local image variable definition, since it's only used once.
Created attachment 221936 [details]
Patch
Use RenderImage instead of RenderReplaced in getImageRect() (ShapeInfo.cpp).
Comment on attachment 221936 [details]
Patch
r=me
Comment on attachment 221936 [details] Patch Clearing flags on attachment: 221936 Committed r162659: <http://trac.webkit.org/changeset/162659> All reviewed patches have been landed. Closing bug. |