Changeset 13256 in webkit
- Timestamp:
- Mar 10, 2006 5:35:55 PM (18 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r13255 r13256 1 2006-03-10 Justin Garcia <justin.garcia@apple.com> 2 3 Reviewed by darin, harrison 4 5 ~3x speedup pasting plain text from the console 6 7 * dom/dom_position.cpp: 8 (WebCore::Position::next): 9 (WebCore::Position::atEnd): 10 1 11 2006-03-10 David Hyatt <hyatt@apple.com> 2 12 -
trunk/WebCore/dom/dom_position.cpp
r13187 r13256 145 145 assert(o >= 0); 146 146 147 if (o < maxDeepOffset(n)) {148 NodeImpl *child = n->childNode(o);149 if (child) {147 NodeImpl* child = n->childNode(o); 148 if (child || !n->hasChildNodes() && o < maxDeepOffset(n)) { 149 if (child) 150 150 return Position(child, 0); 151 }151 152 152 // There are two reasons child might be 0: 153 153 // 1) The node is node like a text node that is not an element, and therefore has no children. … … 180 180 return true; 181 181 182 return offset() >= maxDeepOffset(n) && n->parent() == 0;182 return n->parent() == 0 && offset() >= maxDeepOffset(n); 183 183 } 184 184
Note: See TracChangeset
for help on using the changeset viewer.