mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-15 15:58:57 +00:00
use Navigation ptr instead of fat copy
This commit is contained in:
@@ -52,7 +52,7 @@ pub fn id(self: *const NavigationHistoryEntry) []const u8 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn index(self: *const NavigationHistoryEntry, page: *Page) i32 {
|
pub fn index(self: *const NavigationHistoryEntry, page: *Page) i32 {
|
||||||
const navigation = page._session.navigation;
|
const navigation = &page._session.navigation;
|
||||||
|
|
||||||
for (navigation._entries.items, 0..) |entry, i| {
|
for (navigation._entries.items, 0..) |entry, i| {
|
||||||
if (std.mem.eql(u8, entry._id, self._id)) {
|
if (std.mem.eql(u8, entry._id, self._id)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user