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

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

Issue 2628943009: Introduce EditingStyleUtilities.{cpp,h} (Closed)
Patch Set: add STATIC_ONLY Created 3 years, 11 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
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 336512a5713ab078684505d627b8a449ebb547c3..46539606c1a4a25dbee8cf77213555d0f5543ff3 100644
--- a/third_party/WebKit/Source/core/editing/EditingStyle.h
+++ b/third_party/WebKit/Source/core/editing/EditingStyle.h
@@ -148,9 +148,9 @@ class CORE_EXPORT EditingStyle final : public GarbageCollected<EditingStyle> {
void mergeInlineStyleOfElement(HTMLElement*,
CSSPropertyOverrideMode,
PropertiesToInclude = AllProperties);
- static EditingStyle* wrappingStyleForAnnotatedSerialization(
- ContainerNode* context);
- static EditingStyle* wrappingStyleForSerialization(ContainerNode* context);
+ void mergeInlineAndImplicitStyleOfElement(Element*,
+ CSSPropertyOverrideMode,
+ PropertiesToInclude);
void mergeStyleFromRules(Element*);
void mergeStyleFromRulesForSerialization(Element*);
void removeStyleFromRulesAndContext(Element*, ContainerNode* context);
@@ -161,19 +161,7 @@ class CORE_EXPORT EditingStyle final : public GarbageCollected<EditingStyle> {
float fontSizeDelta() const { return m_fontSizeDelta; }
bool hasFontSizeDelta() const { return m_fontSizeDelta != NoFontDelta; }
-
- static EditingStyle* styleAtSelectionStart(
- const VisibleSelection&,
- bool shouldUseBackgroundColorInEffect = false,
- MutableStylePropertySet* styleToCheck = nullptr);
- static WritingDirection textDirectionForSelection(
- const VisibleSelection&,
- EditingStyle* typingStyle,
- bool& hasNestedOrMultipleEmbeddings);
- static bool isEmbedOrIsolate(CSSValueID unicodeBidi) {
- return unicodeBidi == CSSValueIsolate ||
- unicodeBidi == CSSValueWebkitIsolate || unicodeBidi == CSSValueEmbed;
- }
+ void setProperty(CSSPropertyID, const String& value, bool important = false);
DECLARE_TRACE();
@@ -185,7 +173,7 @@ class CORE_EXPORT EditingStyle final : public GarbageCollected<EditingStyle> {
EditingStyle(CSSPropertyID, const String& value);
void init(Node*, PropertiesToInclude);
void removeInheritedColorsIfNeeded(const ComputedStyle*);
- void setProperty(CSSPropertyID, const String& value, bool important = false);
+
void replaceFontSizeByKeywordIfPossible(const ComputedStyle*,
CSSComputedStyleDeclaration*);
void extractFontSizeDelta();
@@ -195,9 +183,6 @@ class CORE_EXPORT EditingStyle final : public GarbageCollected<EditingStyle> {
HTMLElement*,
EditingStyle* extractedStyle,
Vector<CSSPropertyID>* conflictingProperties) const;
- void mergeInlineAndImplicitStyleOfElement(Element*,
- CSSPropertyOverrideMode,
- PropertiesToInclude);
void mergeStyle(const StylePropertySet*, CSSPropertyOverrideMode);
Member<MutableStylePropertySet> m_mutableStyle;
« no previous file with comments | « third_party/WebKit/Source/core/editing/BUILD.gn ('k') | third_party/WebKit/Source/core/editing/EditingStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698