| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |