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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 public: | 51 public: |
52 static EditingStyle* createWrappingStyleForAnnotatedSerialization( | 52 static EditingStyle* createWrappingStyleForAnnotatedSerialization( |
53 ContainerNode* context); | 53 ContainerNode* context); |
54 static EditingStyle* createWrappingStyleForSerialization( | 54 static EditingStyle* createWrappingStyleForSerialization( |
55 ContainerNode* context); | 55 ContainerNode* context); |
56 static EditingStyle* createStyleAtSelectionStart( | 56 static EditingStyle* createStyleAtSelectionStart( |
57 const VisibleSelection&, | 57 const VisibleSelection&, |
58 bool shouldUseBackgroundColorInEffect = false, | 58 bool shouldUseBackgroundColorInEffect = false, |
59 MutableStylePropertySet* styleToCheck = nullptr); | 59 MutableStylePropertySet* styleToCheck = nullptr); |
60 static WritingDirection textDirectionForSelection( | |
61 const VisibleSelection&, | |
62 EditingStyle* typingStyle, | |
63 bool& hasNestedOrMultipleEmbeddings); | |
64 static bool isEmbedOrIsolate(CSSValueID unicodeBidi) { | 60 static bool isEmbedOrIsolate(CSSValueID unicodeBidi) { |
65 return unicodeBidi == CSSValueIsolate || | 61 return unicodeBidi == CSSValueIsolate || |
66 unicodeBidi == CSSValueWebkitIsolate || unicodeBidi == CSSValueEmbed; | 62 unicodeBidi == CSSValueWebkitIsolate || unicodeBidi == CSSValueEmbed; |
67 } | 63 } |
68 | 64 |
69 static bool isTransparentColorValue(const CSSValue*); | 65 static bool isTransparentColorValue(const CSSValue*); |
70 static bool hasTransparentBackgroundColor(CSSStyleDeclaration*); | 66 static bool hasTransparentBackgroundColor(CSSStyleDeclaration*); |
71 static bool hasTransparentBackgroundColor(StylePropertySet*); | 67 static bool hasTransparentBackgroundColor(StylePropertySet*); |
72 static const CSSValue* backgroundColorValueInEffect(Node*); | 68 static const CSSValue* backgroundColorValueInEffect(Node*); |
73 static bool hasAncestorVerticalAlignStyle(Node&, CSSValueID); | 69 static bool hasAncestorVerticalAlignStyle(Node&, CSSValueID); |
74 }; | 70 }; |
75 | 71 |
76 } // namespace blink | 72 } // namespace blink |
77 | 73 |
78 #endif // EditingStyleUtilities_h | 74 #endif // EditingStyleUtilities_h |
OLD | NEW |