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

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

Issue 299353004: Oilpan: move editing objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make test wrapper class finalized Created 6 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
« no previous file with comments | « Source/core/editing/VisiblePosition.h ('k') | Source/core/editing/VisibleSelection.h » ('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) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
3 * Portions Copyright (c) 2011 Motorola Mobility, Inc. All rights reserved. 3 * Portions Copyright (c) 2011 Motorola Mobility, 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 772 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 if (visiblePosition.isNull()) 783 if (visiblePosition.isNull())
784 return false; 784 return false;
785 785
786 if (!visiblePosition.deepEquivalent().containerNode()->isDescendantOf(node)) 786 if (!visiblePosition.deepEquivalent().containerNode()->isDescendantOf(node))
787 return false; 787 return false;
788 788
789 VisiblePosition next = visiblePosition.next(); 789 VisiblePosition next = visiblePosition.next();
790 return next.isNull() || !next.deepEquivalent().deprecatedNode()->isDescendan tOf(node); 790 return next.isNull() || !next.deepEquivalent().deprecatedNode()->isDescendan tOf(node);
791 } 791 }
792 792
793 void VisiblePosition::trace(Visitor* visitor)
794 {
795 visitor->trace(m_deepPosition);
796 }
797
793 } // namespace WebCore 798 } // namespace WebCore
794 799
795 #ifndef NDEBUG 800 #ifndef NDEBUG
796 801
797 void showTree(const WebCore::VisiblePosition* vpos) 802 void showTree(const WebCore::VisiblePosition* vpos)
798 { 803 {
799 if (vpos) 804 if (vpos)
800 vpos->showTreeForThis(); 805 vpos->showTreeForThis();
801 } 806 }
802 807
803 void showTree(const WebCore::VisiblePosition& vpos) 808 void showTree(const WebCore::VisiblePosition& vpos)
804 { 809 {
805 vpos.showTreeForThis(); 810 vpos.showTreeForThis();
806 } 811 }
807 812
808 #endif 813 #endif
OLDNEW
« no previous file with comments | « Source/core/editing/VisiblePosition.h ('k') | Source/core/editing/VisibleSelection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698