| Index: third_party/WebKit/Source/core/style/ComputedStyleConstants.h
|
| diff --git a/third_party/WebKit/Source/core/style/ComputedStyleConstants.h b/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
|
| index ae5e07ab75492cd45695103badfe4ee9dfcc8ab3..8fd1c06fde2231811e7bfa36daa6441909dbd773 100644
|
| --- a/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
|
| +++ b/third_party/WebKit/Source/core/style/ComputedStyleConstants.h
|
| @@ -499,6 +499,16 @@ enum ScrollSnapType {
|
|
|
| enum AutoRepeatType { kNoAutoRepeat, kAutoFill, kAutoFit };
|
|
|
| +// In order to conserve memory, the border width uses fixed point,
|
| +// which can be bitpacked. This fixed point implementation is
|
| +// essentially the same as in LayoutUnit. Six bits are used for the
|
| +// fraction, which leaves 20 bits for the integer part, making 1048575
|
| +// the largest number.
|
| +
|
| +static const int kBorderWidthFractionalBits = 6;
|
| +static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits;
|
| +static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator;
|
| +
|
| } // namespace blink
|
|
|
| #endif // ComputedStyleConstants_h
|
|
|