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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleResolver.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/css/resolver/StyleResolver.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
index ca4f2d9cb02ddc82ed3e736ec4db04d57860b606..98b7e610e685a9a7e6df6765c71c92757bf65d1d 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
@@ -689,7 +689,7 @@ PassRefPtr<ComputedStyle> StyleResolver::styleForDocument(Document& document)
// These are designed to match the user-agent stylesheet values for the document element
// so that the common case doesn't need to create a new ComputedStyle in
// Document::inheritHtmlAndBodyElementStyles.
- documentStyle->setDisplay(BLOCK);
+ documentStyle->setDisplay(EDisplay::Block);
documentStyle->setPosition(AbsolutePosition);
document.setupFontBuilder(*documentStyle);
@@ -721,7 +721,7 @@ PassRefPtr<ComputedStyle> StyleResolver::styleForElement(Element* element, const
if (sharingBehavior == AllowStyleSharing && !document().isRenderingReady() && !element->layoutObject()) {
if (!s_styleNotYetAvailable) {
s_styleNotYetAvailable = ComputedStyle::create().leakRef();
- s_styleNotYetAvailable->setDisplay(NONE);
+ s_styleNotYetAvailable->setDisplay(EDisplay::None);
s_styleNotYetAvailable->font().update(document().styleEngine().fontSelector());
}

Powered by Google App Engine
This is Rietveld 408576698