| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 MutableStylePropertySet* style() { return m_mutableStyle.get(); } | 98 MutableStylePropertySet* style() { return m_mutableStyle.get(); } |
| 99 | 99 |
| 100 bool isEmpty() const; | 100 bool isEmpty() const; |
| 101 | 101 |
| 102 void clear(); | 102 void clear(); |
| 103 PassRefPtr<EditingStyle> copy() const; | 103 PassRefPtr<EditingStyle> copy() const; |
| 104 | 104 |
| 105 void removeBlockProperties(); | 105 void removeBlockProperties(); |
| 106 | 106 |
| 107 static bool elementIsStyledSpanOrHTMLEquivalent(const HTMLElement*); | 107 static bool elementIsStyledSpanOrHTMLEquivalent(const Element*); |
| 108 | 108 |
| 109 void mergeTypingStyle(Document*); | 109 void mergeTypingStyle(Document*); |
| 110 | 110 |
| 111 private: | 111 private: |
| 112 EditingStyle(); | 112 EditingStyle(); |
| 113 EditingStyle(ContainerNode*, PropertiesToInclude); | 113 EditingStyle(ContainerNode*, PropertiesToInclude); |
| 114 EditingStyle(const Position&, PropertiesToInclude); | 114 EditingStyle(const Position&, PropertiesToInclude); |
| 115 explicit EditingStyle(const StylePropertySet*); | 115 explicit EditingStyle(const StylePropertySet*); |
| 116 EditingStyle(CSSPropertyID, const String& value); | 116 EditingStyle(CSSPropertyID, const String& value); |
| 117 void init(Node*, PropertiesToInclude); | 117 void init(Node*, PropertiesToInclude); |
| 118 void removeTextFillAndStrokeColorsIfNeeded(RenderStyle*); | 118 void removeTextFillAndStrokeColorsIfNeeded(RenderStyle*); |
| 119 void setProperty(CSSPropertyID, const String& value); | 119 void setProperty(CSSPropertyID, const String& value); |
| 120 void replaceFontSizeByKeywordIfPossible(RenderStyle*, CSSComputedStyleDeclar
ation*); | 120 void replaceFontSizeByKeywordIfPossible(RenderStyle*, CSSComputedStyleDeclar
ation*); |
| 121 void extractFontSizeDelta(); | 121 void extractFontSizeDelta(); |
| 122 | 122 |
| 123 enum CSSPropertyOverrideMode { OverrideValues, DoNotOverrideValues }; | 123 enum CSSPropertyOverrideMode { OverrideValues, DoNotOverrideValues }; |
| 124 void mergeStyle(const StylePropertySet*, CSSPropertyOverrideMode); | 124 void mergeStyle(const StylePropertySet*, CSSPropertyOverrideMode); |
| 125 | 125 |
| 126 RefPtr<MutableStylePropertySet> m_mutableStyle; | 126 RefPtr<MutableStylePropertySet> m_mutableStyle; |
| 127 FixedPitchFontType m_fixedPitchFontType; | 127 FixedPitchFontType m_fixedPitchFontType; |
| 128 float m_fontSizeDelta; | 128 float m_fontSizeDelta; |
| 129 | 129 |
| 130 friend class HTMLElementEquivalent; | 130 friend class HTMLElementEquivalent; |
| 131 friend class HTMLAttributeEquivalent; | 131 friend class HTMLAttributeEquivalent; |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 } // namespace blink | 134 } // namespace blink |
| 135 | 135 |
| 136 #endif // SKY_ENGINE_CORE_EDITING_EDITINGSTYLE_H_ | 136 #endif // SKY_ENGINE_CORE_EDITING_EDITINGSTYLE_H_ |
| OLD | NEW |