Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: Source/core/editing/EditingStyle.h

Issue 1314843003: Replace forward class declarations of VisibleSelection to include directive (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-26T14:09:03 Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/editing/DOMSelection.h ('k') | Source/core/editing/EditingUtilities.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 17 matching lines...) Expand all
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 #ifndef EditingStyle_h 32 #ifndef EditingStyle_h
33 #define EditingStyle_h 33 #define EditingStyle_h
34 34
35 #include "core/CSSPropertyNames.h" 35 #include "core/CSSPropertyNames.h"
36 #include "core/CSSValueKeywords.h" 36 #include "core/CSSValueKeywords.h"
37 #include "core/editing/Position.h" 37 #include "core/editing/Position.h"
38 #include "core/editing/VisibleSelection.h"
38 #include "core/editing/WritingDirection.h" 39 #include "core/editing/WritingDirection.h"
39 #include "platform/heap/Handle.h" 40 #include "platform/heap/Handle.h"
40 #include "wtf/Forward.h" 41 #include "wtf/Forward.h"
41 #include "wtf/RefCounted.h" 42 #include "wtf/RefCounted.h"
42 #include "wtf/RefPtr.h" 43 #include "wtf/RefPtr.h"
43 #include "wtf/TriState.h" 44 #include "wtf/TriState.h"
44 #include "wtf/Vector.h" 45 #include "wtf/Vector.h"
45 #include "wtf/text/WTFString.h" 46 #include "wtf/text/WTFString.h"
46 47
47 namespace blink { 48 namespace blink {
48 49
49 class CSSStyleDeclaration; 50 class CSSStyleDeclaration;
50 class CSSComputedStyleDeclaration; 51 class CSSComputedStyleDeclaration;
51 class ContainerNode; 52 class ContainerNode;
52 class Document; 53 class Document;
53 class Element; 54 class Element;
54 class HTMLElement; 55 class HTMLElement;
55 class MutableStylePropertySet; 56 class MutableStylePropertySet;
56 class Node; 57 class Node;
57 class QualifiedName; 58 class QualifiedName;
58 class ComputedStyle; 59 class ComputedStyle;
59 class StylePropertySet; 60 class StylePropertySet;
60 class VisibleSelection;
61 61
62 class EditingStyle final : public RefCountedWillBeGarbageCollectedFinalized<Edit ingStyle> { 62 class EditingStyle final : public RefCountedWillBeGarbageCollectedFinalized<Edit ingStyle> {
63 public: 63 public:
64 64
65 enum PropertiesToInclude { AllProperties, OnlyEditingInheritableProperties, EditingPropertiesInEffect }; 65 enum PropertiesToInclude { AllProperties, OnlyEditingInheritableProperties, EditingPropertiesInEffect };
66 enum ShouldPreserveWritingDirection { PreserveWritingDirection, DoNotPreserv eWritingDirection }; 66 enum ShouldPreserveWritingDirection { PreserveWritingDirection, DoNotPreserv eWritingDirection };
67 enum ShouldExtractMatchingStyle { ExtractMatchingStyle, DoNotExtractMatching Style }; 67 enum ShouldExtractMatchingStyle { ExtractMatchingStyle, DoNotExtractMatching Style };
68 static float NoFontDelta; 68 static float NoFontDelta;
69 69
70 static PassRefPtrWillBeRawPtr<EditingStyle> create() 70 static PassRefPtrWillBeRawPtr<EditingStyle> create()
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 String m_applyFontSize; 229 String m_applyFontSize;
230 }; 230 };
231 231
232 // FIXME: Remove these functions or make them non-global to discourage using CSS StyleDeclaration directly. 232 // FIXME: Remove these functions or make them non-global to discourage using CSS StyleDeclaration directly.
233 CSSValueID getIdentifierValue(CSSStyleDeclaration*, CSSPropertyID); 233 CSSValueID getIdentifierValue(CSSStyleDeclaration*, CSSPropertyID);
234 CSSValueID getIdentifierValue(StylePropertySet*, CSSPropertyID); 234 CSSValueID getIdentifierValue(StylePropertySet*, CSSPropertyID);
235 235
236 } // namespace blink 236 } // namespace blink
237 237
238 #endif // EditingStyle_h 238 #endif // EditingStyle_h
OLDNEW
« no previous file with comments | « Source/core/editing/DOMSelection.h ('k') | Source/core/editing/EditingUtilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698