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

Side by Side Diff: third_party/WebKit/WebCore/history/HistoryItem.cpp

Issue 165442: Merge WebKit r45890 to the 172 (2.0) branch.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/branches/172/src/
Patch Set: Created 11 years, 4 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
« no previous file with comments | « no previous file | no next file » | 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 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2008 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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 } 447 }
448 448
449 FormData* HistoryItem::formData() 449 FormData* HistoryItem::formData()
450 { 450 {
451 return m_formData.get(); 451 return m_formData.get();
452 } 452 }
453 453
454 bool HistoryItem::isCurrentDocument(Document* doc) const 454 bool HistoryItem::isCurrentDocument(Document* doc) const
455 { 455 {
456 // FIXME: We should find a better way to check if this is the current docume nt. 456 // FIXME: We should find a better way to check if this is the current docume nt.
457 return urlString() == doc->url(); 457 return equalIgnoringRef(url(), doc->url());
458 } 458 }
459 459
460 void HistoryItem::mergeAutoCompleteHints(HistoryItem* otherItem) 460 void HistoryItem::mergeAutoCompleteHints(HistoryItem* otherItem)
461 { 461 {
462 // FIXME: this is broken - we should be merging the daily counts 462 // FIXME: this is broken - we should be merging the daily counts
463 // somehow. but this is to support API that's not really used in 463 // somehow. but this is to support API that's not really used in
464 // practice so leave it broken for now. 464 // practice so leave it broken for now.
465 ASSERT(otherItem); 465 ASSERT(otherItem);
466 if (otherItem != this) 466 if (otherItem != this)
467 m_visitCount += otherItem->m_visitCount; 467 m_visitCount += otherItem->m_visitCount;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 516
517 #ifndef NDEBUG 517 #ifndef NDEBUG
518 518
519 int showTree(const WebCore::HistoryItem* item) 519 int showTree(const WebCore::HistoryItem* item)
520 { 520 {
521 return item->showTree(); 521 return item->showTree();
522 } 522 }
523 523
524 #endif 524 #endif
525 525
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698