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

Unified Diff: Source/core/editing/EditingStyle.h

Issue 342883004: Using Enum in place of bool for better code readability (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Comment fixes Created 6 years, 6 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
« no previous file with comments | « Source/core/css/resolver/FontBuilder.cpp ('k') | Source/core/editing/EditingStyle.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/EditingStyle.h
diff --git a/Source/core/editing/EditingStyle.h b/Source/core/editing/EditingStyle.h
index c9aca38f0372140a4d5c990a4edf525abb6f429c..d11e640fc60659e8d2dcf039317695d084b4ee61 100644
--- a/Source/core/editing/EditingStyle.h
+++ b/Source/core/editing/EditingStyle.h
@@ -35,6 +35,7 @@
#include "core/CSSPropertyNames.h"
#include "core/CSSValueKeywords.h"
#include "core/editing/WritingDirection.h"
+#include "platform/fonts/FixedPitchFontType.h"
#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
#include "wtf/RefCounted.h"
@@ -160,7 +161,7 @@ private:
void mergeStyle(const StylePropertySet*, CSSPropertyOverrideMode);
RefPtrWillBeMember<MutableStylePropertySet> m_mutableStyle;
- bool m_shouldUseFixedDefaultFontSize;
+ FixedPitchFontType m_fixedPitchFontType;
float m_fontSizeDelta;
friend class HTMLElementEquivalent;
@@ -213,7 +214,7 @@ public:
return !(*this == other);
}
private:
- void extractTextStyles(Document*, MutableStylePropertySet*, bool shouldUseFixedFontDefaultSize);
+ void extractTextStyles(Document*, MutableStylePropertySet*, FixedPitchFontType);
String m_cssStyle;
bool m_applyBold;
« no previous file with comments | « Source/core/css/resolver/FontBuilder.cpp ('k') | Source/core/editing/EditingStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698