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

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: move the default constructor body to class 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..98512991e457f92e8c839ab1a6aeb2a69302449e 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() { }
yosin_UTC9 2016/06/06 01:46:33 nit: s/{ }/= 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