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

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

Issue 15821009: Move property setting/removing/addParsedProperty/addParsedProperties functions to MutableStylePrope… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
« no previous file with comments | « Source/core/editing/ApplyStyleCommand.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 f659453aaee2a4b498ec962952ddd09b21b6196c..9ae7ff16977f737bc47e5b9bc2bdb02ea941f6fb 100644
--- a/Source/core/editing/EditingStyle.h
+++ b/Source/core/editing/EditingStyle.h
@@ -50,6 +50,7 @@ class CSSValue;
class Document;
class Element;
class HTMLElement;
+class MutableStylePropertySet;
class Node;
class Position;
class QualifiedName;
@@ -98,10 +99,10 @@ public:
~EditingStyle();
- StylePropertySet* style() { return m_mutableStyle.get(); }
+ MutableStylePropertySet* style() { return m_mutableStyle.get(); }
bool textDirection(WritingDirection&) const;
bool isEmpty() const;
- void setStyle(PassRefPtr<StylePropertySet>);
+ void setStyle(PassRefPtr<MutableStylePropertySet>);
void overrideWithStyle(const StylePropertySet*);
void clear();
PassRefPtr<EditingStyle> copy() const;
@@ -163,7 +164,7 @@ private:
void mergeInlineAndImplicitStyleOfElement(StyledElement*, CSSPropertyOverrideMode, PropertiesToInclude);
void mergeStyle(const StylePropertySet*, CSSPropertyOverrideMode);
- RefPtr<StylePropertySet> m_mutableStyle;
+ RefPtr<MutableStylePropertySet> m_mutableStyle;
bool m_shouldUseFixedDefaultFontSize;
float m_fontSizeDelta;
@@ -217,7 +218,7 @@ public:
return !(*this == other);
}
private:
- void extractTextStyles(Document*, StylePropertySet*, bool shouldUseFixedFontDefaultSize);
+ void extractTextStyles(Document*, MutableStylePropertySet*, bool shouldUseFixedFontDefaultSize);
String m_cssStyle;
bool m_applyBold;
« no previous file with comments | « Source/core/editing/ApplyStyleCommand.cpp ('k') | Source/core/editing/EditingStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698