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

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

Issue 2635143002: Changed EBoxSizing to an enum class and renamed its members (Closed)
Patch Set: Aded k prefix Created 3 years, 11 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/LayoutTable.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTable.cpp b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
index 05f49f63ccb89233eddb86011590306831bfde6f..b0a6337f490370f973cdadea505b036af51ef7b8 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTable.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
@@ -373,7 +373,7 @@ LayoutUnit LayoutTable::convertStyleLogicalWidthToComputedWidth(
bool isCSSTable = !isHTMLTableElement(node());
if (isCSSTable && styleLogicalWidth.isSpecified() &&
styleLogicalWidth.isPositive() &&
- style()->boxSizing() == BoxSizingContentBox)
+ style()->boxSizing() == EBoxSizing::kContentBox)
borders =
borderStart() + borderEnd() +
(collapseBorders() ? LayoutUnit() : paddingStart() + paddingEnd());
@@ -396,7 +396,7 @@ LayoutUnit LayoutTable::convertStyleLogicalHeightToComputedHeight(
// FIXME: We cannot apply box-sizing: content-box on <table> which other
// browsers allow.
if (isHTMLTableElement(node()) ||
- style()->boxSizing() == BoxSizingBorderBox) {
+ style()->boxSizing() == EBoxSizing::kBorderBox) {
borders = borderAndPadding;
}
computedLogicalHeight = LayoutUnit(styleLogicalHeight.value() - borders);
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTableCell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698