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/css/resolver/StyleResolver.cpp

Issue 2878333002: Make ETextModify an enum class. (Closed)
Patch Set: Created 3 years, 7 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 329a5db96f9d4a8d6cf215ffb3ec8416d44c3109..b2957cf87b1e5eeb328c7e6c05e4e20d1991bff4 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
@@ -566,8 +566,9 @@ PassRefPtr<ComputedStyle> StyleResolver::StyleForDocument(Document& document) {
document_style->SetFontDescription(document_font_description);
document_style->SetZIndex(0);
document_style->SetIsStackingContext(true);
- document_style->SetUserModify(document.InDesignMode() ? READ_WRITE
- : READ_ONLY);
+ document_style->SetUserModify(document.InDesignMode()
+ ? EUserModify::kReadWrite
+ : EUserModify::kReadOnly);
// 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.
@@ -1708,7 +1709,7 @@ StyleResolver::CacheSuccess StyleResolver::ApplyMatchedCache(
*cached_matched_properties->parent_computed_style) &&
!IsAtShadowBoundary(element) &&
(!state.DistributedToInsertionPoint() ||
- state.Style()->UserModify() == READ_ONLY)) {
+ state.Style()->UserModify() == EUserModify::kReadOnly)) {
INCREMENT_STYLE_STATS_COUNTER(GetDocument().GetStyleEngine(),
matched_property_cache_inherited_hit, 1);

Powered by Google App Engine
This is Rietveld 408576698