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

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

Issue 2034303004: Refactoring: Use in-class member initialization in EditingStyle.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use the defaulted default constructor Created 4 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 | « no previous file | third_party/WebKit/Source/core/editing/EditingStyle.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/EditingStyle.h
diff --git a/third_party/WebKit/Source/core/editing/EditingStyle.h b/third_party/WebKit/Source/core/editing/EditingStyle.h
index d2b8baf4ee01b54b3262659e717bc7a2c6dd90c4..c5215dc26dd6ca0fd667d201fac5dba21332099b 100644
--- a/third_party/WebKit/Source/core/editing/EditingStyle.h
+++ b/third_party/WebKit/Source/core/editing/EditingStyle.h
@@ -145,7 +145,7 @@ public:
DECLARE_TRACE();
private:
- EditingStyle();
+ EditingStyle() = default;
EditingStyle(ContainerNode*, PropertiesToInclude);
EditingStyle(const Position&, PropertiesToInclude);
explicit EditingStyle(const StylePropertySet*);
@@ -161,8 +161,8 @@ private:
void mergeStyle(const StylePropertySet*, CSSPropertyOverrideMode);
Member<MutableStylePropertySet> m_mutableStyle;
- bool m_isMonospaceFont;
- float m_fontSizeDelta;
+ bool m_isMonospaceFont = false;
+ float m_fontSizeDelta = NoFontDelta;
bool m_isVerticalAlign = false;
friend class HTMLElementEquivalent;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/EditingStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698