Changeset 150702 in webkit
- Timestamp:
- May 25, 2013 8:29:12 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r150700 r150702 1 2013-05-25 Andreas Kling <akling@apple.com> 2 3 Don't instantiate ChildNodeLists just to get a child count. 4 <http://webkit.org/b/116776> 5 6 Reviewed by Ryosuke Niwa. 7 8 Use ContainerNode::childNodeCount() instead of Node::childNodes()->length(). 9 10 * editing/ApplyStyleCommand.cpp: 11 (WebCore::ApplyStyleCommand::mergeEndWithNextIfIdentical): 12 1 13 2013-05-25 Andreas Kling <akling@apple.com> 2 14 -
trunk/Source/WebCore/editing/ApplyStyleCommand.cpp
r148597 r150702 1305 1305 return false; 1306 1306 1307 unsigned parentLastOffset = end.deprecatedNode()->parentNode()->childNode s()->length() - 1;1307 unsigned parentLastOffset = end.deprecatedNode()->parentNode()->childNodeCount() - 1; 1308 1308 if (end.deprecatedNode()->nextSibling()) 1309 1309 return false; … … 1325 1325 1326 1326 bool shouldUpdateStart = start.containerNode() == endNode; 1327 int endOffset = nextChild ? nextChild->nodeIndex() : nextElement->childNode s()->length();1327 int endOffset = nextChild ? nextChild->nodeIndex() : nextElement->childNodeCount(); 1328 1328 updateStartEnd(shouldUpdateStart ? Position(nextElement, start.offsetInContainerNode(), Position::PositionIsOffsetInAnchor) : start, 1329 1329 Position(nextElement, endOffset, Position::PositionIsOffsetInAnchor));
Note: See TracChangeset
for help on using the changeset viewer.