| Index: third_party/WebKit/Source/core/layout/CollapsedBorderValue.h
|
| diff --git a/third_party/WebKit/Source/core/layout/CollapsedBorderValue.h b/third_party/WebKit/Source/core/layout/CollapsedBorderValue.h
|
| index 74c55752ee67dddc67587f1710082d3fe147ef3f..12eae13ed6e97e86854f93b359bcf07f065f25a8 100644
|
| --- a/third_party/WebKit/Source/core/layout/CollapsedBorderValue.h
|
| +++ b/third_party/WebKit/Source/core/layout/CollapsedBorderValue.h
|
| @@ -63,6 +63,17 @@ class CollapsedBorderValue {
|
| DCHECK(precedence != kBorderPrecedenceOff);
|
| }
|
|
|
| + CollapsedBorderValue(EBorderStyle style,
|
| + const float width,
|
| + const Color& color,
|
| + EBorderPrecedence precedence)
|
| + : color_(color),
|
| + width_(ComputedStyle::BorderStyleIsVisible(style) ? width : 0),
|
| + style_(static_cast<unsigned>(style)),
|
| + precedence_(precedence) {
|
| + DCHECK(precedence != kBorderPrecedenceOff);
|
| + }
|
| +
|
| unsigned Width() const { return width_; }
|
| EBorderStyle Style() const { return static_cast<EBorderStyle>(style_); }
|
| bool Exists() const { return precedence_ != kBorderPrecedenceOff; }
|
|
|