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

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

Issue 2670643004: Rename EDisplay values with k prefix. (Closed)
Patch Set: Rebase Created 3 years, 9 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/LayoutTheme.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTheme.cpp b/third_party/WebKit/Source/core/layout/LayoutTheme.cpp
index c42b215c57a01c1fec0a1b4ccdc19a3cfb46b7b9..cda01b9a95a70c7e59ae64e608057a28653fb548 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTheme.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTheme.cpp
@@ -82,20 +82,20 @@ void LayoutTheme::adjustStyle(ComputedStyle& style, Element* e) {
// Force inline and table display styles to be inline-block (except for table-
// which is block)
ControlPart part = style.appearance();
- if (style.display() == EDisplay::Inline ||
- style.display() == EDisplay::InlineTable ||
- style.display() == EDisplay::TableRowGroup ||
- style.display() == EDisplay::TableHeaderGroup ||
- style.display() == EDisplay::TableFooterGroup ||
- style.display() == EDisplay::TableRow ||
- style.display() == EDisplay::TableColumnGroup ||
- style.display() == EDisplay::TableColumn ||
- style.display() == EDisplay::TableCell ||
- style.display() == EDisplay::TableCaption)
- style.setDisplay(EDisplay::InlineBlock);
- else if (style.display() == EDisplay::ListItem ||
- style.display() == EDisplay::Table)
- style.setDisplay(EDisplay::Block);
+ if (style.display() == EDisplay::kInline ||
+ style.display() == EDisplay::kInlineTable ||
+ style.display() == EDisplay::kTableRowGroup ||
+ style.display() == EDisplay::kTableHeaderGroup ||
+ style.display() == EDisplay::kTableFooterGroup ||
+ style.display() == EDisplay::kTableRow ||
+ style.display() == EDisplay::kTableColumnGroup ||
+ style.display() == EDisplay::kTableColumn ||
+ style.display() == EDisplay::kTableCell ||
+ style.display() == EDisplay::kTableCaption)
+ style.setDisplay(EDisplay::kInlineBlock);
+ else if (style.display() == EDisplay::kListItem ||
+ style.display() == EDisplay::kTable)
+ style.setDisplay(EDisplay::kBlock);
if (isControlStyled(style)) {
if (part == MenulistPart) {

Powered by Google App Engine
This is Rietveld 408576698