OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 | 177 |
178 DECLARE_TRACE(); | 178 DECLARE_TRACE(); |
179 | 179 |
180 private: | 180 private: |
181 EditingStyle() = default; | 181 EditingStyle() = default; |
182 EditingStyle(ContainerNode*, PropertiesToInclude); | 182 EditingStyle(ContainerNode*, PropertiesToInclude); |
183 EditingStyle(const Position&, PropertiesToInclude); | 183 EditingStyle(const Position&, PropertiesToInclude); |
184 explicit EditingStyle(const StylePropertySet*); | 184 explicit EditingStyle(const StylePropertySet*); |
185 EditingStyle(CSSPropertyID, const String& value); | 185 EditingStyle(CSSPropertyID, const String& value); |
186 void init(Node*, PropertiesToInclude); | 186 void init(Node*, PropertiesToInclude); |
187 void removeTextFillAndStrokeColorsIfNeeded(const ComputedStyle*); | 187 void removeInheritedColorsIfNeeded(const ComputedStyle*); |
188 void setProperty(CSSPropertyID, const String& value, bool important = false); | 188 void setProperty(CSSPropertyID, const String& value, bool important = false); |
189 void replaceFontSizeByKeywordIfPossible(const ComputedStyle*, | 189 void replaceFontSizeByKeywordIfPossible(const ComputedStyle*, |
190 CSSComputedStyleDeclaration*); | 190 CSSComputedStyleDeclaration*); |
191 void extractFontSizeDelta(); | 191 void extractFontSizeDelta(); |
192 TriState triStateOfStyle(CSSStyleDeclaration* styleToCompare, | 192 TriState triStateOfStyle(CSSStyleDeclaration* styleToCompare, |
193 ShouldIgnoreTextOnlyProperties) const; | 193 ShouldIgnoreTextOnlyProperties) const; |
194 bool conflictsWithInlineStyleOfElement( | 194 bool conflictsWithInlineStyleOfElement( |
195 HTMLElement*, | 195 HTMLElement*, |
196 EditingStyle* extractedStyle, | 196 EditingStyle* extractedStyle, |
197 Vector<CSSPropertyID>* conflictingProperties) const; | 197 Vector<CSSPropertyID>* conflictingProperties) const; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 }; | 269 }; |
270 | 270 |
271 // FIXME: Remove these functions or make them non-global to discourage using | 271 // FIXME: Remove these functions or make them non-global to discourage using |
272 // CSSStyleDeclaration directly. | 272 // CSSStyleDeclaration directly. |
273 CSSValueID getIdentifierValue(CSSStyleDeclaration*, CSSPropertyID); | 273 CSSValueID getIdentifierValue(CSSStyleDeclaration*, CSSPropertyID); |
274 CSSValueID getIdentifierValue(StylePropertySet*, CSSPropertyID); | 274 CSSValueID getIdentifierValue(StylePropertySet*, CSSPropertyID); |
275 | 275 |
276 } // namespace blink | 276 } // namespace blink |
277 | 277 |
278 #endif // EditingStyle_h | 278 #endif // EditingStyle_h |
OLD | NEW |