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

Unified Diff: third_party/WebKit/Source/core/editing/EditingUtilities.cpp

Issue 2370673002: Changed EDisplay to an enum class and renamed its members to be keywords (Closed)
Patch Set: Undid accidental renames 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/editing/EditingUtilities.cpp
diff --git a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
index f6141f1455c9524af684059100bf2c526f3e8e8c..a5af6b016730384934f6bb716e28a29f745825f5 100644
--- a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
+++ b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
@@ -814,7 +814,7 @@ bool isInline(const Node* node)
return false;
const ComputedStyle* style = node->computedStyle();
- return style && style->display() == INLINE;
+ return style && style->display() == EDisplay::Inline;
}
// TODO(yosin) Deploy this in all of the places where |enclosingBlockFlow()| and
@@ -965,7 +965,7 @@ static bool isSpecialHTMLElement(const Node& n)
if (!layoutObject)
return false;
- if (layoutObject->style()->display() == TABLE || layoutObject->style()->display() == INLINE_TABLE)
+ if (layoutObject->style()->display() == EDisplay::Table || layoutObject->style()->display() == EDisplay::InlineTable)
return true;
if (layoutObject->style()->isFloating())

Powered by Google App Engine
This is Rietveld 408576698