DescriptionPass the correct BorderWidth value when creating BorderValues
This patch fixes two bugs introduced by me when splitting up
border-*-{width,style} out of BorderValue.
1. When creating a BorderValue to pass to layout code in ComputedStyle
via Border{Left,Right,Bottom,Top,Start,End}() we should be creating
these using Border*WidthInternal getters and not the public Border*Width
getters as that is what the code did before and the public getters
return a 0 width in case the Border*Style is none or hidden. This issue
wasn't discovered due to the fact that there were no unit/layout tests.
This patch adds these tests.
Future work will be to wrap all the float <-> unsigned conversions in a
class of its own.
https: //codereview.chromium.org/2890733002. I mistakenly swapped a
Review-Url: https://codereview.chromium.org/2895933004
Cr-Commit-Position: refs/heads/master@{#473836}
Committed: https://chromium.googlesource.com/chromium/src/+/3363d5074a1b4579a8ccc9ddd1e52f99489719fe
Patch Set 1 #Patch Set 2 : add computedstyle unit tes #
Total comments: 2
Dependent Patchsets: Messages
Total messages: 17 (11 generated)
|