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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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, 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 #include "core/inspector/ConsoleMessage.h" 80 #include "core/inspector/ConsoleMessage.h"
81 #include "core/layout/HitTestResult.h" 81 #include "core/layout/HitTestResult.h"
82 #include "core/layout/LayoutImage.h" 82 #include "core/layout/LayoutImage.h"
83 #include "core/loader/EmptyClients.h" 83 #include "core/loader/EmptyClients.h"
84 #include "core/page/EditorClient.h" 84 #include "core/page/EditorClient.h"
85 #include "core/page/FocusController.h" 85 #include "core/page/FocusController.h"
86 #include "core/page/Page.h" 86 #include "core/page/Page.h"
87 #include "core/svg/SVGImageElement.h" 87 #include "core/svg/SVGImageElement.h"
88 #include "platform/KillRing.h" 88 #include "platform/KillRing.h"
89 #include "platform/weborigin/KURL.h" 89 #include "platform/weborigin/KURL.h"
90 #include "wtf/PtrUtil.h"
91 #include "wtf/text/CharacterNames.h" 90 #include "wtf/text/CharacterNames.h"
92 91
93 namespace blink { 92 namespace blink {
94 93
95 using namespace HTMLNames; 94 using namespace HTMLNames;
96 using namespace WTF; 95 using namespace WTF;
97 using namespace Unicode; 96 using namespace Unicode;
98 97
99 Editor::RevealSelectionScope::RevealSelectionScope(Editor* editor) 98 Editor::RevealSelectionScope::RevealSelectionScope(Editor* editor)
100 : m_editor(editor) 99 : m_editor(editor)
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 { 761 {
763 return new Editor(frame); 762 return new Editor(frame);
764 } 763 }
765 764
766 Editor::Editor(LocalFrame& frame) 765 Editor::Editor(LocalFrame& frame)
767 : m_frame(&frame) 766 : m_frame(&frame)
768 , m_preventRevealSelection(0) 767 , m_preventRevealSelection(0)
769 , m_shouldStartNewKillRingSequence(false) 768 , m_shouldStartNewKillRingSequence(false)
770 // This is off by default, since most editors want this behavior (this match es IE but not FF). 769 // This is off by default, since most editors want this behavior (this match es IE but not FF).
771 , m_shouldStyleWithCSS(false) 770 , m_shouldStyleWithCSS(false)
772 , m_killRing(wrapUnique(new KillRing)) 771 , m_killRing(adoptPtr(new KillRing))
773 , m_areMarkedTextMatchesHighlighted(false) 772 , m_areMarkedTextMatchesHighlighted(false)
774 , m_defaultParagraphSeparator(EditorParagraphSeparatorIsDiv) 773 , m_defaultParagraphSeparator(EditorParagraphSeparatorIsDiv)
775 , m_overwriteModeEnabled(false) 774 , m_overwriteModeEnabled(false)
776 { 775 {
777 } 776 }
778 777
779 Editor::~Editor() 778 Editor::~Editor()
780 { 779 {
781 } 780 }
782 781
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
1370 } 1369 }
1371 1370
1372 DEFINE_TRACE(Editor) 1371 DEFINE_TRACE(Editor)
1373 { 1372 {
1374 visitor->trace(m_frame); 1373 visitor->trace(m_frame);
1375 visitor->trace(m_lastEditCommand); 1374 visitor->trace(m_lastEditCommand);
1376 visitor->trace(m_mark); 1375 visitor->trace(m_mark);
1377 } 1376 }
1378 1377
1379 } // namespace blink 1378 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/Editor.h ('k') | third_party/WebKit/Source/core/editing/FrameSelection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698