summaryrefslogtreecommitdiffstats
path: root/WebKit/mac/History/WebHistoryItem.mm
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/mac/History/WebHistoryItem.mm')
-rw-r--r--WebKit/mac/History/WebHistoryItem.mm17
1 files changed, 6 insertions, 11 deletions
diff --git a/WebKit/mac/History/WebHistoryItem.mm b/WebKit/mac/History/WebHistoryItem.mm
index 1d2de1d..ca80437 100644
--- a/WebKit/mac/History/WebHistoryItem.mm
+++ b/WebKit/mac/History/WebHistoryItem.mm
@@ -107,7 +107,7 @@ void WKNotifyHistoryItemChanged()
- (id)initWithURLString:(NSString *)URLString title:(NSString *)title lastVisitedTimeInterval:(NSTimeInterval)time
{
- WebCoreThreadViolationCheck();
+ WebCoreThreadViolationCheckRoundOne();
return [self initWithWebCoreHistoryItem:HistoryItem::create(URLString, title, time)];
}
@@ -126,7 +126,7 @@ void WKNotifyHistoryItemChanged()
- (void)finalize
{
- WebCoreThreadViolationCheck();
+ WebCoreThreadViolationCheckRoundOne();
// FIXME: ~HistoryItem is what releases the history item's icon from the icon database
// It's probably not good to release icons from the database only when the object is garbage-collected.
// Need to change design so this happens at a predictable time.
@@ -140,7 +140,7 @@ void WKNotifyHistoryItemChanged()
- (id)copyWithZone:(NSZone *)zone
{
- WebCoreThreadViolationCheck();
+ WebCoreThreadViolationCheckRoundOne();
WebHistoryItem *copy = (WebHistoryItem *)NSCopyObject(self, 0, zone);
RefPtr<HistoryItem> item = core(_private)->copy();
copy->_private = kitPrivate(item.get());
@@ -175,7 +175,7 @@ void WKNotifyHistoryItemChanged()
core(_private)->setAlternateTitle(alternateTitle);
}
-- (NSString *)alternateTitle;
+- (NSString *)alternateTitle
{
return nsStringNilIfEmpty(core(_private)->alternateTitle());
}
@@ -299,7 +299,7 @@ static WebWindowWatcher *_windowWatcher = nil;
- (id)initWithWebCoreHistoryItem:(PassRefPtr<HistoryItem>)item
{
- WebCoreThreadViolationCheck();
+ WebCoreThreadViolationCheckRoundOne();
// Need to tell WebCore what function to call for the
// "History Item has Changed" notification - no harm in doing this
// everytime a WebHistoryItem is created
@@ -325,7 +325,7 @@ static WebWindowWatcher *_windowWatcher = nil;
core(_private)->setVisitCount(count);
}
-- (void)setViewState:(id)statePList;
+- (void)setViewState:(id)statePList
{
core(_private)->setViewState(statePList);
}
@@ -422,11 +422,6 @@ static WebWindowWatcher *_windowWatcher = nil;
core(_private)->visited(title, [NSDate timeIntervalSinceReferenceDate]);
}
-- (void)_setVisitCount:(int)count
-{
- core(_private)->setVisitCount(count);
-}
-
- (void)_recordInitialVisit
{
core(_private)->recordInitialVisit();