Reviewed by Mark Rowe.
* History/WebHistoryItem.mm:
(-[WebHistoryItem copyWithZone:]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@104661
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-01-10 Dan Bernstein <mitz@apple.com>
+
+ Made -[WebHistoryItem copyWithZone:] allocate an object of the same class as the receiver.
+
+ Reviewed by Mark Rowe.
+
+ * History/WebHistoryItem.mm:
+ (-[WebHistoryItem copyWithZone:]):
+
2012-01-10 Chris Marrin <cmarrin@apple.com>
Wrapped allowedCompositingTriggers in ACCELERATED_COMPOSITING ifdef to make non-accelerated builds work
- (id)copyWithZone:(NSZone *)zone
{
WebCoreThreadViolationCheckRoundOne();
- WebHistoryItem *copy = [[WebHistoryItem alloc] initWithWebCoreHistoryItem:core(_private)->copy()];
+ WebHistoryItem *copy = [[[self class] alloc] initWithWebCoreHistoryItem:core(_private)->copy()];
historyItemWrappers().set(core(copy->_private), copy);
return copy;