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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 2367273003: Changed EEmptyCells to an enum class and renamed its members to keywords (Closed)
Patch Set: Rebase Created 4 years, 3 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/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 6039bb3b7225755372bef5d5724ca82b0d589649..c496fafaf3d5cbf3009541b017ea3fd405332625 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -341,7 +341,7 @@ protected:
void setBitDefaults()
{
ComputedStyleBase::setBitDefaults();
- m_inheritedData.m_emptyCells = initialEmptyCells();
+ m_inheritedData.m_emptyCells = static_cast<unsigned>(initialEmptyCells());
m_inheritedData.m_captionSide = static_cast<unsigned>(initialCaptionSide());
m_inheritedData.m_listStyleType = initialListStyleType();
m_inheritedData.m_listStylePosition = initialListStylePosition();
@@ -1370,9 +1370,9 @@ public:
void setDirection(TextDirection v) { m_inheritedData.m_direction = v; }
// empty-cells
- static EEmptyCells initialEmptyCells() { return EmptyCellsShow; }
+ static EEmptyCells initialEmptyCells() { return EEmptyCells::Show; }
EEmptyCells emptyCells() const { return static_cast<EEmptyCells>(m_inheritedData.m_emptyCells); }
- void setEmptyCells(EEmptyCells v) { m_inheritedData.m_emptyCells = v; }
+ void setEmptyCells(EEmptyCells v) { m_inheritedData.m_emptyCells = static_cast<unsigned>(v); }
// color
static Color initialColor() { return Color::black; }

Powered by Google App Engine
This is Rietveld 408576698