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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 class Element; | 53 class Element; |
54 class HTMLElement; | 54 class HTMLElement; |
55 class MutableStylePropertySet; | 55 class MutableStylePropertySet; |
56 class Node; | 56 class Node; |
57 class Position; | 57 class Position; |
58 class QualifiedName; | 58 class QualifiedName; |
59 class RenderStyle; | 59 class RenderStyle; |
60 class StylePropertySet; | 60 class StylePropertySet; |
61 class VisibleSelection; | 61 class VisibleSelection; |
62 | 62 |
63 class EditingStyle FINAL : public RefCountedWillBeGarbageCollectedFinalized<Edit
ingStyle> { | 63 class EditingStyle final : public RefCountedWillBeGarbageCollectedFinalized<Edit
ingStyle> { |
64 public: | 64 public: |
65 | 65 |
66 enum PropertiesToInclude { AllProperties, OnlyEditingInheritableProperties,
EditingPropertiesInEffect }; | 66 enum PropertiesToInclude { AllProperties, OnlyEditingInheritableProperties,
EditingPropertiesInEffect }; |
67 enum ShouldPreserveWritingDirection { PreserveWritingDirection, DoNotPreserv
eWritingDirection }; | 67 enum ShouldPreserveWritingDirection { PreserveWritingDirection, DoNotPreserv
eWritingDirection }; |
68 enum ShouldExtractMatchingStyle { ExtractMatchingStyle, DoNotExtractMatching
Style }; | 68 enum ShouldExtractMatchingStyle { ExtractMatchingStyle, DoNotExtractMatching
Style }; |
69 static float NoFontDelta; | 69 static float NoFontDelta; |
70 | 70 |
71 static PassRefPtrWillBeRawPtr<EditingStyle> create() | 71 static PassRefPtrWillBeRawPtr<EditingStyle> create() |
72 { | 72 { |
73 return adoptRefWillBeNoop(new EditingStyle()); | 73 return adoptRefWillBeNoop(new EditingStyle()); |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 String m_applyFontSize; | 228 String m_applyFontSize; |
229 }; | 229 }; |
230 | 230 |
231 // FIXME: Remove these functions or make them non-global to discourage using CSS
StyleDeclaration directly. | 231 // FIXME: Remove these functions or make them non-global to discourage using CSS
StyleDeclaration directly. |
232 CSSValueID getIdentifierValue(CSSStyleDeclaration*, CSSPropertyID); | 232 CSSValueID getIdentifierValue(CSSStyleDeclaration*, CSSPropertyID); |
233 CSSValueID getIdentifierValue(StylePropertySet*, CSSPropertyID); | 233 CSSValueID getIdentifierValue(StylePropertySet*, CSSPropertyID); |
234 | 234 |
235 } // namespace blink | 235 } // namespace blink |
236 | 236 |
237 #endif // EditingStyle_h | 237 #endif // EditingStyle_h |
OLD | NEW |