OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2008, 2011 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 28 matching lines...) Expand all Loading... |
39 // Initialize to the current time to reduce the likelihood of generating | 39 // Initialize to the current time to reduce the likelihood of generating |
40 // identifiers that overlap with those from past/future browser sessions. | 40 // identifiers that overlap with those from past/future browser sessions. |
41 static long long next = static_cast<long long>(currentTime() * 1000000.0); | 41 static long long next = static_cast<long long>(currentTime() * 1000000.0); |
42 return ++next; | 42 return ++next; |
43 } | 43 } |
44 | 44 |
45 HistoryItem::HistoryItem() | 45 HistoryItem::HistoryItem() |
46 : m_pageScaleFactor(0) | 46 : m_pageScaleFactor(0) |
47 , m_itemSequenceNumber(generateSequenceNumber()) | 47 , m_itemSequenceNumber(generateSequenceNumber()) |
48 , m_documentSequenceNumber(generateSequenceNumber()) | 48 , m_documentSequenceNumber(generateSequenceNumber()) |
| 49 , m_frameSequenceNumber(generateSequenceNumber()) |
49 { | 50 { |
50 } | 51 } |
51 | 52 |
52 HistoryItem::~HistoryItem() | 53 HistoryItem::~HistoryItem() |
53 { | 54 { |
54 } | 55 } |
55 | 56 |
56 void HistoryItem::generateNewItemSequenceNumber() | 57 void HistoryItem::generateNewItemSequenceNumber() |
57 { | 58 { |
58 m_itemSequenceNumber = generateSequenceNumber(); | 59 m_itemSequenceNumber = generateSequenceNumber(); |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 } | 209 } |
209 | 210 |
210 bool HistoryItem::isCurrentDocument(Document* doc) const | 211 bool HistoryItem::isCurrentDocument(Document* doc) const |
211 { | 212 { |
212 // FIXME: We should find a better way to check if this is the current docume
nt. | 213 // FIXME: We should find a better way to check if this is the current docume
nt. |
213 return equalIgnoringFragmentIdentifier(url(), doc->url()); | 214 return equalIgnoringFragmentIdentifier(url(), doc->url()); |
214 } | 215 } |
215 | 216 |
216 } // namespace blink | 217 } // namespace blink |
217 | 218 |
OLD | NEW |