Summary: | Padding applied twice for empty generated RenderInlines | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Emil A Eklund <eae> | ||||
Component: | Layout and Rendering | Assignee: | Emil A Eklund <eae> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | abarth, eric, esprehn+autocc, jchaffraix, ojan.autocc, webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Emil A Eklund
2013-04-02 09:49:14 PDT
Created attachment 196168 [details]
Patch
Comment on attachment 196168 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=196168&action=review > Source/WebCore/rendering/RenderBlockLineLayout.cpp:325 > + if (!isEmptyInline(parentAsRenderInline)) { So if it's empty, where does the border/padding/margin get added? (In reply to comment #2) > (From update of attachment 196168 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=196168&action=review > > > Source/WebCore/rendering/RenderBlockLineLayout.cpp:325 > > + if (!isEmptyInline(parentAsRenderInline)) { > > So if it's empty, where does the border/padding/margin get added? To the RenderInline instead of the child RenderText Comment on attachment 196168 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=196168&action=review LGTM. > LayoutTests/fast/css-generated-content/margin-empty-content-expected.html:5 > + ul { > + list-style-type: none; Lookit all the whitespace! Comment on attachment 196168 [details] Patch Clearing flags on attachment: 196168 Committed r147505: <http://trac.webkit.org/changeset/147505> All reviewed patches have been landed. Closing bug. |