Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: Source/core/loader/HistoryItem.cpp

Issue 1144383008: Remove HistoryItem::m_frameSequenceNumber, it is unused (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/loader/HistoryItem.h ('k') | Source/web/WebHistoryItem.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 30 matching lines...) Expand all
41 // Initialize to the current time to reduce the likelihood of generating 41 // Initialize to the current time to reduce the likelihood of generating
42 // identifiers that overlap with those from past/future browser sessions. 42 // identifiers that overlap with those from past/future browser sessions.
43 static long long next = static_cast<long long>(currentTime() * 1000000.0); 43 static long long next = static_cast<long long>(currentTime() * 1000000.0);
44 return ++next; 44 return ++next;
45 } 45 }
46 46
47 HistoryItem::HistoryItem() 47 HistoryItem::HistoryItem()
48 : m_pageScaleFactor(0) 48 : m_pageScaleFactor(0)
49 , m_itemSequenceNumber(generateSequenceNumber()) 49 , m_itemSequenceNumber(generateSequenceNumber())
50 , m_documentSequenceNumber(generateSequenceNumber()) 50 , m_documentSequenceNumber(generateSequenceNumber())
51 , m_frameSequenceNumber(generateSequenceNumber())
52 , m_scrollRestorationType(ScrollRestorationAuto) 51 , m_scrollRestorationType(ScrollRestorationAuto)
53 { 52 {
54 } 53 }
55 54
56 HistoryItem::~HistoryItem() 55 HistoryItem::~HistoryItem()
57 { 56 {
58 } 57 }
59 58
60 void HistoryItem::generateNewItemSequenceNumber() 59 void HistoryItem::generateNewItemSequenceNumber()
61 { 60 {
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // FIXME: We should find a better way to check if this is the current docume nt. 216 // FIXME: We should find a better way to check if this is the current docume nt.
218 return equalIgnoringFragmentIdentifier(url(), doc->url()); 217 return equalIgnoringFragmentIdentifier(url(), doc->url());
219 } 218 }
220 219
221 DEFINE_TRACE(HistoryItem) 220 DEFINE_TRACE(HistoryItem)
222 { 221 {
223 visitor->trace(m_documentState); 222 visitor->trace(m_documentState);
224 } 223 }
225 224
226 } // namespace blink 225 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/loader/HistoryItem.h ('k') | Source/web/WebHistoryItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698