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

Side by Side Diff: third_party/WebKit/Source/core/editing/EditingStyleUtilities.h

Issue 2734043004: Move textDirectionForSelection in EditingStyleUtilities class to EditorCommand.cpp (Closed)
Patch Set: 2017-03-07T17:41:31 Created 3 years, 9 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 | « no previous file | third_party/WebKit/Source/core/editing/EditingStyleUtilities.cpp » ('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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/EditingStyleUtilities.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698