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

Side by Side Diff: Source/core/editing/EditorCommand.cpp

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/editing/Editor.cpp ('k') | Source/core/editing/FrameSelection.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) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 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 * Copyright (C) 2009 Igalia S.L. 4 * Copyright (C) 2009 Igalia S.L.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. 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 1649 matching lines...) Expand 10 before | Expand all | Expand 10 after
1660 } 1660 }
1661 1661
1662 Editor::Command::Command() 1662 Editor::Command::Command()
1663 : m_command(0) 1663 : m_command(0)
1664 { 1664 {
1665 } 1665 }
1666 1666
1667 Editor::Command::Command(const EditorInternalCommand* command, EditorCommandSour ce source, PassRefPtr<Frame> frame) 1667 Editor::Command::Command(const EditorInternalCommand* command, EditorCommandSour ce source, PassRefPtr<Frame> frame)
1668 : m_command(command) 1668 : m_command(command)
1669 , m_source(source) 1669 , m_source(source)
1670 , m_frame(command ? frame : 0) 1670 , m_frame(command ? frame : nullptr)
1671 { 1671 {
1672 // Use separate assertions so we can tell which bad thing happened. 1672 // Use separate assertions so we can tell which bad thing happened.
1673 if (!command) 1673 if (!command)
1674 ASSERT(!m_frame); 1674 ASSERT(!m_frame);
1675 else 1675 else
1676 ASSERT(m_frame); 1676 ASSERT(m_frame);
1677 } 1677 }
1678 1678
1679 bool Editor::Command::execute(const String& parameter, Event* triggeringEvent) c onst 1679 bool Editor::Command::execute(const String& parameter, Event* triggeringEvent) c onst
1680 { 1680 {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
1730 return m_command->state(*m_frame, triggeringEvent) == TrueTriState ? "tr ue" : "false"; 1730 return m_command->state(*m_frame, triggeringEvent) == TrueTriState ? "tr ue" : "false";
1731 return m_command->value(*m_frame, triggeringEvent); 1731 return m_command->value(*m_frame, triggeringEvent);
1732 } 1732 }
1733 1733
1734 bool Editor::Command::isTextInsertion() const 1734 bool Editor::Command::isTextInsertion() const
1735 { 1735 {
1736 return m_command && m_command->isTextInsertion; 1736 return m_command && m_command->isTextInsertion;
1737 } 1737 }
1738 1738
1739 } // namespace WebCore 1739 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/editing/Editor.cpp ('k') | Source/core/editing/FrameSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698