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

Unified Diff: third_party/WebKit/Source/core/html/HTMLOptionElement.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/html/HTMLOptionElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp b/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp
index 8579ebb7a9d36d0aed8949160d8e348b8b7bd91e..8d6accf57bb2b0a3bdc1ba4663c966340c4c0fa6 100644
--- a/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp
@@ -459,7 +459,7 @@ bool HTMLOptionElement::isDisplayNone() const
if (!m_style)
return false;
- if (m_style->display() != NONE) {
+ if (m_style->display() != EDisplay::None) {
// We need to check the parent's display property. Parent's
// display:none doesn't override children's display properties in
// ComputedStyle.
@@ -467,10 +467,10 @@ bool HTMLOptionElement::isDisplayNone() const
DCHECK(parent);
if (isHTMLOptGroupElement(*parent)) {
const ComputedStyle* parentStyle = parent->computedStyle() ? parent->computedStyle() : parent->ensureComputedStyle();
- return !parentStyle || parentStyle->display() == NONE;
+ return !parentStyle || parentStyle->display() == EDisplay::None;
}
}
- return m_style->display() == NONE;
+ return m_style->display() == EDisplay::None;
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLImageFallbackHelper.cpp ('k') | third_party/WebKit/Source/core/html/HTMLRTElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698