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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.cpp

Issue 2896783002: Remove dependency on order of enum EBorderStyle (Closed)
Patch Set: Merge branch and make it dependent on https://codereview.chromium.org/2895933004 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/LayoutMultiColumnSet.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.cpp b/third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.cpp
index d1e9fbc29a362afc25158ee31c63e16b43233ddd..9d6ea75bfcb7ed5cda0cc04f5bbfe48a62262939 100644
--- a/third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.cpp
@@ -568,7 +568,8 @@ bool LayoutMultiColumnSet::ComputeColumnRuleBounds(
EBorderStyle rule_style = block_style.ColumnRuleStyle();
LayoutUnit rule_thickness(block_style.ColumnRuleWidth());
LayoutUnit col_gap = ColumnGap();
- bool render_rule = rule_style > EBorderStyle::kHidden && !rule_transparent;
+ bool render_rule =
+ ComputedStyle::BorderStyleIsVisible(rule_style) && !rule_transparent;
if (!render_rule)
return false;
« no previous file with comments | « third_party/WebKit/Source/core/layout/CollapsedBorderValue.h ('k') | third_party/WebKit/Source/core/layout/LayoutTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698