DescriptionSplit StyleSurroundData::padding into four individual Lengths.
In StyleSurroundData, the padding longhand properties are stored in a
single LengthBox. This makes it difficult to generate because the
generator assumes that properties don't share storage.
This patch splits the LengthBox padding into four Lengths:
padding_{left/right/top/bottom}. This enables us to generate
the padding properties properly.
This patch also adds PaddingEqual helper functions to check if two
margins have the same value and changes the callsites to
ComputedStyle::Padding() to cater for the fact that the LengthBox has
been broken into its individual Length components.
BUG=628043
Review-Url: https://codereview.chromium.org/2834603003
Cr-Commit-Position: refs/heads/master@{#466582}
Committed: https://chromium.googlesource.com/chromium/src/+/7d5e129a2deae3313aa912575ff90faba8583b61
Patch Set 1 #
Total comments: 9
Patch Set 2 : Change ThemeMac #Patch Set 3 : Change ThemeMac #Patch Set 4 : Split StyleSurroundData::padding into four individual Lengths. #Messages
Total messages: 45 (29 generated)
|