Closed Bug 998535 Opened 10 years ago Closed 10 years ago

Implement layout of block padding for box-decoration-break:clone

Categories

(Core :: Layout: Block and Inline, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla32

People

(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)

References

Details

Attachments

(7 files)

      No description provided.
Attached file testcase
GetConsumedHeight()/GetEffectiveComputedHeight() makes the assumption that
only the first-in-flow has top border+padding and that later continuations
has no vertical border+padding.  This is obviously wrong for b-d-b:clone.
We need to use GetContentRectRelativeToSelf here instead which uses
GetSkipSides internally.

This change is idempotent for b-d-b:slice, but may break some b-d-b:clone
tests that depend on this bug; I'll fix those tests in a later patch here.
I've pushed this part only to verify that:
https://tbpl.mozilla.org/?usebuildbot=1&tree=Try&rev=0bda084c7f4a
Attachment #8409367 - Flags: review?(cam)
nsBlockReflowState also had a few assumptions that are wrong for b-d-b:clone.
Attachment #8409368 - Flags: review?(cam)
Comment on attachment 8409367 [details] [diff] [review]
part 0, Fix ConsumedHeight calculations so that they will work also for box-decoration-break:clone.

See patch descriptions in comments above.
Attachment #8409367 - Flags: review?(cam) → review?(roc)
Attachment #8409368 - Flags: review?(cam) → review?(roc)
Attachment #8409369 - Flags: review?(cam) → review?(roc)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: