Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: third_party/WebKit/Source/core/layout/CollapsedBorderValue.h

Issue 2895933004: Pass the correct BorderWidth value when creating BorderValues (Closed)
Patch Set: add computedstyle unit tes Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 e246348549923462011c888ee301a66a24570cb9..4cd2318cfb435519957afc02737e3942887f6e78 100644
--- a/third_party/WebKit/Source/core/layout/CollapsedBorderValue.h
+++ b/third_party/WebKit/Source/core/layout/CollapsedBorderValue.h
@@ -55,7 +55,7 @@ class CollapsedBorderValue {
const Color& color,
EBorderPrecedence precedence)
: color_(color),
- width_(border.Style() > EBorderStyle::kNone ? border.Width() : 0),
+ width_(border.Style() > EBorderStyle::kHidden ? border.Width() : 0),
style_(static_cast<unsigned>(border.Style())),
precedence_(precedence) {
DCHECK(precedence != kBorderPrecedenceOff);

Powered by Google App Engine
This is Rietveld 408576698