Changeset 25311 in webkit
- Timestamp:
- Aug 29, 2007, 5:32:10 PM (18 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r25310 r25311 1 2007-08-29 Darin Adler <darin@apple.com> 2 3 Reviewed by Adele. 4 5 * editing/htmlediting.cpp: (WebCore::avoidIntersectionWithNode): 6 Fix an assert that was firing for me all the time when doing editing operations. 7 1 8 2007-08-29 Anders Carlsson <andersca@apple.com> 2 9 -
trunk/WebCore/editing/htmlediting.cpp
r25305 r25311 1 1 /* 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc.All rights reserved.2 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 889 889 ASSERT(startContainer); 890 890 ASSERT(endContainer); 891 ASSERT( node->parent());891 ASSERT(!node || node->parentNode()); 892 892 893 893 if (startContainer == node || startContainer->isDescendantOf(node)) { 894 startContainer = node->parent ();894 startContainer = node->parentNode(); 895 895 startOffset = node->nodeIndex(); 896 896 } 897 897 if (endContainer == node || endContainer->isDescendantOf(node)) { 898 endContainer = node->parent ();898 endContainer = node->parentNode(); 899 899 endOffset = node->nodeIndex(); 900 900 } … … 913 913 ASSERT(base); 914 914 ASSERT(extent); 915 ASSERT( node->parent());915 ASSERT(!node || node->parentNode()); 916 916 917 917 if (base == node || base->isDescendantOf(node)) 918 updatedSelection.setBase(Position(node->parent (), node->nodeIndex()));918 updatedSelection.setBase(Position(node->parentNode(), node->nodeIndex())); 919 919 920 920 if (extent == node || extent->isDescendantOf(node)) 921 updatedSelection.setExtent(Position(node->parent (), node->nodeIndex()));921 updatedSelection.setExtent(Position(node->parentNode(), node->nodeIndex())); 922 922 923 923 return updatedSelection;
Note:
See TracChangeset
for help on using the changeset viewer.