Changeset 207431 in webkit
- Timestamp:
- Oct 17, 2016 2:17:20 PM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r207429 r207431 1 2016-10-17 Anders Carlsson <andersca@apple.com> 2 3 Remove an unused HistoryItem function 4 https://bugs.webkit.org/show_bug.cgi?id=163565 5 6 Reviewed by Tim Horton. 7 8 * history/HistoryItem.cpp: 9 (WebCore::HistoryItem::isAncestorOf): Deleted. 10 * history/HistoryItem.h: 11 1 12 2016-10-17 Nan Wang <n_wang@apple.com> 2 13 -
trunk/Source/WebCore/history/HistoryItem.cpp
r207300 r207431 384 384 } 385 385 386 bool HistoryItem::isAncestorOf(const HistoryItem& item) const387 {388 for (size_t i = 0; i < m_children.size(); ++i) {389 auto& child = m_children[i].get();390 if (&child == &item)391 return true;392 if (child.isAncestorOf(item))393 return true;394 }395 return false;396 }397 398 386 // We do same-document navigation if going to a different item and if either of the following is true: 399 387 // - The other item corresponds to the same document (for history entries created via pushState or fragment changes). -
trunk/Source/WebCore/history/HistoryItem.h
r207300 r207431 145 145 WEBCORE_EXPORT bool hasChildren() const; 146 146 void clearChildren(); 147 bool isAncestorOf(const HistoryItem&) const;148 147 149 148 bool shouldDoSameDocumentNavigationTo(HistoryItem& otherItem) const;
Note: See TracChangeset
for help on using the changeset viewer.