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

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

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 } 923 }
924 924
925 Editor::Editor(LocalFrame& frame) 925 Editor::Editor(LocalFrame& frame)
926 : m_frame(&frame), 926 : m_frame(&frame),
927 m_undoStack(UndoStack::create()), 927 m_undoStack(UndoStack::create()),
928 m_preventRevealSelection(0), 928 m_preventRevealSelection(0),
929 m_shouldStartNewKillRingSequence(false), 929 m_shouldStartNewKillRingSequence(false),
930 // This is off by default, since most editors want this behavior (this 930 // This is off by default, since most editors want this behavior (this
931 // matches IE but not FF). 931 // matches IE but not FF).
932 m_shouldStyleWithCSS(false), 932 m_shouldStyleWithCSS(false),
933 m_killRing(wrapUnique(new KillRing)), 933 m_killRing(WTF::wrapUnique(new KillRing)),
934 m_areMarkedTextMatchesHighlighted(false), 934 m_areMarkedTextMatchesHighlighted(false),
935 m_defaultParagraphSeparator(EditorParagraphSeparatorIsDiv), 935 m_defaultParagraphSeparator(EditorParagraphSeparatorIsDiv),
936 m_overwriteModeEnabled(false) {} 936 m_overwriteModeEnabled(false) {}
937 937
938 Editor::~Editor() {} 938 Editor::~Editor() {}
939 939
940 void Editor::clear() { 940 void Editor::clear() {
941 frame().inputMethodController().clear(); 941 frame().inputMethodController().clear();
942 m_shouldStyleWithCSS = false; 942 m_shouldStyleWithCSS = false;
943 m_defaultParagraphSeparator = EditorParagraphSeparatorIsDiv; 943 m_defaultParagraphSeparator = EditorParagraphSeparatorIsDiv;
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
1660 } 1660 }
1661 1661
1662 DEFINE_TRACE(Editor) { 1662 DEFINE_TRACE(Editor) {
1663 visitor->trace(m_frame); 1663 visitor->trace(m_frame);
1664 visitor->trace(m_lastEditCommand); 1664 visitor->trace(m_lastEditCommand);
1665 visitor->trace(m_undoStack); 1665 visitor->trace(m_undoStack);
1666 visitor->trace(m_mark); 1666 visitor->trace(m_mark);
1667 } 1667 }
1668 1668
1669 } // namespace blink 1669 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/SelectorQuery.cpp ('k') | third_party/WebKit/Source/core/editing/FrameSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698