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

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: Renamed members 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 8905d091bce27a3401b0b2131877252b7d7fa1b5..8d09ab44d191fbc662a38986a953c44b111a63a4 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);
@@ -720,7 +720,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