| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 void addAbsolutePositioningFromElement(const Element&); | 136 void addAbsolutePositioningFromElement(const Element&); |
| 137 void forceInline(); | 137 void forceInline(); |
| 138 int legacyFontSize(Document*) const; | 138 int legacyFontSize(Document*) const; |
| 139 | 139 |
| 140 float fontSizeDelta() const { return m_fontSizeDelta; } | 140 float fontSizeDelta() const { return m_fontSizeDelta; } |
| 141 bool hasFontSizeDelta() const { return m_fontSizeDelta != NoFontDelta; } | 141 bool hasFontSizeDelta() const { return m_fontSizeDelta != NoFontDelta; } |
| 142 | 142 |
| 143 static PassRefPtr<EditingStyle> styleAtSelectionStart(const VisibleSelection
&, bool shouldUseBackgroundColorInEffect = false); | 143 static PassRefPtr<EditingStyle> styleAtSelectionStart(const VisibleSelection
&, bool shouldUseBackgroundColorInEffect = false); |
| 144 static WritingDirection textDirectionForSelection(const VisibleSelection&, E
ditingStyle* typingStyle, bool& hasNestedOrMultipleEmbeddings); | 144 static WritingDirection textDirectionForSelection(const VisibleSelection&, E
ditingStyle* typingStyle, bool& hasNestedOrMultipleEmbeddings); |
| 145 | 145 |
| 146 void trace(Visitor*); | |
| 147 | |
| 148 private: | 146 private: |
| 149 EditingStyle(); | 147 EditingStyle(); |
| 150 EditingStyle(ContainerNode*, PropertiesToInclude); | 148 EditingStyle(ContainerNode*, PropertiesToInclude); |
| 151 EditingStyle(const Position&, PropertiesToInclude); | 149 EditingStyle(const Position&, PropertiesToInclude); |
| 152 explicit EditingStyle(const StylePropertySet*); | 150 explicit EditingStyle(const StylePropertySet*); |
| 153 EditingStyle(CSSPropertyID, const String& value); | 151 EditingStyle(CSSPropertyID, const String& value); |
| 154 void init(Node*, PropertiesToInclude); | 152 void init(Node*, PropertiesToInclude); |
| 155 void removeTextFillAndStrokeColorsIfNeeded(RenderStyle*); | 153 void removeTextFillAndStrokeColorsIfNeeded(RenderStyle*); |
| 156 void setProperty(CSSPropertyID, const String& value, bool important = false)
; | 154 void setProperty(CSSPropertyID, const String& value, bool important = false)
; |
| 157 void replaceFontSizeByKeywordIfPossible(RenderStyle*, CSSComputedStyleDeclar
ation*); | 155 void replaceFontSizeByKeywordIfPossible(RenderStyle*, CSSComputedStyleDeclar
ation*); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 String m_applyFontSize; | 227 String m_applyFontSize; |
| 230 }; | 228 }; |
| 231 | 229 |
| 232 // FIXME: Remove these functions or make them non-global to discourage using CSS
StyleDeclaration directly. | 230 // FIXME: Remove these functions or make them non-global to discourage using CSS
StyleDeclaration directly. |
| 233 CSSValueID getIdentifierValue(CSSStyleDeclaration*, CSSPropertyID); | 231 CSSValueID getIdentifierValue(CSSStyleDeclaration*, CSSPropertyID); |
| 234 CSSValueID getIdentifierValue(StylePropertySet*, CSSPropertyID); | 232 CSSValueID getIdentifierValue(StylePropertySet*, CSSPropertyID); |
| 235 | 233 |
| 236 } // namespace blink | 234 } // namespace blink |
| 237 | 235 |
| 238 #endif // EditingStyle_h | 236 #endif // EditingStyle_h |
| OLD | NEW |