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

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

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 | « third_party/WebKit/Source/core/editing/EditingStyle.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/EditingStyle.cpp
diff --git a/third_party/WebKit/Source/core/editing/EditingStyle.cpp b/third_party/WebKit/Source/core/editing/EditingStyle.cpp
index 8879597156527fa5dac0905251dd4c470c3b1b94..069f575ad51d41ca8ce0720cab5980e861eab9d3 100644
--- a/third_party/WebKit/Source/core/editing/EditingStyle.cpp
+++ b/third_party/WebKit/Source/core/editing/EditingStyle.cpp
@@ -355,38 +355,24 @@ CSSValue* HTMLFontSizeEquivalent::attributeValueAsCSSValue(Element* element) con
float EditingStyle::NoFontDelta = 0.0f;
-EditingStyle::EditingStyle()
- : m_isMonospaceFont(false)
- , m_fontSizeDelta(NoFontDelta)
-{
-}
-
EditingStyle::EditingStyle(ContainerNode* node, PropertiesToInclude propertiesToInclude)
- : m_isMonospaceFont(false)
- , m_fontSizeDelta(NoFontDelta)
{
init(node, propertiesToInclude);
}
EditingStyle::EditingStyle(const Position& position, PropertiesToInclude propertiesToInclude)
- : m_isMonospaceFont(false)
- , m_fontSizeDelta(NoFontDelta)
{
init(position.anchorNode(), propertiesToInclude);
}
EditingStyle::EditingStyle(const StylePropertySet* style)
: m_mutableStyle(style ? style->mutableCopy() : nullptr)
- , m_isMonospaceFont(false)
- , m_fontSizeDelta(NoFontDelta)
{
extractFontSizeDelta();
}
EditingStyle::EditingStyle(CSSPropertyID propertyID, const String& value)
: m_mutableStyle(nullptr)
- , m_isMonospaceFont(false)
- , m_fontSizeDelta(NoFontDelta)
{
setProperty(propertyID, value);
m_isVerticalAlign = propertyID == CSSPropertyVerticalAlign && (value == "sub" || value == "super");
« no previous file with comments | « third_party/WebKit/Source/core/editing/EditingStyle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698