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

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

Issue 1637323002: Editing: Tidy up HTML document structure before execCommand(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert the Node.cpp change Created 4 years, 10 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
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/editing/Editor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698