| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 void removePropertiesInElementDefaultStyle(Element*); | 134 void removePropertiesInElementDefaultStyle(Element*); |
| 135 void addAbsolutePositioningFromElement(const Element&); | 135 void addAbsolutePositioningFromElement(const Element&); |
| 136 void forceInline(); | 136 void forceInline(); |
| 137 int legacyFontSize(Document*) const; | 137 int legacyFontSize(Document*) const; |
| 138 | 138 |
| 139 float fontSizeDelta() const { return m_fontSizeDelta; } | 139 float fontSizeDelta() const { return m_fontSizeDelta; } |
| 140 bool hasFontSizeDelta() const { return m_fontSizeDelta != NoFontDelta; } | 140 bool hasFontSizeDelta() const { return m_fontSizeDelta != NoFontDelta; } |
| 141 | 141 |
| 142 static PassRefPtrWillBeRawPtr<EditingStyle> styleAtSelectionStart(const Visi
bleSelection&, bool shouldUseBackgroundColorInEffect = false); | 142 static PassRefPtrWillBeRawPtr<EditingStyle> styleAtSelectionStart(const Visi
bleSelection&, bool shouldUseBackgroundColorInEffect = false); |
| 143 static WritingDirection textDirectionForSelection(const VisibleSelection&, E
ditingStyle* typingStyle, bool& hasNestedOrMultipleEmbeddings); | 143 static WritingDirection textDirectionForSelection(const VisibleSelection&, E
ditingStyle* typingStyle, bool& hasNestedOrMultipleEmbeddings); |
| 144 static bool isEmbedOrIsolate(CSSValueID unicodeBidi) |
| 145 { |
| 146 return unicodeBidi == CSSValueIsolate || unicodeBidi == CSSValueWebkitIs
olate || unicodeBidi == CSSValueEmbed; |
| 147 } |
| 144 | 148 |
| 145 DECLARE_TRACE(); | 149 DECLARE_TRACE(); |
| 146 | 150 |
| 147 private: | 151 private: |
| 148 EditingStyle(); | 152 EditingStyle(); |
| 149 EditingStyle(ContainerNode*, PropertiesToInclude); | 153 EditingStyle(ContainerNode*, PropertiesToInclude); |
| 150 EditingStyle(const Position&, PropertiesToInclude); | 154 EditingStyle(const Position&, PropertiesToInclude); |
| 151 explicit EditingStyle(const StylePropertySet*); | 155 explicit EditingStyle(const StylePropertySet*); |
| 152 EditingStyle(CSSPropertyID, const String& value); | 156 EditingStyle(CSSPropertyID, const String& value); |
| 153 void init(Node*, PropertiesToInclude); | 157 void init(Node*, PropertiesToInclude); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 String m_applyFontSize; | 233 String m_applyFontSize; |
| 230 }; | 234 }; |
| 231 | 235 |
| 232 // FIXME: Remove these functions or make them non-global to discourage using CSS
StyleDeclaration directly. | 236 // FIXME: Remove these functions or make them non-global to discourage using CSS
StyleDeclaration directly. |
| 233 CSSValueID getIdentifierValue(CSSStyleDeclaration*, CSSPropertyID); | 237 CSSValueID getIdentifierValue(CSSStyleDeclaration*, CSSPropertyID); |
| 234 CSSValueID getIdentifierValue(StylePropertySet*, CSSPropertyID); | 238 CSSValueID getIdentifierValue(StylePropertySet*, CSSPropertyID); |
| 235 | 239 |
| 236 } // namespace blink | 240 } // namespace blink |
| 237 | 241 |
| 238 #endif // EditingStyle_h | 242 #endif // EditingStyle_h |
| OLD | NEW |