Title: [104661] trunk/Source/WebKit/mac
Revision
104661
Author
[email protected]
Date
2012-01-10 19:36:25 -0800 (Tue, 10 Jan 2012)

Log Message

Made -[WebHistoryItem copyWithZone:] allocate an object of the same class as the receiver.

Reviewed by Mark Rowe.

* History/WebHistoryItem.mm:
(-[WebHistoryItem copyWithZone:]):

Modified Paths

Diff

Modified: trunk/Source/WebKit/mac/ChangeLog (104660 => 104661)


--- trunk/Source/WebKit/mac/ChangeLog	2012-01-11 02:54:06 UTC (rev 104660)
+++ trunk/Source/WebKit/mac/ChangeLog	2012-01-11 03:36:25 UTC (rev 104661)
@@ -1,3 +1,12 @@
+2012-01-10  Dan Bernstein  <[email protected]>
+
+        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  <[email protected]>
 
         Wrapped allowedCompositingTriggers in ACCELERATED_COMPOSITING ifdef to make non-accelerated builds work

Modified: trunk/Source/WebKit/mac/History/WebHistoryItem.mm (104660 => 104661)


--- trunk/Source/WebKit/mac/History/WebHistoryItem.mm	2012-01-11 02:54:06 UTC (rev 104660)
+++ trunk/Source/WebKit/mac/History/WebHistoryItem.mm	2012-01-11 03:36:25 UTC (rev 104661)
@@ -141,7 +141,7 @@
 - (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;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to