OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 218 |
219 bool markedTextMatchesAreHighlighted() const; | 219 bool markedTextMatchesAreHighlighted() const; |
220 void setMarkedTextMatchesAreHighlighted(bool); | 220 void setMarkedTextMatchesAreHighlighted(bool); |
221 | 221 |
222 void replaceSelectionWithFragment(PassRefPtrWillBeRawPtr<DocumentFragment>,
bool selectReplacement, bool smartReplace, bool matchStyle); | 222 void replaceSelectionWithFragment(PassRefPtrWillBeRawPtr<DocumentFragment>,
bool selectReplacement, bool smartReplace, bool matchStyle); |
223 void replaceSelectionWithText(const String&, bool selectReplacement, bool sm
artReplace); | 223 void replaceSelectionWithText(const String&, bool selectReplacement, bool sm
artReplace); |
224 | 224 |
225 EditorParagraphSeparator defaultParagraphSeparator() const { return m_defaul
tParagraphSeparator; } | 225 EditorParagraphSeparator defaultParagraphSeparator() const { return m_defaul
tParagraphSeparator; } |
226 void setDefaultParagraphSeparator(EditorParagraphSeparator separator) { m_de
faultParagraphSeparator = separator; } | 226 void setDefaultParagraphSeparator(EditorParagraphSeparator separator) { m_de
faultParagraphSeparator = separator; } |
227 | 227 |
| 228 static void tidyUpHTMLStructure(Document&); |
| 229 |
228 class RevealSelectionScope { | 230 class RevealSelectionScope { |
229 WTF_MAKE_NONCOPYABLE(RevealSelectionScope); | 231 WTF_MAKE_NONCOPYABLE(RevealSelectionScope); |
230 STACK_ALLOCATED(); | 232 STACK_ALLOCATED(); |
231 public: | 233 public: |
232 explicit RevealSelectionScope(Editor*); | 234 explicit RevealSelectionScope(Editor*); |
233 ~RevealSelectionScope(); | 235 ~RevealSelectionScope(); |
234 private: | 236 private: |
235 RawPtrWillBeMember<Editor> m_editor; | 237 RawPtrWillBeMember<Editor> m_editor; |
236 }; | 238 }; |
237 friend class RevealSelectionScope; | 239 friend class RevealSelectionScope; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 | 303 |
302 inline bool Editor::markedTextMatchesAreHighlighted() const | 304 inline bool Editor::markedTextMatchesAreHighlighted() const |
303 { | 305 { |
304 return m_areMarkedTextMatchesHighlighted; | 306 return m_areMarkedTextMatchesHighlighted; |
305 } | 307 } |
306 | 308 |
307 | 309 |
308 } // namespace blink | 310 } // namespace blink |
309 | 311 |
310 #endif // Editor_h | 312 #endif // Editor_h |
OLD | NEW |