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

Side by Side Diff: sky/engine/core/editing/ReplaceSelectionCommand.cpp

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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) 2005, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved.
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 994 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 if (end.isNull()) 1005 if (end.isNull())
1006 return false; 1006 return false;
1007 1007
1008 VisibleSelection selectionAfterReplace(m_selectReplacement ? start : end, en d); 1008 VisibleSelection selectionAfterReplace(m_selectReplacement ? start : end, en d);
1009 1009
1010 setEndingSelection(selectionAfterReplace); 1010 setEndingSelection(selectionAfterReplace);
1011 1011
1012 return true; 1012 return true;
1013 } 1013 }
1014 1014
1015 void ReplaceSelectionCommand::trace(Visitor* visitor)
1016 {
1017 visitor->trace(m_startOfInsertedContent);
1018 visitor->trace(m_endOfInsertedContent);
1019 visitor->trace(m_insertionStyle);
1020 visitor->trace(m_documentFragment);
1021 CompositeEditCommand::trace(visitor);
1022 }
1023
1024 } // namespace blink 1015 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/editing/ReplaceSelectionCommand.h ('k') | sky/engine/core/editing/SplitElementCommand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698