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

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: Comment 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 0fc510b13514452c620815b0f197b1e2ee940a49..1ac97b290cae928fdb82b75314596b8b9ed4a99a 100644
--- a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
+++ b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
@@ -829,7 +829,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
@@ -980,7 +980,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())
« no previous file with comments | « third_party/WebKit/Source/core/dom/Text.cpp ('k') | third_party/WebKit/Source/core/html/HTMLFormElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698