Title: [207431] trunk/Source/WebCore
Revision
207431
Author
ander...@apple.com
Date
2016-10-17 14:17:20 -0700 (Mon, 17 Oct 2016)

Log Message

Remove an unused HistoryItem function
https://bugs.webkit.org/show_bug.cgi?id=163565

Reviewed by Tim Horton.

* history/HistoryItem.cpp:
(WebCore::HistoryItem::isAncestorOf): Deleted.
* history/HistoryItem.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (207430 => 207431)


--- trunk/Source/WebCore/ChangeLog	2016-10-17 21:10:34 UTC (rev 207430)
+++ trunk/Source/WebCore/ChangeLog	2016-10-17 21:17:20 UTC (rev 207431)
@@ -1,3 +1,14 @@
+2016-10-17  Anders Carlsson  <ander...@apple.com>
+
+        Remove an unused HistoryItem function
+        https://bugs.webkit.org/show_bug.cgi?id=163565
+
+        Reviewed by Tim Horton.
+
+        * history/HistoryItem.cpp:
+        (WebCore::HistoryItem::isAncestorOf): Deleted.
+        * history/HistoryItem.h:
+
 2016-10-17  Nan Wang  <n_w...@apple.com>
 
         AX: [Mac] mapping for output elements

Modified: trunk/Source/WebCore/history/HistoryItem.cpp (207430 => 207431)


--- trunk/Source/WebCore/history/HistoryItem.cpp	2016-10-17 21:10:34 UTC (rev 207430)
+++ trunk/Source/WebCore/history/HistoryItem.cpp	2016-10-17 21:17:20 UTC (rev 207431)
@@ -383,18 +383,6 @@
     m_children.clear();
 }
 
-bool HistoryItem::isAncestorOf(const HistoryItem& item) const
-{
-    for (size_t i = 0; i < m_children.size(); ++i) {
-        auto& child = m_children[i].get();
-        if (&child == &item)
-            return true;
-        if (child.isAncestorOf(item))
-            return true;
-    }
-    return false;
-}
-
 // We do same-document navigation if going to a different item and if either of the following is true:
 // - The other item corresponds to the same document (for history entries created via pushState or fragment changes).
 // - The other item corresponds to the same set of documents, including frames (for history entries created via regular navigation)

Modified: trunk/Source/WebCore/history/HistoryItem.h (207430 => 207431)


--- trunk/Source/WebCore/history/HistoryItem.h	2016-10-17 21:10:34 UTC (rev 207430)
+++ trunk/Source/WebCore/history/HistoryItem.h	2016-10-17 21:17:20 UTC (rev 207431)
@@ -144,7 +144,6 @@
     WEBCORE_EXPORT const Vector<Ref<HistoryItem>>& children() const;
     WEBCORE_EXPORT bool hasChildren() const;
     void clearChildren();
-    bool isAncestorOf(const HistoryItem&) const;
     
     bool shouldDoSameDocumentNavigationTo(HistoryItem& otherItem) const;
     bool hasSameFrames(HistoryItem& otherItem) const;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to